/* Commerce Core — V19088 expansion widgets */

[data-mb-studio-expanded] {
    min-width: 0;
}

.mb-expanded-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--section-max,1320px);
    margin-inline: auto;
    padding: var(--section-padding,48px)
             24px
             var(--section-padding-bottom,48px);
    background: var(--mb-expanded-bg,transparent);
    --mb-expanded-cols: var(--mb-expanded-cols-d,3);
    --mb-expanded-ratio: var(--mb-expanded-ratio-d,16 / 9);
}

.mb-expanded-split {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    align-items: center;
    gap: clamp(24px,4vw,64px);
}

.mb-expanded-split[data-desktop-order="text_first"] .mb-expanded-copy {
    grid-column: 1;
    grid-row: 1;
}

.mb-expanded-split[data-desktop-order="text_first"] .mb-expanded-media {
    grid-column: 2;
    grid-row: 1;
}

.mb-expanded-media {
    min-width: 0;
}

.mb-expanded-media:empty {
    display: none;
}

.mb-expanded-split:has(.mb-expanded-media:empty) {
    grid-template-columns: minmax(0,1fr);
}

.mb-expanded-media :is(picture,img,video) {
    width: 100%;
    display: block;
    max-width: 100%;
}

.mb-expanded-media :is(img,video) {
    aspect-ratio: var(--mb-expanded-ratio);
    object-fit: cover;
    border-radius: 3px;
}

.mb-expanded-media video {
    background: #141414;
    object-fit: contain;
}

.mb-expanded-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mb-expanded-description {
    white-space: pre-wrap;
}

.mb-expanded-mosaic,
.mb-expanded-testimonials {
    display: grid;
    grid-template-columns:
        repeat(var(--mb-expanded-cols),minmax(0,1fr));
    gap: 18px;
    margin-top: 24px;
}

.mb-expanded-mosaic-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5ded7;
    background: #fff;
    color: #292526;
}

.mb-expanded-mosaic-card:first-child {
    grid-column: span 2;
}

.mb-expanded-mosaic-card picture,
.mb-expanded-mosaic-card img {
    display: block;
    width: 100%;
}

.mb-expanded-mosaic-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mb-expanded-mosaic-copy {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.mb-expanded-mosaic-copy h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 550;
}

.mb-expanded-mosaic-copy p {
    font-size: 13px;
}

.mb-expanded-testimonial {
    display: grid;
    gap: 16px;
    align-content: start;
    min-width: 0;
    padding: 24px;
    border: 1px solid #e5ded7;
    background: #fff;
    color: #292526;
}

.mb-expanded-testimonial > span {
    font-family: Georgia,serif;
    font-size: 48px;
    line-height: 1;
    color: #b29569;
}

.mb-expanded-testimonial blockquote {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mb-expanded-testimonial figcaption {
    font-weight: 600;
    font-size: 13px;
}

.mb-expanded-countdown {
    margin-top: 24px;
}

.mb-expanded-countdown time {
    display: block;
    font-size: 13px;
}

[data-mb-countdown-clock] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

[data-mb-countdown-clock] span {
    display: grid;
    gap: 5px;
    min-width: 60px;
    padding: 12px 8px;
    text-align: center;
    background: #f5f0ea;
    color: #292526;
    border: 1px solid #e5ded7;
}

[data-mb-countdown-clock] strong {
    font-size: clamp(18px,2.2vw,30px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

[data-mb-countdown-clock] small {
    font-size: 10px;
}

[data-mb-countdown-ended] {
    margin-top: 14px;
    font-weight: 600;
}

.mb-expanded-contact {
    text-align: center;
}

.mb-expanded-contact .preview-text {
    margin-inline: auto;
}

.mb-expanded-phones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.mb-expanded-phones a {
    font-weight: 600;
}

.mb-expanded-collection-link {
    display: flex;
    justify-content: center;
    padding-bottom: 24px;
}

.mb-expanded-notice,
.mb-expanded-placeholder {
    padding: 18px;
    margin: 12px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 13px;
}

[data-mb-expanded-product="featured_product"] .mbv3-grid {
    display: grid !important;
    grid-template-columns: minmax(0,460px) !important;
    justify-content: center !important;
}

[data-mb-expanded-product="featured_product"] .mbv3-card {
    width: 100%;
    max-width: 460px;
}

@media (min-width:768px) and (max-width:1024px) {

    .mb-expanded-shell {
        --mb-expanded-cols: var(--mb-expanded-cols-t,2);
        --mb-expanded-ratio: var(--mb-expanded-ratio-t,4 / 3);

        padding: var(--section-padding-tablet-top,36px)
                 20px
                 var(--section-padding-tablet-bottom,36px);
    }
}

@media (max-width:767px) {

    .mb-expanded-shell {
        --mb-expanded-cols: var(--mb-expanded-cols-m,1);
        --mb-expanded-ratio: var(--mb-expanded-ratio-m,4 / 5);

        padding: var(--section-padding-mobile-top,24px)
                 16px
                 var(--section-padding-mobile-bottom,24px);
    }

    .mb-expanded-split {
        grid-template-columns: minmax(0,1fr);
        gap: 20px;
    }

    .mb-expanded-split[data-desktop-order] :is(
        .mb-expanded-copy,
        .mb-expanded-media
    ) {
        grid-column: auto;
        grid-row: auto;
    }

    .mb-expanded-split[data-mobile-order="text_first"] .mb-expanded-copy {
        grid-row: 1;
    }

    .mb-expanded-mosaic,
    .mb-expanded-testimonials {
        gap: 10px;
    }

    .mb-expanded-mosaic-card:first-child {
        grid-column: 1 / -1;
    }

    .mb-expanded-testimonial {
        padding: 16px;
    }

    [data-mb-expanded-mobile="0"] {
        display: none !important;
    }
}

@media (min-width:768px) {

    [data-mb-expanded-desktop="0"] {
        display: none !important;
    }
}
