/* Scoped to this offer so other Crysp dialogs keep their own presentation. */
#ejs-holiday-bonus { width: min(780px, calc(100vw - 40px)); color: #fff7e9; }
#ejs-holiday-bonus .crysp-modal__content { border-radius: 24px; max-height: 88dvh; background: #210512; }
.ejs-holiday { text-align: center; padding: 38px 36px 30px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #641535 0%, #210512 70%); }
.ejs-holiday__eyebrow, .ejs-holiday__dates, .ejs-holiday__card-label { font-family: var(--wp--preset--font-family--barlow); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.ejs-holiday .ejs-holiday__eyebrow { margin: 0 0 16px; font-size: 13px; color: #ffebaf; }
.ejs-holiday .ejs-holiday__title { margin: 0; font-family: var(--wp--preset--font-family--barlow); font-weight: 900; font-size: clamp(26px, 8.5vw, 88px); white-space: nowrap; line-height: .94; text-transform: uppercase; letter-spacing: -.04em; color: #fff7e9; }
.ejs-holiday__title span { display: inline; color: #ffa6c6; }
.ejs-holiday__cards { position: relative; width: min(620px, 100%); height: 240px; margin: 20px auto 12px; }
.ejs-holiday__card { box-sizing: border-box; position: absolute; width: 50%; height: 162px; border-radius: 14px; padding: 20px; text-align: left; box-shadow: 0 18px 30px #0005; border: 1px solid #ffffff30; }
.ejs-holiday__card--gift { z-index: 1; top: 22px; left: 3%; background: #00858b; transform: rotate(-10deg); }
.ejs-holiday__card--bonus { top: 65px; right: 2%; background: #d73b40; transform: rotate(9deg); }
.ejs-holiday__card-label { display: block; font-size: 10px; text-align: right; }
.ejs-holiday__brand { display: block; font-family: var(--wp--preset--font-family--barlow); font-weight: 900; font-size: 22px; letter-spacing: -.06em; }
.ejs-holiday__amount { display: block; text-align: right; font-family: var(--wp--preset--font-family--barlow); font-weight: 900; font-variant-numeric: lining-nums; letter-spacing: -.04em; font-size: 62px; line-height: 1; margin-top: 12px; }
.ejs-holiday__spark { position: absolute; color: #ffebaf; font-size: 32px; line-height: 1; top: 0; right: 9%; }
.ejs-holiday__spark--left { top: auto; bottom: 5px; left: 5%; right: auto; font-size: 23px; }
.ejs-holiday .ejs-holiday__copy { max-width: 490px; margin: 24px auto 20px; font-size: clamp(19px, 3vw, 23px); line-height: 1.4; }
.ejs-holiday .ejs-holiday__dates { margin: 0; padding-top: 20px; border-top: 2px dotted #ffa6c640; color: #ffebaf; font-size: clamp(16px, 2.5vw, 20px); line-height: 1.4; }
#ejs-holiday-bonus .crysp-modal__close { top: 0; right: 0; transform: translate(50%, -50%); background: #ffebaf; color: #210512; }
#ejs-holiday-bonus .crysp-modal__close:hover { transform: translate(50%, -50%) scale(1.08); }
.ejs-holiday-reopen { position: fixed; z-index: 20; bottom: 20px; right: 20px; border: 1px solid #ffebaf66; border-radius: 30px; padding: 12px 20px; background: #d73b40; color: #fff7e9; font: 900 15px var(--wp--preset--font-family--barlow); text-transform: none; cursor: pointer; box-shadow: 0 5px 20px #0003; }
.ejs-holiday-reopen:focus-visible { outline: 3px solid #00858b; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
 #ejs-holiday-bonus[open] .ejs-holiday__spark { animation: ejs-star-spin 8s linear infinite; transform-origin: center; }
 #ejs-holiday-bonus[open] .ejs-holiday__spark--left { animation-duration: 10s; animation-direction: reverse; }
 @keyframes ejs-star-spin { to { transform: rotate(360deg); } }
 #ejs-holiday-bonus[open] .ejs-holiday__card--gift { animation: ejs-gift-in 800ms cubic-bezier(.16,1,.3,1) both 150ms; }
 #ejs-holiday-bonus[open] .ejs-holiday__card--bonus { animation: ejs-bonus-in 850ms cubic-bezier(.16,1,.3,1) both 350ms; }
 @keyframes ejs-gift-in { from { opacity: 0; transform: translate(-160px, 45px) rotate(-24deg); } to { opacity: 1; transform: rotate(-10deg); } }
 @keyframes ejs-bonus-in { from { opacity: 0; transform: translate(160px, 45px) rotate(24deg); } to { opacity: 1; transform: rotate(9deg); } }
}
@media (max-width: 480px) {
 .ejs-holiday { padding: 48px 20px 26px; }
 .ejs-holiday__cards { height: 194px; margin-top: 22px; }
 .ejs-holiday__card { height: 127px; padding: 14px; width: 62%; }
 .ejs-holiday__card--bonus { top: 52px; }
 .ejs-holiday__brand { font-size: 18px; }
 .ejs-holiday__amount { font-size: 44px; margin-top: 8px; }
 .ejs-holiday__card-label { font-size: 8px; }
 .ejs-holiday-reopen { bottom: 12px; right: 12px; font-size: 13px; }
}

/* Dialog content is revealed on open, independently of page scroll reveals. */
html.ejs-reveal-enabled #ejs-holiday-bonus :is(h2, p) { opacity: 1; }

.ejs-holiday__logo { position: absolute; left: 18px; top: 36px; display: block; width: 64px; height: 64px; object-fit: contain; }
.ejs-holiday__card .ejs-holiday__amount { margin-top: 40px; }
@media (max-width: 480px) {
 .ejs-holiday__logo { left: 12px; top: 29px; width: 46px; height: 46px; }
 .ejs-holiday__card .ejs-holiday__amount { margin-top: 28px; }
}

/* A slight overlap keeps the cards connected; the gift amount stays in front. */
@media (max-width: 640px) {
 .ejs-holiday__cards { height: 300px; }
 .ejs-holiday__card { width: min(280px, 85%); }
 .ejs-holiday__card--bonus { top: 130px; }
}
@media (max-width: 480px) {
 .ejs-holiday__cards { height: 240px; }
 .ejs-holiday__card { width: min(240px, 85%); }
 .ejs-holiday__card--bonus { top: 100px; }
}

@media (max-width: 640px) {
 .ejs-holiday .ejs-holiday__title { font-size: clamp(44px, 13vw, 72px); white-space: normal; line-height: .95; }
 .ejs-holiday__title span { display: block; }
}

@media (max-width: 640px) {
 .ejs-holiday__dates > span { display: block; }
 .ejs-holiday__dates > .ejs-holiday__date-separator { display: none; }
}

@media (max-width: 640px) {
 .ejs-holiday__card--bonus .ejs-holiday__logo { top: 60px; }
}

@media (max-width: 640px) {
 .ejs-holiday .ejs-holiday__copy { font-size: 16px; line-height: 1.4; }
}

@media (prefers-reduced-motion: no-preference) {
 #ejs-holiday-bonus[open]:not(.is-closing) { animation: ejs-modal-in 500ms cubic-bezier(.16, 1, .3, 1) both; }
 #ejs-holiday-bonus[open] .ejs-holiday__eyebrow { animation: ejs-copy-in 550ms ease both 150ms; }
 #ejs-holiday-bonus[open] .ejs-holiday__title { animation: ejs-copy-in 650ms cubic-bezier(.16, 1, .3, 1) both 250ms; }
 #ejs-holiday-bonus[open] .ejs-holiday__copy { animation: ejs-copy-in 600ms ease both 550ms; }
 #ejs-holiday-bonus[open] .ejs-holiday__dates { animation: ejs-copy-in 600ms ease both 700ms; }
 @keyframes ejs-modal-in { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
 @keyframes ejs-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
