.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
        "gallery information";
}

.product-detail-layout > * {
    min-width: 0;
    padding-right: 15px;
    padding-left: 15px;
}

.product-detail-gallery {
    grid-area: gallery;
}

.product-detail-information {
    grid-area: information;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.product-rating-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    max-width: 100%;
    margin-top: .35rem;
    padding: 0;
    background: transparent;
    text-align: left;
    color: #2d2b28;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.product-rating-summary:hover {
    color: #2d2b28;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.product-rating-summary:focus-visible {
    border-radius: .15rem;
    outline: 2px solid #8a5a2b;
    outline-offset: 3px;
}

.product-rating-summary__stars {
    color: #a65e20;
    letter-spacing: .03em;
    white-space: nowrap;
}

.product-rating-summary__stars .is-filled {
    color: #8a4e19;
}

.product-rating-summary__value {
    color: #393632;
    font-variant-numeric: tabular-nums;
}

.product-rating-summary__count {
    color: #393632;
    text-decoration: underline;
    text-underline-offset: .16em;
}

.product-rating-summary__empty {
    color: #393632;
    text-decoration: underline;
    text-underline-offset: .16em;
}

.product-rating-summary[hidden] {
    display: none;
}

.product-reviews-widget {
    scroll-margin-top: 1rem;
}

.product-reviews-unavailable {
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .product-detail-heading h1 {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "heading"
            "price"
            "gallery"
            "content";
    }

    .product-detail-information {
        display: contents;
    }

    .product-detail-heading {
        grid-area: heading;
    }

    .product-detail-price {
        grid-area: price;
    }

    .product-detail-content {
        grid-area: content;
    }

    .product-detail-gallery {
        margin-top: 1rem;
    }

    .product-detail-content {
        margin-top: 1.5rem;
    }

    /* The information wrapper becomes display: contents at these widths, so
       restore the same gutters that remain around the product gallery. */
    .product-detail-heading,
    .product-detail-price,
    .product-detail-content {
        min-width: 0;
        padding-right: 15px;
        padding-left: 15px;
    }
}

.product-information-tabs { padding-top: 1rem; }
.product-info-accordion { margin-top: 1rem; border-top: 1px solid #e7e7e7; }
.product-info-accordion .panel { margin: 0; border-bottom: 1px solid #e7e7e7; }
.product-info-accordion .panel-heading { margin: 0; padding: 0; font-size: 1rem; }
.product-related-heading { text-transform: uppercase; }
.product-info-accordion-toggle {
    display: flex;
    width: 100%;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 0;
    border: 0;
    background: #fff;
    color: #222;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.product-information .product-section-heading-type,
.product-info-accordion .product-section-heading-type {
    font-family: "Overpass Mono", monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: uppercase;
}
.product-info-accordion-toggle::after { content: "+"; margin-left: 1rem; color: #8a5a2b; font-size: 1.4rem; line-height: 1; }
.product-info-accordion-toggle[aria-expanded="true"]::after { content: "−"; }
.product-info-accordion .panel-body { padding: .25rem 0 1.25rem; }

@media (max-width: 575.98px) {
    .product-page-counter { flex-wrap: nowrap; }
    .product-page-counter-button {
        flex: 1 1 0;
        min-width: 0;
    }
    .product-page-counter-button .ajax-add-to-cart-link {
        display: inline-flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-right: 0 !important;
        white-space: nowrap;
    }
}

.gift-set-ingredients-accordion .panel-body > .card {
    margin-bottom: 1rem;
}

.gift-set-ingredients-accordion .panel-body > .card:last-child {
    margin-bottom: 0;
}

/* The MStore accordion header rule also matches ingredient cards inside a panel. */
.gift-set-ingredients-accordion .ingredients > .card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
}

.gift-set-ingredients-accordion .ingredients > .card-header.bg-shea-butter { background-color: #862a0d; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-beeswax { background-color: #efc82f; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-grapeseed { background-color: #8a78a3; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-sweetalmond { background-color: #44a9a5; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-jojoba { background-color: #1a9f51; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-argan { background-color: #e79e42; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-aloe-vera-butter { background-color: #55a348; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-arrowroot { background-color: #b19150; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-mango-butter { background-color: #f7b42f; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-cocoa-butter { background-color: #986d35; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-coconut { background-color: #824c31; }
.gift-set-ingredients-accordion .ingredients > .card-header.bg-lanolin { background-color: #e298db; }
