.gl3-product-page .product-buy .stock.in-stock,
.gl3-product-page .product-buy .woocommerce-variation-availability:has(.stock.in-stock) {
    display: none;
}

.gl3-product-page .product-info > .gl3-delivery-estimate {
    justify-content: flex-start;
    text-align: left;
}

.gl3-product-page .gl3-information-accordions > details > summary {
    font-size: 1rem;
    line-height: 1.45;
}

.gl3-product-page .gl3-information-accordions > details > .gl90-accordion-copy {
    font-size: .875rem;
}

@media (min-width: 761px) {
    .gl3-product-page .gl3-information-accordions {
        display: block;
    }

    .gl3-product-page .gl3-information-accordions > details > summary {
        gap: 20px;
        min-height: 0;
        overflow-wrap: normal;
        hyphens: manual;
    }
}

@media (max-width: 760px) {
    .gl3-product-page .product-buy form.cart:not(.variations_form),
    .gl3-product-page .product-buy .woocommerce-variation-add-to-cart {
        flex-wrap: nowrap;
    }

    .gl3-product-page .product-buy form.cart .quantity {
        flex-shrink: 0;
    }

    .gl3-product-page .product-buy form.cart .single_add_to_cart_button {
        flex: 1 1 0;
        max-width: none;
        padding-inline: 12px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    /* The cart drawer opens automatically and the header cart stays available. */
    .gl3-product-page .product-buy a.added_to_cart {
        display: none;
    }
}

.gl3-product-page .product-info > .gl-layout-recommendations {
    margin: 12px 0 0;
    padding: 0;
}

.gl3-is-single .product-info > .gl3-mini-videos + :is(.gl-layout-recommendations, .gl90-routine) {
    margin-block-start: 22px;
}

.gl3-product-page .product-info > .gl-layout-recommendations > h2 {
    font-size: .875rem;
    margin-bottom: 7px;
}

.gl3-cart-drawer .gl3-cart-unit-price {
    margin-inline-start: .35em;
    color: #655a4e;
    font-size: .75rem;
    white-space: nowrap;
}

/* Ordinary recommendations share one layout on product pages and in the drawer. */
:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells {
    --gl-upsell-image-size: clamp(30px, 7vw, 40px);
    --gl-upsell-button-size: 28px;
    --gl-upsell-card-gap: clamp(4px, 1vw, 8px);
    --gl-upsell-card-padding: clamp(6px, 1vw, 9px);
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells > .gl3-small-upsells {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 1vw, 10px);
    max-width: none;
    overflow: visible;
    padding: 0;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-small-upsell {
    display: grid;
    grid-template-columns: var(--gl-upsell-image-size) minmax(0, 1fr) var(--gl-upsell-button-size);
    grid-template-rows: auto;
    align-items: center;
    gap: var(--gl-upsell-card-gap);
    min-width: 0;
    padding: var(--gl-upsell-card-padding);
    background: #f7f3ef;
    border: 1px solid #ded3c6;
    border-radius: 9px;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-upsell-image {
    width: var(--gl-upsell-image-size);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    background: transparent;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-upsell-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 2px;
    min-width: 0;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-upsell-name {
    grid-column: 1;
    grid-row: auto;
    font-family: 'Glowlie Accordion', var(--sans);
    font-size: clamp(.65rem, 1.6vw, .75rem);
    line-height: 1.28;
    overflow-wrap: anywhere;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-upsell-price {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    font-size: clamp(.65rem, 1.5vw, .72rem);
    line-height: 1.27;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl90-swatches {
    gap: 2px;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl90-swatches button {
    width: 24px;
    height: 24px;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl90-swatches .color-dot {
    width: 11px;
    height: 11px;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-add-small {
    grid-column: 3;
    grid-row: 1;
    width: var(--gl-upsell-button-size);
    height: var(--gl-upsell-button-size);
    min-height: 0;
    margin: 0;
    padding: 0;
    background: #d1c3b2 !important;
    border-color: #d1c3b2 !important;
    color: #000 !important;
    border-radius: 999px !important;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-add-small .gl-icon {
    width: 15px;
    height: 15px;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-add-small:hover {
    border-color: #000 !important;
}

:is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells .gl3-small-upsell > a.added_to_cart {
    display: none;
}

@media (max-width: 1100px) {
    :is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells {
        --gl-upsell-image-size: 30px;
        --gl-upsell-button-size: 26px;
        --gl-upsell-card-gap: 4px;
        --gl-upsell-card-padding: 6px;
    }
}

@media (max-width: 400px) {
    :is(.gl3-product-page, .gl3-cart-drawer) .gl-compact-upsells {
        --gl-upsell-image-size: 26px;
        --gl-upsell-button-size: 24px;
        --gl-upsell-card-gap: 4px;
        --gl-upsell-card-padding: 5px;
    }
}
