/* Storefront layout constraints. Loaded after aurora.css and editorial.css. */
html .aw-home :is(.grid, .flex) > *, html .aw-shop-layout > *, html .aw-pd-layout > *, html .aw-cart-layout > *, html .aw-product-body > * {
    min-width: 0;
}

html .aw-home-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);
    line-height: 1.12;
}

html .aw-home-hero-copy > .aw-eyebrow,
html .aw-home-slide-caption .aw-tag,
html .aw-product-body > span,
html .aw-product-badge,
html .aw-pd-flag {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

html .aw-home-slide-caption p {
    text-align: left !important;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

html .aw-product-badge,
html .aw-pd-flag {
    max-width: calc(100% - 2rem);
}

html .aw-home-hero-promises > div {
    min-width: 0;
    align-items: flex-start;
}

html .aw-home-hero-promises .material-symbols-outlined {
    flex-shrink: 0;
}

html .aw-home-hero-promises > div > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

html .aw-home .aw-index-title,
html .aw-home .aw-index-text,
html .aw-product-title,
html .aw-product-body > span,
html .aw-pd-title,
html .aw-pd-cat,
html .aw-pd-desc,
html .aw-cart-item,
html .aw-cart-summary {
    overflow-wrap: anywhere;
}

html .aw-shop-layout,
html .aw-shop-toolbar,
html .aw-shop-toolbar form {
    min-width: 0;
}

html .aw-shop-toolbar {
    flex-wrap: wrap;
}

html .aw-shop-toolbar > *,
html .aw-catalog-filter-form fieldset,
html .aw-catalog-filter-form label,
html .aw-catalog-filter-form label > span {
    min-width: 0;
}

html .aw-catalog-filter-form fieldset {
    max-width: 100%;
}

html .aw-catalog-filter-form label > span {
    overflow-wrap: anywhere;
}

html #aw-product-grid {
    width: 100%;
}

html .aw-product,
html .aw-product-media,
html .aw-product-body,
html .aw-product-rating {
    min-width: 0;
    max-width: 100%;
}

html .aw-product-rating {
    row-gap: 0.15rem;
}

html .aw-product-rating .aw-stars {
    flex-shrink: 0;
}

html .aw-product-body .aw-price > div {
    min-width: 0;
}

html .aw-product-body .aw-price-now,
html .aw-product-body .aw-price-was {
    overflow-wrap: anywhere;
}

html .aw-pd-category-row {
    flex-wrap: wrap;
    row-gap: 0.6rem;
}

html .aw-pd-category-row > * {
    min-width: 0;
    max-width: 100%;
}

html .aw-pd-cat,
html .aw-pd-assured,
html .aw-pd-pack,
html .aw-variant-chip,
html .aw-pd-service {
    overflow-wrap: anywhere;
}

html .aw-pd-pricerow,
html .aw-pd-pack,
html .aw-pd-service > span,
html .aw-review-head > *,
html .aw-review-overview > *,
html .aw-review-card,
html .aw-review-assurance {
    min-width: 0;
}

html .aw-pd-actions > .aw-btn {
    min-width: 0;
    padding-inline: clamp(0.75rem, 1.4vw, 1.5rem);
}

html .aw-pd-proofstrip .aw-pd-proof {
    min-width: 0;
}

html .aw-linked-products-grid > *,
html .aw-linked-products-grid > * > * {
    min-width: 0;
}

html .aw-cart-summary .flex.justify-between {
    gap: 0.75rem;
    flex-wrap: wrap;
}

html .aw-cart-summary .aw-btn {
    padding-inline: 0.9rem;
    letter-spacing: 0.025em;
}

html .aw-cart-page .aw-steps {
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

@media (max-width: 1023px) {
    html .aw-home-hero > .aw-container {
        row-gap: 2rem;
    }

    html .aw-home-hero-seal {
        top: 0.75rem;
        left: 0.75rem;
        width: 5rem;
        height: 5rem;
    }

    /* Keep the customer count in the page flow rather than covering the next
       section or colliding with the fixed support buttons on a phone. */
    html .aw-home-hero-stat {
        position: relative;
        inset: auto;
        width: fit-content;
        max-width: 100%;
        margin: 1rem auto 0;
        padding-right: 1.25rem;
    }

    html .aw-home-hero-stat > span:first-child {
        flex-shrink: 0;
    }

    html .aw-home-hero-stat > span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    html .aw-home-hero-stat .aw-count {
        font-size: 1.6rem;
    }

    html .aw-product-page .aw-pd-stage {
        max-width: 38rem;
        margin-inline: auto;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    html .aw-shop-layout {
        gap: 1.5rem;
    }

    html .aw-shop-layout > aside {
        width: 15rem;
    }

    /* At laptop widths the cart summary needs more room than a four-column
       slice of a twelve-column grid can provide. */
    html .aw-cart-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    html .aw-cart-layout > * {
        grid-column: 1 / -1;
    }

    html .aw-cart-layout > :last-child {
        width: 100%;
        max-width: 38rem;
        justify-self: end;
    }
}

@media (max-width: 767px) {
    html .aw-home-slide-caption {
        padding: 1.25rem;
    }

    html .aw-home-slide-caption p {
        font-size: clamp(1.25rem, 1.05rem + 1.2vw, 1.65rem);
        line-height: 1.3;
    }

    html .aw-home-slide-caption .aw-tag {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    html .aw-product-page .aw-review-head {
        align-items: flex-start;
    }

    html .aw-product-page .aw-review-assurance {
        width: 100%;
    }

    html #awMobileTestimonialsTrack,
    html #awMobileTestimonialsTrack > [data-mobile-slide] {
        min-width: 0;
    }

    html #awMobileTestimonialsTrack .aw-testimonial-foot {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

@media (max-width: 639px) {
    html .aw-home-hero #hero-slider {
        aspect-ratio: 1 / 1;
        border-radius: 1.5rem;
    }

    html .aw-home-hero-seal {
        width: 4.5rem;
        height: 4.5rem;
    }

    html .aw-home-hero-seal > span:first-child {
        font-size: 0.68rem;
    }

    html .aw-home-hero-promises {
        column-gap: 1rem;
    }

    html .aw-home-hero-promises .text-label-md {
        font-size: 0.8rem;
    }

    html .aw-home-hero [data-slide-prev],
    html .aw-home-hero [data-slide-next] {
        opacity: 1;
    }

    html .aw-product .aw-product-btn,
    html #aw-product-grid.grid-cols-2 .aw-product-btn {
        min-height: 2.75rem;
    }

    html .aw-product-media {
        padding: clamp(0.65rem, 3vw, 1.25rem);
    }

    html .aw-pd-proofstrip .aw-pd-proof:nth-child(odd) {
        border-left: 0;
    }

    html .aw-pd-proofstrip .aw-pd-proof:nth-child(n + 3) {
        border-top: 1px solid var(--aw-line);
    }

    html .aw-cart-summary {
        padding: 1.25rem;
    }
}

@media (max-width: 379px) {
    html .aw-home .aw-catalog-grid--home,
    html .aw-cart-recommendations,
    html .aw-linked-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    html .aw-product .aw-product-body .aw-product-btn {
        padding-inline: 0.5rem !important;
        gap: 0.25rem !important;
    }

    html .aw-home .aw-catalog-grid--home .aw-product-title,
    html .aw-cart-recommendations .aw-product-title {
        font-size: 1.05rem !important;
    }

    html .aw-cart-page .aw-step {
        font-size: 0.7rem;
    }

    html .aw-cart-page .aw-steps {
        gap: 0.4rem;
    }
}
