@media screen {
    html:lang(lt) body {
        --bonideco-holiday-snow: url("../images/holiday-lt-2026/clear-edge-snow.svg");
        background-image: var(--bonideco-holiday-snow), var(--bonideco-holiday-snow);
        background-position: left 144px, right 224px;
        background-repeat: repeat-y;
        background-size: 19px auto;
    }

    /* The fallback checkout shell paints over the body. */
    html:lang(lt) body.checkout-index-index .column.main {
        background-image: var(--bonideco-holiday-snow), var(--bonideco-holiday-snow);
        background-position: left top, right 80px;
        background-repeat: repeat-y;
        background-size: 19px auto;
    }
}

@media screen and (min-width: 1680px) {
    html:lang(lt) body:not(.cms-index-index) main.page-main,
    html:lang(lt) body.cms-index-index .homepage > .space-y-5 {
        position: relative;
    }

    /* Each rail is one complete, non-repeating drawing with transparent padding. */
    html:lang(lt) body:not(.cms-index-index) main.page-main::before,
    html:lang(lt) body:not(.cms-index-index) main.page-main::after,
    html:lang(lt) body.cms-index-index .homepage > .space-y-5::before,
    html:lang(lt) body.cms-index-index .homepage > .space-y-5::after {
        content: "";
        display: block;
        position: absolute;
        inset-block: 34px 18px;
        inline-size: clamp(0px, calc((100% - 1536px) / 2 - 22px), 56px);
        z-index: 11;
        pointer-events: none;
        background: var(--bonideco-holiday-rail) center top / contain no-repeat;
    }

    html:lang(lt) body:not(.cms-index-index) main.page-main::before,
    html:lang(lt) body.cms-index-index .homepage > .space-y-5::before {
        --bonideco-holiday-rail: url("../images/holiday-lt-2026/clear-rail-left.svg");
        inset-inline-start: 10px;
    }

    html:lang(lt) body:not(.cms-index-index) main.page-main::after,
    html:lang(lt) body.cms-index-index .homepage > .space-y-5::after {
        --bonideco-holiday-rail: url("../images/holiday-lt-2026/clear-rail-right.svg");
        inset-inline-end: 10px;
    }

    /* The one-step checkout puts its own 81px header inside main. */
    html:lang(lt) body.bonideco-one-step-checkout main.page-main::before,
    html:lang(lt) body.bonideco-one-step-checkout main.page-main::after {
        inset-block-start: 112px;
    }

    /* The home ornaments begin alongside Discovery, below the full-bleed hero and curtain. */
    html:lang(lt) body.cms-index-index .homepage > .space-y-5::before,
    html:lang(lt) body.cms-index-index .homepage > .space-y-5::after {
        inset-block-start: 12px;
        inline-size: 46px;
    }

    html:lang(lt) body.cms-index-index .homepage > .space-y-5::before {
        inset-inline: auto calc(100% + 15px);
    }

    html:lang(lt) body.cms-index-index .homepage > .space-y-5::after {
        inset-inline: calc(100% + 15px) auto;
    }
}

@media screen and (min-width: 768px) {
    /* The curtain is opaque; add details in its existing gray space below the benefits. */
    html:lang(lt) body.cms-index-index .bonideco-home-curtain {
        background-image: url("../images/holiday-lt-2026/clear-home.svg");
        background-position: center bottom 2px;
        background-repeat: no-repeat;
        background-size: min(91%, 1050px) 16px;
    }
}

/* Discovery's lg spacing is 32px. Use only a few of those empty gaps. */
@media screen and (min-width: 1024px) {
    html:lang(lt) body.cms-index-index .homepage > .space-y-5 > section:nth-of-type(even) {
        position: relative;
    }

    html:lang(lt) body.cms-index-index .homepage > .space-y-5 > section:nth-of-type(even)::before {
        content: "";
        position: absolute;
        inset-inline: 8%;
        inset-block-end: calc(100% + 4px);
        block-size: 24px;
        pointer-events: none;
        background: url("../images/holiday-lt-2026/clear-discovery.svg") center / min(100%, 1050px) 24px no-repeat;
    }
}

/* A dedicated gray strip keeps the shared media drawing away from content edges. */
@media screen and (min-width: 768px) {
    html:lang(lt) body {
        --bonideco-holiday-toys: url("../images/holiday-lt-2026/clear-clusters.svg");
        --bonideco-holiday-checkout-toys: url("../images/holiday-lt-2026/clear-discovery.svg");
        --bonideco-holiday-strip-size: min(calc(100% - 48px), 940px) 25px;
    }

    html:lang(lt) body:not(
        .cms-index-index, .bonideco-one-step-checkout, .checkout-index-index,
        .customer-account-login, .customer-account-create, .customer-account-forgotpassword, .customer-account-createpassword
    ) main#maincontent.page-main {
        border-block-start: 30px solid transparent;
        background-image: var(--bonideco-holiday-toys);
        background-position: center top 3px;
        background-size: var(--bonideco-holiday-strip-size);
        background-repeat: no-repeat;
        background-origin: border-box;
        background-clip: border-box;
    }

    html:lang(lt) body.checkout-index-index main#maincontent.page-main {
        border-block-end: 30px solid transparent;
        background-image: var(--bonideco-holiday-checkout-toys);
        background-position: center bottom 3px;
        background-size: var(--bonideco-holiday-strip-size);
        background-repeat: no-repeat;
        background-origin: border-box;
        background-clip: border-box;
    }

    /* One-step checkout already has padding below the form. Keep it and the header unchanged. */
    html:lang(lt) body.bonideco-one-step-checkout .column.main > header + .bonideco-checkout-shell {
        background-image: var(--bonideco-holiday-checkout-toys);
        background-position: center bottom 4px;
        background-size: min(calc(100% - 48px), 940px) 18px;
        background-repeat: no-repeat;
    }
}

/* The auth page owns its patterned background. Decorate the columns without replacing it. */
@media screen {
    html:lang(lt) body:is(
        .customer-account-login, .customer-account-create, .customer-account-forgotpassword, .customer-account-createpassword
    ) main#maincontent > .columns {
        background-image: var(--bonideco-holiday-snow), var(--bonideco-holiday-snow);
        background-position: left 38px, right 107px;
        background-size: 19px auto;
        background-repeat: repeat-y;
    }
}

@media screen and (min-width: 768px) {
    html:lang(lt) body:is(
        .customer-account-login, .customer-account-create, .customer-account-forgotpassword, .customer-account-createpassword
    ) main#maincontent > .columns {
        background-image: var(--bonideco-holiday-toys), var(--bonideco-holiday-snow), var(--bonideco-holiday-snow);
        background-position: center top 4px, left 38px, right 107px;
        background-size: min(81%, 900px) 23px, 19px auto, 19px auto;
        background-repeat: no-repeat, repeat-y, repeat-y;
    }
}

@media screen and (min-width: 1024px) {
    html:lang(lt) body.cms-index-index .bonideco-home-curtain {
        background-size: min(91%, 1050px) 20px;
    }
}

@media screen and (min-width: 1024px) {
    html:lang(lt) body.bonideco-one-step-checkout .column.main > header + .bonideco-checkout-shell {
        background-size: min(calc(100% - 48px), 940px) 24px;
    }
}
