/**
 * OAS Commerce front-end blocks: condition badges, key facts, positioning band,
 * service areas and the checkout delivery picker. Reads the theme's brand tokens
 * (--oas-*), with fallbacks so it still renders under another theme.
 *
 * @author Selman Selman @ Engineered Leads
 */

.oasc-eyebrow { margin: 0 0 8px; color: var(--oas-grey, #6b7280); font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; }

.oasc-price-new { margin: -8px 0 16px; color: var(--oas-grey, #6b7280); font-size: 15px; }
.oasc-price-new__amount { text-decoration: line-through; }
.oasc-price-new strong { color: var(--oas-primary, #c8102e); }

/* Delivery panel under the price */
.oasc-delivery-line { position: relative; margin: 0 0 16px; padding: 12px 14px 12px 50px; border: 1px solid var(--oas-border, #e3e4e8); border-radius: 12px; background: var(--oas-light, #f5f5f5); }
.oasc-delivery-line::before { content: ""; position: absolute; top: 14px; left: 14px; width: 24px; height: 24px; background: var(--oas-primary, #c8102e); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3a1 1 0 0 0-1 1v11h2a3 3 0 0 0 6 0h4a3 3 0 0 0 6 0h2v-5l-3-3ZM7 17.5A1.5 1.5 0 1 1 7 14.5a1.5 1.5 0 0 1 0 3Zm10 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM17 12V9.5h2.5l1.96 2.5H17Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3a1 1 0 0 0-1 1v11h2a3 3 0 0 0 6 0h4a3 3 0 0 0 6 0h2v-5l-3-3ZM7 17.5A1.5 1.5 0 1 1 7 14.5a1.5 1.5 0 0 1 0 3Zm10 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM17 12V9.5h2.5l1.96 2.5H17Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.oasc-delivery-line p { margin: 0; }
.oasc-delivery-line__main { color: var(--oas-dark, #1a1a1a); font-size: 15px; font-weight: 800; line-height: 1.4; }
.oasc-delivery-line p.oasc-delivery-line__sub { margin-top: 2px; color: var(--oas-grey, #6b7280); font-size: 14px; line-height: 1.45; }

/* "At a glance": an inset grouped list, label left and value right */
.oasc-glance,
.oasc-key-features { margin: 32px 0 0; }
.oasc-glance__title,
.oasc-key-features__title { margin: 0 0 12px; color: var(--oas-dark, #1a1a1a); font-size: 19px; font-weight: 800; line-height: 1.2; }
.oasc-facts { margin: 0; padding: 0 16px; border: 1px solid var(--oas-border, #e3e4e8); border-radius: 12px; background: var(--oas-white, #fff); }
.oasc-facts__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.oasc-facts__row:first-child { border-top: 0; }
.oasc-facts dt { flex: none; margin: 0; color: var(--oas-grey, #6b7280); font-size: 15px; font-weight: 400; }
.oasc-facts dd { margin: 0; color: var(--oas-dark, #1a1a1a); font-size: 15px; font-weight: 600; text-align: right; }

.oasc-positioning-line { margin: 1rem 0 0; padding: .75rem .9rem; border-left: 4px solid var(--oas-primary, #c8102e); background: var(--oas-light, #f5f5f5); border-radius: 0 var(--oas-radius, 10px) var(--oas-radius, 10px) 0; font-weight: 600; font-size: .95rem; }

.oasc-card-badge { position: absolute; bottom: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 9px; border-radius: 6px; background: var(--oas-dark, #1a1a1a); color: var(--oas-white, #fff); font-size: 12px; font-weight: 700; line-height: 1.3; }
.oasc-card-facts { margin: 0; color: var(--oas-grey, #6b7280); font-size: 13px; line-height: 1.4; }

.oasc-note { margin-top: .75rem; color: var(--oas-grey, #6b7280); font-size: .88rem; }

.oasc-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--oas-gap, 1.5rem); margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--oas-dark, #1a1a1a); color: #fff; }
@media (min-width: 860px) { .oasc-trust { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.oasc-trust .oasc-positioning { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.oasc-trust .oasc-positioning__title,
.oasc-trust .oasc-areas__title { color: #fff; }
.oasc-trust .oasc-positioning p { color: rgba(255, 255, 255, .82); }
.oasc-trust .oasc-areas__list li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }

.oasc-positioning { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--oas-radius, 10px); background: var(--oas-light, #f5f5f5); }
.oasc-positioning__title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; }
.oasc-areas__title { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 800; }
.oasc-areas__list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.oasc-areas__list li { padding: .3rem .7rem; border: 1px solid var(--oas-border, #e3e4e8); border-radius: 999px; font-size: .85rem; font-weight: 600; }

.oasc-shop-intro { margin-top: .5rem; }

/* Delivery picker (checkout) */
.oasc-delivery { margin: 0 0 1.5rem; padding: 1.25rem; border: 2px solid var(--oas-dark, #1a1a1a); border-radius: var(--oas-radius-lg, 18px); background: #fff; }
.oasc-delivery[hidden] { display: none; }
.oasc-delivery__title { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 800; }
.oasc-delivery__help { margin: 0 0 1rem; color: var(--oas-grey, #6b7280); font-size: .92rem; }
.oasc-delivery__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.oasc-delivery__month { font-weight: 800; }
.oasc-delivery__nav { min-width: 40px; min-height: 40px; border: 1px solid var(--oas-border, #e3e4e8); border-radius: var(--oas-radius, 10px); background: #fff; color: var(--oas-dark, #1a1a1a); font-size: 1.1rem; cursor: pointer; }
.oasc-delivery__nav:disabled { opacity: .35; cursor: not-allowed; }
.oasc-delivery__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; margin: 0 0 1rem; }
.oasc-delivery__dow { padding: .25rem 0; color: var(--oas-grey, #6b7280); font-size: .72rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.oasc-delivery__day { aspect-ratio: 1; min-height: 40px; padding: 0; border: 1px solid var(--oas-border, #e3e4e8); border-radius: var(--oas-radius, 10px); background: #fff; color: var(--oas-dark, #1a1a1a); font: inherit; font-weight: 700; cursor: pointer; }
.oasc-delivery__day:disabled { border-color: transparent; background: var(--oas-light, #f5f5f5); color: #9ca0a8; font-weight: 400; cursor: not-allowed; }
.oasc-delivery__day.is-empty { visibility: hidden; }
.oasc-delivery__day:not(:disabled):hover { border-color: var(--oas-dark, #1a1a1a); }
.oasc-delivery__day[aria-pressed="true"] { border-color: var(--oas-primary, #c8102e); background: var(--oas-primary, #c8102e); color: #fff; }
.oasc-delivery__slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.oasc-delivery__slot { min-height: 48px; padding: .6rem .75rem; border: 1px solid var(--oas-border, #e3e4e8); border-radius: var(--oas-radius, 10px); background: #fff; color: var(--oas-dark, #1a1a1a); font: inherit; font-weight: 700; cursor: pointer; }
.oasc-delivery__slot small { display: block; color: var(--oas-grey, #6b7280); font-weight: 500; font-size: .75rem; }
.oasc-delivery__slot:disabled { opacity: .45; cursor: not-allowed; }
.oasc-delivery__slot[aria-pressed="true"] { border-color: var(--oas-primary, #c8102e); background: color-mix(in srgb, var(--oas-primary, #c8102e) 8%, #fff); box-shadow: inset 0 0 0 1px var(--oas-primary, #c8102e); }
.oasc-delivery__summary { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: var(--oas-radius, 10px); background: var(--oas-light, #f5f5f5); font-weight: 700; }
.oasc-delivery__summary:empty { display: none; }
.oasc-delivery__status { margin: .5rem 0 0; color: var(--oas-grey, #6b7280); font-size: .88rem; }
.oasc-delivery.is-invalid { border-color: var(--oas-primary, #c8102e); }
.oasc-delivery__error { margin: .75rem 0 0; color: var(--oas-primary, #c8102e); font-weight: 700; }
.oasc-delivery__error:empty { display: none; }
.oasc-delivery button:focus-visible { outline: 3px solid color-mix(in srgb, var(--oas-primary, #c8102e) 55%, transparent); outline-offset: 2px; }

/* Delivery on thank-you and account order view */
.oasc-order-delivery { margin: 0 0 2rem; padding: 1rem 1.25rem; border: 2px solid var(--oas-primary, #c8102e); border-radius: var(--oas-radius, 10px); }
.oasc-order-delivery h2 { margin: 0 0 .35rem; font-size: 1.1rem; }
.oasc-order-delivery p { margin: 0; font-weight: 700; }

/* Key features (product page) and the "Why buy from us" band under the buy box */
.oasc-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.oasc-checklist li { position: relative; padding-left: 28px; color: var(--oas-dark, #1a1a1a); font-size: 17px; line-height: 1.45; }
.oasc-checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--oas-primary, #c8102e); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.oasc-why-buy { margin: 0 0 clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--oas-border, #e3e4e8); border-radius: 12px; background: var(--oas-light, #f5f5f5); }
.oasc-why-buy__title { margin: 0 0 20px; color: var(--oas-dark, #1a1a1a); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.2; }
@media (min-width: 768px) { .oasc-why-buy .oasc-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; } }

/* Trust badges: under Add to cart, cart, checkout, home shop section. Plain lines
   with a small icon and no boxes, so they read as reassurance, not as more buttons. */
.oasc-trust-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.oasc-trust-badges li { display: flex; align-items: flex-start; gap: 8px; color: var(--oas-dark, #1a1a1a); font-size: 13px; font-weight: 600; line-height: 1.35; }
.oasc-trust-icon { flex: none; width: 18px; height: 18px; color: var(--oas-primary, #c8102e); }
/* Product page: boxed badges under Add to cart */
.oasc-trust-badges--product { gap: 8px; margin-top: 16px; }
.oasc-trust-badges--product li { align-items: center; padding: 10px 12px; border: 1px solid var(--oas-border, #e3e4e8); border-radius: 10px; background: var(--oas-white, #fff); font-weight: 700; }
.oasc-trust-badges--compact { grid-template-columns: 1fr; gap: 6px; margin: 12px 0 16px; }
.oasc-trust-badges--home { margin: 0 0 clamp(28px, 4vw, 40px); padding: 16px 20px; border: 1px solid var(--oas-border, #e3e4e8); border-radius: 12px; background: var(--oas-light, #f5f5f5); }
@media (min-width: 900px) { .oasc-trust-badges--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.oasc-trust-badges--home li { align-items: center; font-size: 15px; font-weight: 700; }
@media (max-width: 599px) { .oasc-trust-badges--home { grid-template-columns: 1fr; gap: 10px; } }

.oasc-card-warranty { margin: 0; color: var(--oas-grey, #6b7280); font-size: 13px; font-weight: 400; line-height: 1.4; }

/* Shop filters: category chips above the grid, filter panel in the sidebar */
.oasc-chips { display: flex; gap: 8px; margin: 0 0 16px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.oasc-chips::-webkit-scrollbar { display: none; }
.oasc-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--oas-border, #e3e4e8); border-radius: 980px; background: var(--oas-white, #fff); color: var(--oas-dark, #1a1a1a); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.oasc-chips a:hover { border-color: var(--oas-dark, #1a1a1a); }
.oasc-chips a[aria-current="page"] { border-color: var(--oas-dark, #1a1a1a); background: var(--oas-dark, #1a1a1a); color: var(--oas-white, #fff); }
.oasc-chips .oasc-count { color: inherit; opacity: .6; font-weight: 600; }
@media (min-width: 1024px) { .oasc-chips { display: none; } }

.oasc-filters { border: 1px solid var(--oas-border, #e3e4e8); border-radius: 12px; background: var(--oas-white, #fff); }
.oasc-filters__toggle { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; color: var(--oas-dark, #1a1a1a); font-size: 15px; font-weight: 800; list-style: none; cursor: pointer; }
.oasc-filters__toggle::-webkit-details-marker { display: none; }
.oasc-filters__toggle::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease; }
.oasc-filters[open] > .oasc-filters__toggle::after { transform: rotate(-135deg); }
.oasc-filters__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 980px; background: var(--oas-primary, #c8102e); color: var(--oas-white, #fff); font-size: 12px; }
@media (min-width: 1024px) {
	.oasc-filters { border: 0; background: none; }
	.oasc-filters[open] > .oasc-filters__toggle { display: none; }
}
.oasc-filters__form { display: grid; gap: 0; padding: 0 16px 16px; }
@media (min-width: 1024px) { .oasc-filters__form { padding: 0; } }
.oasc-filters__search { padding: 4px 0 16px; }
.oasc-filters__search-box { display: flex; margin-top: 8px; }
.oasc-filters__input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--oas-border, #e3e4e8); border-right: 0; border-radius: 10px 0 0 10px; background: var(--oas-white, #fff); color: var(--oas-dark, #1a1a1a); font: inherit; font-size: 15px; }
.oasc-filters__input:focus { border-color: var(--oas-dark, #1a1a1a); outline: none; }
.oasc-filters__go { display: grid; place-items: center; width: 48px; border: 0; border-radius: 0 10px 10px 0; background: var(--oas-primary, #c8102e); color: var(--oas-white, #fff); cursor: pointer; }
.oasc-filters__go:hover { background: var(--oas-primary-dark, #a40d26); }
.oasc-facet { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--oas-border, #e3e4e8); }
.oasc-facet__title { display: block; margin: 0 0 8px; padding: 0; color: var(--oas-dark, #1a1a1a); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.oasc-filters__search .oasc-facet__title { margin: 0; }
.oasc-facet__list { display: grid; gap: 2px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.oasc-facet__option { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 6px; border-radius: 8px; color: var(--oas-dark, #1a1a1a); font-size: 15px; cursor: pointer; }
.oasc-facet__option:hover { background: var(--oas-light, #f5f5f5); }
.oasc-facet__option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--oas-primary, #c8102e); }
.oasc-facet__option input:checked + span { font-weight: 800; }
.oasc-facet__links { display: grid; gap: 2px; }
.oasc-facet__links a { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 4px 6px; border-radius: 8px; color: var(--oas-dark, #1a1a1a); font-size: 15px; text-decoration: none; }
.oasc-facet__links a:hover { background: var(--oas-light, #f5f5f5); }
.oasc-facet__links a[aria-current="page"] { color: var(--oas-primary, #c8102e); font-weight: 800; }
.oasc-facet__links .oasc-count { color: var(--oas-grey, #6b7280); font-size: 13px; }
.oasc-filters__actions { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--oas-border, #e3e4e8); }
.oasc-filters.is-live .oasc-filters__apply,
.oasc-filters__form.is-live .oasc-filters__apply { display: none; }
.oasc-filters__form.is-live .oasc-filters__actions:not(:has(.oasc-filters__clear)) { display: none; }
.oasc-filters__clear { color: var(--oas-primary, #c8102e); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.oasc-filters__go:focus-visible,
.oasc-facet__option:focus-within,
.oasc-facet__links a:focus-visible,
.oasc-chips a:focus-visible,
.oasc-filters__toggle:focus-visible,
.oasc-filters__clear:focus-visible { outline: 3px solid color-mix(in srgb, var(--oas-primary, #c8102e) 55%, transparent); outline-offset: 2px; }
