/**
 * Mother’s Day 2026 landing — page-only styles (mothers_day_2026 template).
 * Warm “温馨的母爱” palette: blush rose, cream, soft gold — no campaign green.
 * Loaded after 9981.css; use !important only where global theme wins.
 */

/* Scope all rules to main.mdl-page so global / 9981 rules do not leak. */
.main.mdl-page {
    --mdl-bg: #fff8f6;
    /* Legacy var names (--mdl-olive / --mdl-lime) match Blade classes; values = warm rose / blush. */
    --mdl-olive: #b85c6a;
    --mdl-olive-hover: #8f4654;
    --mdl-lime: #e8c4c8;
    --mdl-lime-text: #3d2f32;
    --mdl-charcoal: #2f2829;
    --mdl-muted: #6b5e5e;
    --mdl-black: #2c2425;
    --mdl-pill: 50px;
    --mdl-kicker: #b85c6a;
    --mdl-furo-bg: #3d3438;
    --mdl-furo-text: #e8e0e0;

    font: inherit !important;
    color: var(--mdl-black) !important;
    background: var(--mdl-bg) !important;
    overflow-x: clip;
}

/* Optional BO image links: wrap <img> only (no nested anchors with overlay CTAs). */
.main.mdl-page a.mdl-img-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.main.mdl-page a.mdl-img-link:focus-visible {
    outline: 2px solid var(--mdl-olive);
    outline-offset: 2px;
}

.main.mdl-page h1,
.main.mdl-page h2,
.main.mdl-page h3,
.main.mdl-page h4 {
    font-family: inherit !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.main.mdl-page .mdl-split__text h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.main.mdl-page .mdl-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.main.mdl-page .mdl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.9rem 2rem;
    border-radius: var(--mdl-pill);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.3;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.main.mdl-page .mdl-btn--primary {
    background: var(--mdl-olive) !important;
    color: #fff !important;
    border-color: var(--mdl-olive) !important;
}

.main.mdl-page .mdl-btn--primary:hover {
    background: var(--mdl-olive-hover) !important;
    color: #fff !important;
    border-color: var(--mdl-olive-hover) !important;
}

.main.mdl-page .mdl-btn--ghost {
    background: #fff !important;
    color: var(--mdl-black) !important;
    border-color: #e0d4d1 !important;
}

.main.mdl-page .mdl-btn--ghost:hover {
    border-color: var(--mdl-olive) !important;
    color: var(--mdl-olive) !important;
}

.main.mdl-page .mdl-btn--lime {
    background: var(--mdl-lime) !important;
    color: var(--mdl-lime-text) !important;
    border-color: var(--mdl-lime) !important;
    font-weight: 700;
}

.main.mdl-page .mdl-btn--lime:hover {
    filter: brightness(1.04);
    color: var(--mdl-lime-text) !important;
}

.main.mdl-page .mdl-kicker {
    display: inline-block;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 700;
    color: var(--mdl-kicker) !important;
    margin-bottom: 0.75rem;
}

.main.mdl-page .mdl-hero {
    padding: 2.5rem 0 3rem;
}

.main.mdl-page .mdl-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .main.mdl-page .mdl-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.main.mdl-page .mdl-hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
}

/* BO: when copy badges are on, allow the headline to wrap with code pills */
.main.mdl-page.mdl-page--show-copy-codes .mdl-hero h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.2rem;
    row-gap: 0.35rem;
}

.main.mdl-page .mdl-hero h1 .mdl-accent {
    color: var(--mdl-olive) !important;
    font-style: italic;
    font-weight: 600;
}

.main.mdl-page .mdl-lead {
    color: var(--mdl-muted) !important;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.86;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.main.mdl-page .mdl-lead--fluid {
    max-width: none !important;
}

.main.mdl-page .mdl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.main.mdl-page .mdl-hero-visual {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(90, 50, 55, 0.1);
    background: #efe4e0;
}

/* Same 4:3 frame as .mdl-furo-visual img; contain = full image visible */
.main.mdl-page .mdl-hero-visual img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.main.mdl-page .mdl-section {
    padding: 3rem 0;
}

.main.mdl-page .mdl-section--tight {
    padding-top: 2rem;
}

.main.mdl-page .mdl-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .main.mdl-page .mdl-split {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.main.mdl-page .mdl-media-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
}

.main.mdl-page .mdl-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main.mdl-page .mdl-quote-overlap {
    position: absolute;
    z-index: 6;
    right: 1rem;
    bottom: 1rem;
    max-width: min(90%, 320px);
    background: var(--mdl-lime) !important;
    color: var(--mdl-lime-text) !important;
    padding: 1.25rem 1.35rem;
    border-radius: 0.75rem;
    font-size: 1.35rem;
    font-style: italic;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 12px 30px rgba(60, 35, 40, 0.15);
}

.main.mdl-page .mdl-checklist {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.main.mdl-page .mdl-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.75;
}

.main.mdl-page .mdl-checklist .mdl-icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mdl-olive) !important;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.main.mdl-page .mdl-section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.main.mdl-page .mdl-section-title h2 {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.main.mdl-page .mdl-section-title--left {
    text-align: left !important;
    margin-bottom: 2rem !important;
}

.main.mdl-page .mdl-section-title--left h2 {
    text-align: left !important;
}

.main.mdl-page .mdl-section-title .mdl-rule {
    width: 48px;
    height: 3px;
    background: var(--mdl-olive) !important;
    margin: 0 auto;
    border-radius: 2px;
}

.main.mdl-page .mdl-section-title--left .mdl-rule {
    margin: 0 !important;
}

.main.mdl-page .mdl-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .main.mdl-page .mdl-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Curated bundle cards: three per row on desktop */
@media (min-width: 1024px) {
    .main.mdl-page .mdl-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.35rem;
    }

    .main.mdl-page .mdl-cards .mdl-card-head h3 {
        font-size: 1.45rem;
    }

    .main.mdl-page .mdl-cards .mdl-price {
        font-size: 1.25rem;
    }

    .main.mdl-page .mdl-cards .mdl-card-desc {
        font-size: 1.25rem;
    }
}

.main.mdl-page .mdl-card {
    background: #fffefc !important;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(184, 92, 106, 0.12);
    box-shadow: 0 8px 28px rgba(90, 50, 55, 0.06);
    display: flex;
    flex-direction: column;
}

.main.mdl-page .mdl-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.main.mdl-page .mdl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main.mdl-page .mdl-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main.mdl-page .mdl-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.main.mdl-page .mdl-card-head h3 {
    font-size: 1.65rem;
    margin: 0;
    line-height: 1.25;
}

.main.mdl-page .mdl-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--mdl-olive) !important;
}

.main.mdl-page .mdl-badge {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    background: var(--mdl-lime) !important;
    color: var(--mdl-lime-text) !important;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.main.mdl-page .mdl-card-desc {
    color: var(--mdl-muted) !important;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.75;
    flex: 1;
}

.main.mdl-page .mdl-furo {
    background: var(--mdl-furo-bg) !important;
    color: var(--mdl-furo-text) !important;
    padding: 3rem 0;
    position: relative;
}

.main.mdl-page .mdl-furo-text {
    position: relative;
}

.main.mdl-page .mdl-furo h2 {
    color: #fff7f5 !important;
    font-size: clamp(2.2rem, 3.5vw, 2.85rem);
    margin-bottom: 1rem;
}

.main.mdl-page .mdl-furo p {
    color: #d4c9c9 !important;
    max-width: 32rem;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.86;
}

.main.mdl-page .mdl-furo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.main.mdl-page .mdl-furo-features span {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #f5e6e8 !important;
}

.main.mdl-page .mdl-furo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .main.mdl-page .mdl-furo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.main.mdl-page .mdl-furo-visual {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
}

.main.mdl-page .mdl-furo-visual img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.main.mdl-page .mdl-furo-float {
    margin: 1.5rem 0 0;
    position: relative;
    z-index: 2;
}

.main.mdl-page .mdl-pair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .main.mdl-page .mdl-pair-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.main.mdl-page .mdl-pair-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(184, 92, 106, 0.15);
}

.main.mdl-page .mdl-pair-item:last-child {
    border-bottom: none;
}

.main.mdl-page .mdl-pair-thumb {
    position: relative;
    width: 88px;
    height: 72px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.main.mdl-page .mdl-pair-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main.mdl-page .mdl-pair-item h4 {
    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.main.mdl-page .mdl-pair-meta {
    font-size: 1.3rem;
    color: var(--mdl-olive) !important;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.main.mdl-page .mdl-pair-item p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--mdl-muted) !important;
    line-height: 1.75;
}

.main.mdl-page .mdl-pair-photo {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(90, 50, 55, 0.12);
    background: #efe4e0;
}

/* Match Furoshiki frame: same 4:3; contain = full image visible */
.main.mdl-page .mdl-pair-photo img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.main.mdl-page .mdl-microcopy {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--mdl-muted) !important;
    line-height: 1.65;
    margin-top: 2rem;
    text-align: center;
}

/* BO preview: floating menu is viewport-fixed; no extra main padding */
.main.mdl-page.mdl-page--bo-preview {
    padding-bottom: 0 !important;
}

/* Image slot IDs — match DB column names (see BO Images tab [image_*] labels) */
.main.mdl-page .mdl-media-slot {
    position: relative !important;
}

.main.mdl-page .mdl-slot-code {
    display: none !important;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    font: 600 1.1rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 0.35rem 0.55rem;
    background: rgba(45, 36, 38, 0.88) !important;
    color: #fff !important;
    border-radius: 6px;
    line-height: 1.2;
    pointer-events: none;
    max-width: calc(100% - 20px);
    word-break: break-all;
}

.main.mdl-page.mdl-page--show-codes .mdl-slot-code {
    display: block !important;
}

/* BO preview: image slot badges open “where to edit” in the side panel */
.main.mdl-page.mdl-page--bo-preview.mdl-page--show-codes .mdl-slot-code {
    pointer-events: auto !important;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.main.mdl-page.mdl-page--bo-preview.mdl-page--show-codes .mdl-slot-code:hover,
.main.mdl-page.mdl-page--bo-preview.mdl-page--show-codes .mdl-slot-code:focus-visible {
    background: rgba(184, 92, 106, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.main.mdl-page .mdl-pair-thumb .mdl-slot-code {
    font-size: 0.95rem;
    padding: 0.2rem 0.4rem;
    z-index: 3;
}

/* BO preview: “customer only” mode — omit CMS-hidden image slots (removed from layout, not visibility:hidden) */
.main.mdl-page.mdl-page--bo-preview.mdl-page--preview-customer-only .mdl-bo-slot--hidden-live {
    display: none !important;
}

.main.mdl-page.mdl-page--bo-preview.mdl-page--preview-customer-only .mdl-bo-card--hidden-live,
.main.mdl-page.mdl-page--bo-preview.mdl-page--preview-customer-only .mdl-bo-pair-item--hidden-live {
    display: none !important;
}

/*
 * Live-site fallback for elements whose registry metadata
 * (cms_landing_page_elements.attributes.hide_strategy) is "display_none".
 * Blade emits this class on outer slot elements when the page is rendered on
 * the public site with the element marked hidden; we keep the DOM node so
 * CSS Grid slot placements are preserved, while making it invisible.
 * Scoped to :not(.mdl-page--bo-preview) so the BO preview still renders the
 * hidden-live ribbon normally.
 */
.main.mdl-page:not(.mdl-page--bo-preview) .mdl-slot--hidden-live-style {
    display: none !important;
}

/* BO preview only: slots hidden on the live site stay in the DOM so staff can re-enable them */
.main.mdl-page.mdl-page--bo-preview .mdl-bo-slot--hidden-live {
    outline: 2px dashed rgba(200, 120, 130, 0.95);
    outline-offset: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main.mdl-page.mdl-page--bo-preview .mdl-bo-card--hidden-live,
.main.mdl-page.mdl-page--bo-preview .mdl-bo-pair-item--hidden-live {
    position: relative;
    outline: 2px dashed rgba(200, 120, 130, 0.95);
    outline-offset: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main.mdl-page.mdl-page--bo-preview .mdl-bo-hidden-live-ribbon--bundle-card,
.main.mdl-page.mdl-page--bo-preview .mdl-bo-hidden-live-ribbon--pair-row {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    left: auto;
    z-index: 8;
}

.main.mdl-page.mdl-page--bo-preview .mdl-bo-hidden-live-ribbon {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 6;
    max-width: min(11rem, calc(100% - 0.7rem));
    padding: 0.22rem 0.48rem;
    font: 700 0.68rem ui-sans-serif, system-ui, sans-serif;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(120, 50, 58, 0.94);
    border-radius: 4px;
    pointer-events: none;
    text-align: center;
}

.mdl-bo-float__slot-tip--secondary {
    margin-top: 0.35rem !important;
    opacity: 0.72;
}

/* —— BO preview: floating menu (right edge, vertically centered, expandable) —— */
.mdl-bo-float {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10050 !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0.75rem 0.75rem 0.75rem 0 !important;
    max-width: 100vw;
    box-sizing: border-box;
    pointer-events: none;
    font-size: 1.25rem !important;
    line-height: 1.45 !important;
}

.mdl-bo-float > * {
    pointer-events: auto;
}

.mdl-bo-float__panel {
    max-width: min(26rem, calc(100vw - 4.5rem));
    margin-right: 0.35rem;
    background: rgba(45, 36, 38, 0.96) !important;
    color: #fdf5f2 !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -4px 8px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s;
}

.mdl-bo-float:not(.mdl-bo-float--open) .mdl-bo-float__panel {
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .mdl-bo-float__panel {
        transition: none;
    }
}

.mdl-bo-float__panel-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem 0.45rem 0.85rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mdl-bo-float__title {
    font-weight: 600;
    font-size: 1.15rem !important;
    margin: 0 !important;
    color: inherit !important;
}

.mdl-bo-float__panel-close {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fdf5f2 !important;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.mdl-bo-float__panel-close:hover,
.mdl-bo-float__panel-close:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.mdl-bo-float__panel-body {
    padding: 0.65rem 0.85rem 0.85rem !important;
}

.mdl-bo-float__toggle-row {
    display: flex !important;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 !important;
    cursor: pointer;
    color: inherit !important;
    font-weight: 500;
}

.mdl-bo-float__toggle-row input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mdl-bo-float__hint {
    margin: 0.45rem 0 0 !important;
    padding-left: 1.55rem;
    font-size: 1.1rem !important;
    font-weight: 400;
    opacity: 0.82;
    color: inherit !important;
}

.mdl-bo-float__hint--tight {
    margin-top: 0.25rem !important;
    padding-left: 0 !important;
}

.mdl-bo-float__toggle-row--strong .mdl-bo-float__label-text {
    font-weight: 600;
}

/* Hint text lives in title="" — cursor hints that more detail is available on hover */
.mdl-bo-float__label-text[title] {
    cursor: help;
}

.mdl-bo-float__toggle-group {
    margin: 0.35rem 0 0.15rem;
    padding: 0.45rem 0 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mdl-bo-float__toggle-group-label {
    margin: 0 0 0.2rem !important;
    padding: 0 0.05rem;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    color: rgba(248, 240, 242, 0.95) !important;
    line-height: 1.3;
}

.mdl-bo-float__toggle-group-hint {
    margin: 0 0 0.4rem !important;
    padding: 0 0.05rem 0 0.65rem;
    font-size: 0.95rem !important;
    font-weight: 400;
    line-height: 1.35;
    opacity: 0.78;
    color: inherit !important;
}

.mdl-bo-float__toggle-row--nested {
    margin-top: 0.35rem !important;
    padding-left: 0.6rem;
    border-left: 2px solid rgba(230, 154, 164, 0.45);
}

.mdl-bo-float__divider {
    height: 1px;
    margin: 0.65rem 0;
    background: rgba(255, 255, 255, 0.1);
}

.mdl-bo-float__future {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 400;
    opacity: 0.65;
    color: inherit !important;
    line-height: 1.45;
}

.mdl-bo-float__slot-hint {
    margin: 0;
}

.mdl-bo-float__slot-hint[hidden] {
    display: none !important;
}

.mdl-bo-float__slot-hint-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
}

.mdl-bo-float__slot-hint-code {
    margin: 0 !important;
    font: 600 1.05rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    color: #f5d0d6 !important;
    word-break: break-all;
}

.mdl-bo-float__slot-hint-dismiss {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.15rem 0.45rem;
    font-size: 1rem !important;
    line-height: 1.2;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fdf5f2 !important;
    cursor: pointer;
}

.mdl-bo-float__slot-hint-dismiss:hover,
.mdl-bo-float__slot-hint-dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.mdl-bo-float__slot-hint-list {
    margin: 0 !important;
    padding-left: 1.2rem !important;
    font-size: 1.05rem !important;
    font-weight: 400;
    line-height: 1.45;
    opacity: 0.92;
    color: inherit !important;
}

.mdl-bo-float__slot-hint-list li {
    margin: 0.25rem 0 0;
}

.mdl-bo-float__slot-hint-list li:first-child {
    margin-top: 0;
}

.mdl-bo-float__slot-editor,
.mdl-bo-float__slot-editor-bundle {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mdl-bo-float__slot-editor[hidden],
.mdl-bo-float__slot-editor-bundle[hidden] {
    display: none !important;
}

.mdl-bo-float__slot-editor-bo-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 1.05rem !important;
    font-weight: 600;
    color: #f5d0d6 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mdl-bo-float__slot-editor-bo-link:hover,
.mdl-bo-float__slot-editor-bo-link:focus-visible {
    color: #fff !important;
    outline: none;
}

.mdl-bo-float__editor-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mdl-bo-float__editor-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 400;
    color: inherit !important;
    cursor: default;
}

.mdl-bo-float__editor-row--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.45rem;
    cursor: pointer;
}

.mdl-bo-float__editor-row--check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mdl-bo-float__editor-label {
    font-size: 0.98rem !important;
    opacity: 0.88;
}

.mdl-bo-float__editor-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.35rem 0.45rem;
    font: inherit;
    font-size: 1rem !important;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fdf5f2 !important;
}

.mdl-bo-float__editor-input:focus {
    outline: 2px solid rgba(245, 208, 214, 0.55);
    outline-offset: 1px;
}

/* BO slot editor: local preview of file selected before Save (object URL) */
.mdl-bo-float__image-preview {
    margin-top: 0.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.28);
}

.mdl-bo-float__image-preview-img {
    display: block;
    width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.15);
}

.mdl-bo-float__image-preview-note {
    margin: 0.35rem 0.45rem 0.55rem !important;
    font-size: 0.82rem !important;
    line-height: 1.35;
    opacity: 0.78;
    color: inherit !important;
}

.mdl-bo-float__editor-save {
    margin-top: 0.25rem;
    padding: 0.45rem 0.85rem;
    font: 600 1.05rem inherit !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--mdl-olive, #b85c6a) !important;
    color: #fff !important;
}

.mdl-bo-float__editor-save:hover,
.mdl-bo-float__editor-save:focus-visible {
    filter: brightness(1.08);
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.mdl-bo-float__editor-msg {
    margin: 0 !important;
    min-height: 1.35em;
    font-size: 0.98rem !important;
    opacity: 0.9;
    color: inherit !important;
}

.mdl-bo-float__slot-tip {
    margin: 0.5rem 0 0 !important;
    font-size: 1.05rem !important;
    opacity: 0.78;
    line-height: 1.4;
    color: inherit !important;
}

.mdl-bo-float__fab {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--mdl-olive, #b85c6a) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(90, 50, 55, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mdl-bo-float__fab:hover,
.mdl-bo-float__fab:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(90, 50, 55, 0.42);
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.mdl-bo-float__fab-icon {
    display: block;
}

/* —— BO preview: full-screen image slot editor (not cramped in float panel) —— */
.mdl-bo-slot-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10060 !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: min(4vh, 1.25rem) min(3vw, 1rem);
    box-sizing: border-box;
    pointer-events: none;
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
}

.mdl-bo-slot-modal[hidden] {
    display: none !important;
}

.mdl-bo-slot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 16, 0.58);
    pointer-events: auto;
}

.mdl-bo-slot-modal__dialog {
    position: relative;
    pointer-events: auto;
    width: min(44rem, 100%);
    max-height: min(92vh, 56rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: rgba(45, 36, 38, 0.98) !important;
    color: #fdf5f2 !important;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.mdl-bo-slot-modal__head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem 0.65rem 1.1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mdl-bo-slot-modal__title {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    color: inherit !important;
    line-height: 1.25;
}

.mdl-bo-slot-modal__close {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fdf5f2 !important;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.88;
}

.mdl-bo-slot-modal__close:hover,
.mdl-bo-slot-modal__close:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.mdl-bo-slot-modal__body {
    padding: 0.85rem 1.1rem 1.15rem !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Allow the image preview to grow into any leftover dialog height. */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Flex chain — lets the image preview inside the editor fill the body's
   remaining vertical space responsively. Each ancestor of the preview gets
   `min-height: 0` so flex-shrink works in a column flex container.
   `:not([hidden])` ensures the `hidden` attribute (template-only mode, etc.)
   still wins over our flex display. */
.mdl-bo-slot-modal__editor:not([hidden]),
.mdl-bo-slot-modal__editor > #mdl-bo-slot-panel-specific:not([hidden]),
.mdl-bo-slot-modal__editor > #mdl-bo-slot-panel-specific:not([hidden]) > .mdl-bo-float__editor-fields {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.mdl-bo-slot-modal__hint-lead {
    margin: 0 0 0.35rem !important;
    font-size: 1.02rem !important;
    font-weight: 500;
    opacity: 0.88;
    color: inherit !important;
}

.mdl-bo-slot-modal__hint-lead--tab {
    font-size: 0.98rem !important;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 0.65rem !important;
}

.mdl-bo-slot-modal__code {
    margin: 0 0 0.6rem !important;
    font: 600 1.08rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    color: #f5d0d6 !important;
    word-break: break-all;
    line-height: 1.35;
}

.mdl-bo-slot-modal__hint-list {
    margin: 0 0 1rem !important;
    padding-left: 1.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.92;
    color: inherit !important;
}

.mdl-bo-slot-modal__hint-list li {
    margin: 0.35rem 0 0;
}

.mdl-bo-slot-modal__hint-list li:first-child {
    margin-top: 0;
}

.mdl-bo-slot-modal__editor.mdl-bo-float__slot-editor {
    margin-top: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mdl-bo-slot-modal__editor .mdl-bo-float__editor-fields {
    gap: 0.65rem;
}

.mdl-bo-slot-modal__editor .mdl-bo-float__editor-input {
    padding: 0.45rem 0.55rem;
    font-size: 1.05rem !important;
}

.mdl-bo-slot-modal__editor .mdl-bo-float__image-preview:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 14rem;
    max-height: min(78vh, 52rem);
    overflow: hidden;
}

.mdl-bo-slot-modal__editor .mdl-bo-float__image-preview-img {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
}

html.mdl-bo-slot-modal--open body {
    overflow: hidden;
}

/* —— BO preview: repeatable row chrome (image + template shortcuts) —— */
.main.mdl-page.mdl-page--bo-preview .mdl-bo-repeatable-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    background: rgba(40, 32, 34, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main.mdl-page.mdl-page--bo-preview .mdl-pair-item .mdl-bo-repeatable-chrome--pair {
    grid-column: 1 / -1;
    margin-bottom: 0.4rem;
}

.main.mdl-page.mdl-page--bo-preview:not(.mdl-page--show-bundle-template-chrome) .mdl-bo-repeatable-chrome:not(.mdl-bo-repeatable-chrome--pair) {
    display: none !important;
}

.main.mdl-page.mdl-page--bo-preview:not(.mdl-page--show-pair-template-chrome) .mdl-bo-repeatable-chrome--pair {
    display: none !important;
}

.main.mdl-page.mdl-page--bo-preview .mdl-bo-repeatable-chrome__btn {
    margin: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8f0f2;
    font: 600 0.78rem ui-sans-serif, system-ui, sans-serif;
    line-height: 1.25;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
}

.main.mdl-page.mdl-page--bo-preview .mdl-bo-repeatable-chrome__btn:hover,
.main.mdl-page.mdl-page--bo-preview .mdl-bo-repeatable-chrome__btn:focus-visible {
    background: rgba(230, 154, 164, 0.35);
    border-color: rgba(230, 154, 164, 0.5);
    outline: none;
}

/* —— BO preview: copy / link / image-link reference badges (toggle from floating menu) —— */
.main.mdl-page .mdl-cms-badge {
    display: none;
    font: 600 0.72rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    line-height: 1.25;
    max-width: 100%;
    word-break: break-all;
    background: rgba(60, 48, 50, 0.92);
    color: #f5ebe8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.main.mdl-page .mdl-cms-ref--copy {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.35rem;
    vertical-align: baseline;
    max-width: 100%;
}

.main.mdl-page.mdl-page--bo-preview .mdl-cms-ref--copy {
    cursor: pointer;
}

.main.mdl-page.mdl-page--bo-preview .mdl-media-slot:has(.mdl-slot-code) {
    cursor: pointer;
}

.main.mdl-page.mdl-page--bo-preview a[data-cms-link-key] {
    cursor: pointer;
}

.mdl-bo-text-slot__textarea {
    min-height: 3.5rem;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}

.main.mdl-page .mdl-cms-ref__inner {
    flex: 1 1 auto;
    min-width: 0;
}

.main.mdl-page.mdl-page--show-copy-codes .mdl-cms-badge--copy {
    display: inline-block;
}

.main.mdl-page a[data-cms-kind="link"] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
}

.main.mdl-page span[data-cms-kind="link"] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
}

.main.mdl-page a[data-cms-kind="link"].mdl-btn {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main.mdl-page span[data-cms-kind="link"].mdl-btn {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Storefront: link_button with click disabled — keep look, block navigation */
.main.mdl-page:not(.mdl-page--bo-preview) .mdl-cms-link--nonavigate-live {
    cursor: not-allowed;
    opacity: 0.72;
    pointer-events: none;
}

/* BO preview: show dimmed state but keep clicks for editors */
.main.mdl-page.mdl-page--bo-preview .mdl-cms-link--inactive-preview {
    opacity: 0.72;
    cursor: not-allowed;
}

.main.mdl-page.mdl-page--show-link-codes span[data-cms-kind="link"].mdl-btn .mdl-cms-badge--link {
    display: block;
    flex: 1 1 100%;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.main.mdl-page.mdl-page--show-link-codes a[data-cms-kind="link"].mdl-btn .mdl-cms-badge--link {
    display: block;
    flex: 1 1 100%;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.main.mdl-page.mdl-page--show-link-codes a[data-cms-kind="link"]:not(.mdl-btn) .mdl-cms-badge--link {
    display: inline-block;
    font-size: 0.65rem;
}

.main.mdl-page .mdl-cms-imagelink-label {
    display: none !important;
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 4;
    font: 600 0.95rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 0.25rem 0.45rem;
    background: rgba(45, 36, 38, 0.9) !important;
    color: #c8f5e0 !important;
    border-radius: 6px;
    line-height: 1.2;
    pointer-events: none;
    max-width: calc(100% - 20px);
    word-break: break-all;
}

.main.mdl-page .mdl-pair-thumb .mdl-cms-imagelink-label {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
}
