.remaining-balance-note {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e8d6df;
    border-radius: 8px;
    background: #fff8fb;
    color: #333;
    line-height: 1.5;
}

.remaining-balance-note[hidden] {
    display: none !important;
}

.rescue-details-card {
    margin: 0 0 1.25rem;
    padding: 1rem 1.125rem;
    border: 1px solid #e8d6df;
    border-radius: 12px;
    background: #fff;
    color: #333;
}

.rescue-details-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.rescue-details-card dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.rescue-details-card dl > div {
    display: grid;
    gap: 0.15rem;
}

.rescue-details-card dt {
    font-size: 0.875rem;
    font-weight: 600;
}

.rescue-details-card dd {
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cc-ask-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.cc-ask-link:focus-visible,
.learn-more-button:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 3px;
}

/* Keep the gallery and payment panel in a bounded, predictable layout. */
body.single-product .product-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.25vw, 2rem);
}

body.single-product .product-content-layout > .product-main,
body.single-product .product-content-layout > .product-sidebar {
    min-width: 0;
    width: auto;
    max-width: none;
    flex: none;
}

body.single-product .product-content-layout > .product-main .product-gallery-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

body.single-product .product-content-layout > .product-main .product-gallery-swiper .swiper-slide {
    min-width: 0;
}

body.single-product .product-content-layout > .product-main .product-gallery-swiper .swiper-slide img {
    display: block;
    width: 90%;
    max-width: 480px;
    max-height: 720px;
    height: auto;
    object-fit: contain;
}

/* The earlier Customizer rules stack the sidebar at 768px and below. Keep it
   beside the product on tablet widths, where the grid gives both columns a
   concrete width so Swiper cannot grow its slides from a circular size. */
@media (min-width: 768px) {
    body.single-product .product-content-layout {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    }
}

/* Preserve the existing single-column mobile presentation while preventing
   the later, broader Customizer flex rule from overriding the mobile sizing. */
@media (max-width: 767px) {
    body.single-product .product-content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-product .product-content-layout > .product-main,
    body.single-product .product-content-layout > .product-sidebar {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        flex: none;
    }
}
