#first-donation-offer :is(
    .first-offer-banner,
    .first-offer-card,
    .first-offer-card h3,
    .first-offer-benefits figcaption,
    .first-offer-target,
    .first-offer-notice,
    .first-offer-input input,
    .first-offer-choose,
) {
    box-shadow: 10px var(--offer-shadow-y, 10px) 7px 1px rgba(0, 0, 0, .25);
}
#first-donation-offer{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;--offer-header-height:70px;--offer-header-radius:12px;--offer-banner-height:52px;--offer-banner-font:20px;--offer-banner-gap:clamp(8px,2dvh,16px);--offer-card-width:320px;--offer-visible-cards:3;--offer-card-gap:32px;padding:0;border:0;border-radius:0;background:transparent;color:#171717;overflow:hidden;box-shadow:none;font-family:'DM Serif Display',serif;line-height:1.5}
#first-donation-offer[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
#first-donation-offer::backdrop{background:rgba(0,0,0,.7)}
#first-donation-offer *{box-sizing:border-box;font-family:inherit}
#first-donation-offer .first-offer-heading{position:sticky;inset:auto;top:0;z-index:2;display:block;width:100%;height:auto;min-height:0;margin:0;padding:0;text-align:center;background:#000;border-radius:var(--offer-header-radius);box-shadow:none}
#first-donation-offer .first-offer-heading h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--offer-header-height);
    margin: 0 !important;
    padding: 6px 60px;
    border-radius: var(--offer-header-radius);
    background: linear-gradient(90deg, #fff, #f0f0f0);
    color: #000;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
}
#first-donation-offer .first-offer-heading h2:focus { outline: none; }
#first-donation-offer .first-offer-close { display: none; }
#first-donation-offer .first-offer-heading h2 span{min-width:0}
#first-donation-offer .first-offer-coffee{flex:none;width:28px;height:36px;object-fit:contain}
/* The index banner sits partly behind its navbar: match its visible band,
   rather than adding that hidden portion again below the offer title. */
#first-donation-offer .first-offer-banner{position:relative;min-height:var(--offer-banner-height);overflow:hidden;background:#000;color:#fff;border-radius:0 0 var(--offer-header-radius) var(--offer-header-radius)}
/* Start halfway through the first pass so the banner opens with its copy visible. */
#first-donation-offer .first-offer-banner-text{position:absolute;inset-block:0;inset-inline-start:0;display:flex;align-items:center;width:max-content;margin:0;padding:0;font-size:var(--offer-banner-font);line-height:1.3;white-space:nowrap;will-change:transform;animation:ilanoor-offer-marquee 22s linear -11s infinite}
#first-donation-offer[dir=rtl] .first-offer-banner-text{inset-inline-start:auto;left:0;animation-direction:reverse}
@keyframes ilanoor-offer-marquee{from{transform:translateX(100vw)}to{transform:translateX(-100%)}}
#first-donation-offer .first-offer-body{position:relative;display:flex;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;padding:0 24px;background:transparent;isolation:isolate}
/* Share spare height across the gap above the benefits and the two gaps around the cards. */
#first-donation-offer .first-offer-body::before{content:"";flex:1 0 var(--offer-banner-gap)}
#first-donation-offer .first-offer-body::-webkit-scrollbar{display:none}
#first-donation-offer .first-offer-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;width:502px;max-width:100%;margin:0 auto;flex:none}
#first-donation-offer .first-offer-benefits figure{display:flex;flex-direction:column;align-items:center;margin:0;text-align:center;min-width:0}
#first-donation-offer .first-offer-benefits img{display:block;width:100%;aspect-ratio:3/2;height:auto;object-fit:cover;border-radius:10px;margin:0}
#first-donation-offer .first-offer-benefits figcaption{position:relative;display:flex;flex-direction:column;flex:1;align-items:center;justify-content:center;width:calc(100% - 18px);min-height:42px;background:#fff;color:#171717;border-radius:3px;padding:6px 8px;margin:-7px auto 0;font-size:12px;line-height:15px;font-weight:500}
#first-donation-offer .first-offer-benefits figcaption span{white-space:nowrap}
#first-donation-offer .first-offer-cards{display:flex;gap:var(--offer-card-gap);width:calc(var(--offer-visible-cards) * var(--offer-card-width) + (var(--offer-visible-cards) - 1) * var(--offer-card-gap) + 48px);max-width:100%;margin:0 auto;--offer-zoom-space:max(var(--offer-hover-clearance,32px),var(--offer-track-padding,10px));padding:var(--offer-zoom-space) 24px;flex:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:24px;scrollbar-width:none;overscroll-behavior-x:contain;align-items:stretch;transition:width .3s ease}
#first-donation-offer .first-offer-stage{display:flex;flex-direction:column;justify-content:center;position:relative;flex:2 0 auto;width:100%;min-height:0}
#first-donation-offer .first-offer-cards::-webkit-scrollbar{display:none}
#first-donation-offer .first-offer-card{position:relative;display:flex;flex-direction:column;flex:0 0 var(--offer-card-width);width:var(--offer-card-width);max-height:600px;margin:0;padding:0;background:var(--brown-color,#b87549);border-radius:10px;text-align:center;scroll-snap-align:start;transition:all .3s ease;transform-origin:center}
@media(width >= 1200px){
#first-donation-offer .first-offer-card:hover{transform:scale(1.12);margin-inline:calc(var(--offer-card-width) * .06);z-index:1}
#first-donation-offer .first-offer-cards:has(.first-offer-card:hover){width:calc(var(--offer-visible-cards) * var(--offer-card-width) + (var(--offer-visible-cards) - 1) * var(--offer-card-gap) + 48px + var(--offer-card-width) * .12)}
}
#first-donation-offer .first-offer-card h3{height:38px;margin:0!important;line-height:18px;font-weight:normal}
#first-donation-offer .first-offer-card-content{display:flex;flex-direction:column;align-items:center;flex:1;min-height:0;overflow-y:auto;padding:calc(var(--offer-card-padding-block,20px) + var(--offer-card-padding-extra,0px)) 20px;color:#fff}
#first-donation-offer .first-offer-card-content > *{flex-shrink:0}
#first-donation-offer .first-offer-icon{display:flex;align-items:center;justify-content:center;width:150px;height:150px;margin:-16px 0 0}
#first-donation-offer .first-offer-coins{display:block;object-fit:contain;max-width:100%;max-height:100%;width:auto;height:auto;margin:0}
#first-donation-offer .first-offer-target{position:absolute;inset-block-start:55px;inset-inline-end:calc(0px - var(--offer-target-overhang,28px));isolation:isolate;display:grid;align-content:center;width:85px;aspect-ratio:1;padding:10px;border-radius:50%;background:#000;color:#000;font-size:10px;line-height:1.16;text-align:center}
#first-donation-offer .first-offer-target::before,#first-donation-offer .first-offer-target::after{content:'';position:absolute;z-index:-1}
#first-donation-offer .first-offer-target::before{inset:6%;border-radius:16%;background:var(--red-color,#a30404)}
#first-donation-offer .first-offer-target::after{inset:5%;border-radius:50%;background:#fff}
#first-donation-offer .first-offer-notice{min-height:64px;display:flex;align-items:center;justify-content:center;width:100%;margin:0 0 20px;background:#d9d9d9;padding:15px;border-radius:5px;font-size:12px;line-height:1.4;color:#000}
#first-donation-offer .first-offer-amount{min-height:54px;white-space:nowrap}
#first-donation-offer .first-offer-amount .amount-value{margin-inline:0 5px}
#first-donation-offer .first-offer-amount-tag{color:var(--red-color,#a30404);font-size:10px;line-height:15px;margin:0 0 15px;opacity:.8}
#first-donation-offer .first-offer-input-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#first-donation-offer .first-offer-input{width:100%;max-width:100%;margin:10px 0 20px;position:relative;inset-block-start:6px}
#first-donation-offer .first-offer-card input{display:block;width:100%;height:39px;min-height:0;margin:0;padding-block:0!important;line-height:20px;text-align:center}
#first-donation-offer .first-offer-card input::placeholder{position:static;line-height:normal!important}
#first-donation-offer .first-offer-actions{display:flex;gap:18px;justify-content:center;align-items:flex-start;width:100%;max-width:100%;min-height:48px;margin:auto 0 0;padding:0}
#first-donation-offer .first-offer-actions button{display:inline-flex;align-items:center;justify-content:center;flex:1;min-width:0;height:42px;min-height:0;margin:0;padding:0 2px;border:0;border-radius:5px;font-size:12px;line-height:normal;text-align:center;font-weight:normal;cursor:pointer}
#first-donation-offer .first-offer-choose{background:#a3150e;color:#fff}
#first-donation-offer .first-offer-choose:disabled{cursor:not-allowed}
#first-donation-offer .first-offer-later{background:#ffc75d;color:black}
#first-donation-offer .first-offer-error{font:10px Arial;color:#72100b;margin:0}
#first-donation-offer .first-offer-error:not(:empty){margin-bottom:6px}
#first-donation-offer .first-offer-pagination{display:flex;justify-content:center;gap:14px;margin:0}
#first-donation-offer .first-offer-pagination:has(button:not([hidden])){height:22px;margin:0;align-items:center;position:absolute;inset-inline:0;bottom:10px;z-index:1}
#first-donation-offer .first-offer-pagination button[hidden]{display:none}
#first-donation-offer .first-offer-pagination button{width:6px;height:6px;min-height:0;border:0;border-radius:50%;padding:0;margin:0;background:#fff;cursor:pointer}
#first-donation-offer .first-offer-pagination button.active{transform:scale(1.2)}
#first-donation-offer button:focus-visible,#first-donation-offer input:focus-visible{outline:2px solid #004aad;outline-offset:2px}
@media(max-width:1199px){#first-donation-offer{--offer-visible-cards:2}}
@media(width < 768px){
#first-donation-offer{--offer-visible-cards:1;--offer-card-gap:72px;--offer-card-width:min(350px,calc((89vw - 40px) * .9))}
#first-donation-offer .first-offer-card input{height:44px}
}
@media(width < 1200px){
#first-donation-offer{--offer-banner-height:36px;--offer-banner-font:calc(24px * 18 / 22);--offer-benefit-inset:24px}
#first-donation-offer[open]{display:flex;flex-direction:column}
#first-donation-offer .first-offer-heading{flex:none}
#first-donation-offer .first-offer-card input::placeholder{position:relative;inset-block-start:-2px}
#first-donation-offer .first-offer-body{flex:1 1 auto;padding-inline:0}
#first-donation-offer .first-offer-body::before{flex:0 var(--offer-mobile-gap)}
#first-donation-offer .first-offer-benefits{max-width:calc(100% - 2 * var(--offer-benefit-inset))}
#first-donation-offer .first-offer-stage{flex:1 0 auto;justify-content:flex-start}
#first-donation-offer .first-offer-cards{
    flex:1 0 auto;
    width:100%;
    padding-block:var(--offer-mobile-gap);
}
#first-donation-offer .first-offer-pagination:has(button:not([hidden])){position:static;flex:none;margin-block-end:max(var(--offer-pagination-space),env(safe-area-inset-bottom))}
}
@media(width < 768px){
#first-donation-offer .first-offer-cards{
    gap:calc(100vw - var(--offer-card-width));
    padding-inline:calc((100vw - var(--offer-card-width)) / 2);
    scroll-padding-inline:0;
}
#first-donation-offer .first-offer-card{min-height:480px;max-height:none;scroll-snap-align:center}
}
@media(max-width:600px){
#first-donation-offer{--offer-benefit-inset:12px}
#first-donation-offer .first-offer-heading h2{padding-inline:44px}
#first-donation-offer .first-offer-pagination{gap:15px}
}
@media(max-width:480px){
#first-donation-offer .first-offer-benefits figcaption{font-size:clamp(9px,2.7vw,12px);padding-inline:4px}
#first-donation-offer .first-offer-benefits figcaption span{white-space:normal;overflow-wrap:anywhere}
}

html.first-offer-open,html.first-offer-open body{overflow:hidden}
html.first-offer-open #popup-app{visibility:hidden}
html.first-offer-open [data-popup-backdrop]{visibility:hidden}

@media(width < 768px){
}

/* Fit the content on shorter screens without resizing either header bar.
   Keep scrolling available for browser zoom and unusually short viewports. */
@media (width < 768px) and (max-height:900px){
#first-donation-offer .first-offer-body{padding-bottom:0}
#first-donation-offer .first-offer-benefits{margin-bottom:0}
#first-donation-offer .first-offer-cards{--offer-track-padding:28px}
#first-donation-offer .first-offer-card-content{--offer-card-padding-block:16px}
#first-donation-offer .first-offer-icon{height:clamp(64px,calc(100dvh - 750px),150px);margin-top:-12px}
#first-donation-offer .first-offer-target{width:73px;inset-inline-end:calc(0px - var(--offer-target-overhang,20px));font-size:9px}
#first-donation-offer .first-offer-notice{min-height:56px;padding:10px;margin-bottom:12px}
#first-donation-offer .first-offer-amount-tag{margin-bottom:8px}
#first-donation-offer .first-offer-input{margin:8px 0 12px}
}
@media (width < 768px) and (max-height:760px){
#first-donation-offer .first-offer-benefits{width:400px}
#first-donation-offer .first-offer-cards{--offer-track-padding:24px}
#first-donation-offer .first-offer-icon{height:calc(68px - var(--offer-banner-gap))}
#first-donation-offer .first-offer-input{margin-block:6px 8px}
}
@media (width < 768px) and (max-height:640px){
#first-donation-offer .first-offer-benefits{margin-bottom:0}
#first-donation-offer .first-offer-benefits img{height:48px;aspect-ratio:auto}
}
@media (width < 768px) and (max-height:760px){
#first-donation-offer .first-offer-card h3{height:30px;padding-block:6px}
#first-donation-offer .first-offer-card-content{--offer-card-padding-block:12px}
#first-donation-offer .first-offer-icon{height:32px;margin-top:-8px}
#first-donation-offer .first-offer-notice{min-height:42px;padding:6px;font-size:11px;margin-bottom:4px}
#first-donation-offer .first-offer-amount{min-height:42px}
#first-donation-offer .first-offer-amount .amount-value{font-size:28px}
#first-donation-offer .first-offer-amount-tag{font-size:9px;line-height:12px;margin-bottom:4px}
#first-donation-offer .first-offer-input{margin-block:4px 8px}
}
@media(768px <= width < 1200px){
#first-donation-offer .first-offer-cards{
    --offer-card-gap:32px;
    --offer-card-gutter:calc((var(--offer-panel-width) - 2 * var(--offer-card-width) - var(--offer-card-gap)) / 2);
    width:100%;
    padding-inline:var(--offer-card-gutter);
    overflow-x:hidden;
    touch-action:pan-y pinch-zoom;
}
#first-donation-offer .first-offer-cards[data-pair="0"] .first-offer-card:last-child,
#first-donation-offer .first-offer-cards[data-pair="1"] .first-offer-card:first-child {
    display:none;
}
}

@media (width < 768px) {
    #first-donation-offer {
        --offer-mobile-gap: clamp(7px, calc(5dvh - 22px), 26px);
        --offer-pagination-space: clamp(10px, calc(3dvh - 8px), 22px);
    }
    #first-donation-offer .first-offer-benefits img {
        height: auto;
        max-height: clamp(40px, calc(24dvh - 96px), 106px);
        aspect-ratio: 3 / 2;
    }
    #first-donation-offer .first-offer-card-content {
        --offer-card-padding-block: 20px;
    }
    #first-donation-offer .first-offer-notice { min-height: 64px; margin-bottom: 20px; }
    #first-donation-offer .first-offer-amount { min-height: 54px; }
    #first-donation-offer .first-offer-amount .amount-value { font-size: 36px; }
    #first-donation-offer .first-offer-amount-tag { margin-bottom: 15px; }
    #first-donation-offer .first-offer-input {
        margin-block: auto calc(var(--offer-card-padding-block,20px) + var(--offer-card-padding-extra,0px));
    }
    #first-donation-offer .first-offer-card-content:has(.first-offer-input) .first-offer-actions { margin-top: 0; }
    #first-donation-offer .first-offer-card-content:not(:has(.first-offer-input)) .first-offer-amount-tag {
        margin-bottom: calc(15px + 69px);
    }
    #first-donation-offer .first-offer-error:empty { display: none; }
    #first-donation-offer .first-offer-target {
        inset-inline-end: -20px;
        z-index: 1;
    }
    #first-donation-offer .first-offer-card h3 {
        display: grid;
        place-items: center;
        height: clamp(30px, calc(3dvh + 12px), 38px);
        padding-block: 0;
    }
    #first-donation-offer .first-offer-icon {
        flex: none;
        width: 112px;
        height: clamp(52px, calc(22dvh - 73px), 112px);
        margin-top: -8px;
    }
    #first-donation-offer .first-offer-coins {
        width: 100%;
        height: 100%;
        transform: scale(1.3);
    }
    #first-donation-offer .first-offer-card:last-child .first-offer-coins {
        transform: scale(1.05);
    }
    #first-donation-offer .first-offer-card { scroll-snap-stop: always; }
}

@media (width >= 768px) {
    #first-donation-offer {
        --offer-banner-height: 36px;
        --offer-banner-font: calc(24px * 2 / 3);
        --offer-mobile-gap: 20px;
        --offer-panel-width: min(1200px, calc(100vw - 48px));
        width: var(--offer-panel-width);
        height: fit-content;
        max-height: calc(100dvh - 48px);
        margin: auto;
        border-radius: var(--offer-header-radius);
        background: transparent;
        box-shadow: 0 12px 36px rgb(0 0 0 / 35%);
    }
    #first-donation-offer[open] { display: flex; flex-direction: column; }
    #first-donation-offer .first-offer-heading { flex: none; }
    #first-donation-offer .first-offer-body { flex: 0 1 auto; }
    #first-donation-offer .first-offer-body::before { flex: 0 0 var(--offer-mobile-gap); }
    #first-donation-offer .first-offer-stage { flex: none; }
    #first-donation-offer .first-offer-cards { padding-block-end: 24px; }
    #first-donation-offer .first-offer-pagination:has(button:not([hidden])) {
        position: static;
        height: 22px;
        margin-block-end: 12px;
    }
    #first-donation-offer .first-offer-card { height: 477px; }
    #first-donation-offer .first-offer-card h3 {
        display: grid;
        place-items: center;
        flex: none;
        padding-block: 0;
    }
    #first-donation-offer .first-offer-icon { width: 112px; height: 112px; margin-top: -8px; }
    #first-donation-offer .first-offer-close {
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: 12px;
        display: grid;
        place-items: center;
        width: 44px;
        height: var(--offer-header-height);
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    #first-donation-offer .first-offer-close::after {
        content: '';
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #f00;
    }
    #first-donation-offer .first-offer-close:focus-visible { outline-offset: -4px; }
}

@media (width >= 1200px) {
    #first-donation-offer .first-offer-cards { padding-block-start: 32px; }
}

/* Use the visible viewport, including when Safari's bars are expanded.
   Short screens retain body scrolling rather than clipping donation controls. */
@media (width < 768px) {
    #first-donation-offer { --offer-header-height: 52px; --offer-banner-height: 30px; --offer-banner-font: 14px; }
    #first-donation-offer .first-offer-heading h2 { font-size: 19px; padding-inline: 24px; }
    #first-donation-offer .first-offer-coffee { width: 22px; height: 28px; }
}
@media (width < 768px) and (max-height: 760px) {
    #first-donation-offer { --offer-mobile-gap: 10px; --offer-pagination-space: 10px; }
    #first-donation-offer .first-offer-card { min-height: 0; height: 390px; }
    #first-donation-offer .first-offer-card-content { --offer-card-padding-block: 12px; }
    #first-donation-offer .first-offer-icon { height: 64px; }
    #first-donation-offer .first-offer-notice { min-height: 48px; margin-bottom: 8px; }
    #first-donation-offer .first-offer-amount { min-height: 42px; }
    #first-donation-offer .first-offer-amount .amount-value { font-size: 28px; }
    #first-donation-offer .first-offer-amount-tag { margin-bottom: 8px; }
    #first-donation-offer .first-offer-card-content:not(:has(.first-offer-input)) .first-offer-amount-tag { margin-bottom: 64px; }
}

#first-donation-offer[open] .first-offer-heading{animation:ilanoor-offer-fade .25s ease-out both}
#first-donation-offer[open] .first-offer-body{animation:ilanoor-offer-enter .4s cubic-bezier(.22,.61,.36,1) both}
#first-donation-offer::backdrop{animation:ilanoor-offer-fade .25s ease-out both}
@keyframes ilanoor-offer-fade{from{opacity:0}to{opacity:1}}
@keyframes ilanoor-offer-enter{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
#popup-app .ilanoor-payment-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px}
#popup-app .ilanoor-payment-submit:disabled{cursor:wait}
#popup-app .ilanoor-payment-spinner{display:inline-block;flex:none;width:22px;height:22px;color:inherit;animation:ilanoor-payment-spin .8s linear infinite}
@keyframes ilanoor-payment-spin{to{rotate:360deg}}
@media(prefers-reduced-motion:reduce){
#first-donation-offer[open] .first-offer-heading,#first-donation-offer[open] .first-offer-body,#first-donation-offer::backdrop,#popup-app .ilanoor-payment-spinner{animation:none}
#first-donation-offer .first-offer-card,#first-donation-offer .first-offer-cards{transition:none}
#first-donation-offer .first-offer-banner-text{position:static;justify-content:center;width:auto;min-height:var(--offer-banner-height);padding:4px 10px;white-space:normal;animation:none;transform:none}
}
