/* The Bosch theme on Arna: what the design's stylesheet (bosch.css) needs to fit the platform's pages. */

/* The design styles a page by a class on <body>; here that class sits on this wrapper, which fills the page. */
.bsh-shell { display: flex; flex-direction: column; flex: 1 0 auto; min-height: 100vh; min-height: 100dvh; }
.bsh-shell > main { flex: 1 0 auto; }
.bsh-shell.auth-page { min-height: 100vh; min-height: 100dvh; }

/* Widgets drawn from their template: the wrapper takes no box, so sections space as in the design. */
.bsh-widget { display: contents; }

/* Widget icons: widget HTML cannot hold inline SVG, so an icon file is used as a mask in the text colour. */
.bsh-ico { display: inline-block; width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
summary > .bsh-ico:not([style]) { --ico: url(/themes/bosch/icons/down.svg); }
.bsh-answer > :first-child { margin-top: 0; }

/* A store's own logo instead of the design's mark and wordmark. */
.logo .bsh-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.footer .logo .bsh-logo { height: 52px; }

/* Waiting for data. */
.bsh-loading { min-height: 160px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--fog), var(--paper), var(--fog)); background-size: 200% 100%; animation: bsh-shimmer 1.4s linear infinite; }
@keyframes bsh-shimmer { to { background-position: -200% 0; } }

/* Categories without subcategories in the phone drawer. */
.drawer-cat { display: block; padding: 10px 0; font-weight: 600; }

/* Listing: a category's description under its title. */
.pl-lead { margin-top: 6px; max-width: 70ch; color: var(--steel); }

/* The newsletter's CAPTCHA (when the store uses one) gets a row of its own. */
.nl-form .bsh-captcha { flex-basis: 100%; }

/* Forms: success messages, the wide address field, the wallet choice, store replies under reviews. */
.ct-msg.is-ok, .review-msg.is-ok { color: var(--primary); }
.co-field.bsh-wide { grid-column: 1 / -1; }
.bsh-wallet { margin-top: 16px; }
.review-reply { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--sky); font-size: .9rem; }
.deal-media { display: block; }

/* Questions on the product page, like the contact page's. */
.bsh-faq { border-bottom: 1px solid var(--line); }
.bsh-faq > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.bsh-faq > summary::-webkit-details-marker { display: none; }
.bsh-faq > summary svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.bsh-faq[open] > summary svg { transform: rotate(180deg); }
.bsh-faq > div { padding-bottom: 14px; color: #4B4D4C; }

/* Shared screens shown inside the theme (the wallet). */
.bsh-shared { font-size: .95rem; }

/* The platform's notifications in the theme's font. */
[data-sonner-toaster] { font-family: var(--font); }

/* Sign-in: the design spaces its forms by their ids (#phoneForm, #otpForm, #nameForm); the steps here share these. */
.auth-step form { margin-top: 24px; }
.auth-step .auth-text-btn + form { margin-top: 18px; }
.auth-step form .btn { margin-top: 18px; }
.auth-step .otp-resend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.auth-step .auth-lead.is-wrap { white-space: normal; }

/* The platform's base styles (Tailwind preflight) take the browser's centring off <dialog>. */
.co-dialog { margin: auto; }

/* Header search: categories, products and posts open under the field as the shopper types. */
.bsh-search { position: relative; }
.bsh-search input::-webkit-search-cancel-button { display: none; }
.bsh-search-clear { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; color: var(--steel); }
.bsh-search-clear svg { width: 16px; height: 16px; }
.bsh-search-pop {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 60; min-width: min(420px, calc(100vw - 32px));
  padding: 8px;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(30, 32, 30, .14);
}
.bsh-search-note { padding: 10px 12px; color: var(--steel); font-size: .9rem; }
.bsh-search-note strong { color: var(--graphite); }
.bsh-search-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px 10px; }
.bsh-search-group + .bsh-search-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.bsh-search-h { padding: 8px 12px 4px; color: var(--steel); font-size: .78rem; font-weight: 700; }
.bsh-search-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); }
.bsh-search-item:hover, .bsh-search-item:focus-visible { background: var(--fog); }
.bsh-search-thumb { width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: var(--r-sm); }
.bsh-search-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bsh-search-title { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bsh-search-price { flex: none; font-weight: 700; font-size: .88rem; }
.bsh-search-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 12px; border-radius: var(--r-sm); background: var(--sky); color: var(--primary); font-weight: 700; font-size: .9rem; }
.bsh-search-all svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .bsh-search-pop { min-width: 0; }
}

/* Listing: a search's corrected words and the blog posts it found. */
.pl-related { margin-block: 40px 8px; }
.pl-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.pl-related-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.pl-related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pl-related-card div { padding: 14px 16px 18px; }
.pl-related-card h3 { font-size: 1rem; line-height: 1.7; }
.pl-related-card p { margin-top: 6px; color: var(--steel); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
