.instant-offer-screen {
    --offer-mint: #91ffbd;
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    min-height: 100dvh;
    overflow: auto;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    isolation: isolate;
    background: radial-gradient(circle at 50% 34%, #1d5742 0, #102c25 36%, #071712 80%);
    color: #effff3;
    font-size: .7rem;
}
.instant-offer-screen[hidden] { display: none; }
.instant-offer-screen, .instant-offer-screen * { box-sizing: border-box; }
.instant-offer-screen::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .28;
    background-image: linear-gradient(#a6ffcb16 1px, transparent 1px), linear-gradient(90deg, #a6ffcb16 1px, transparent 1px);
    background-size: 2.3rem 2.3rem;
    mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
    pointer-events: none;
}
.instant-offer-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.instant-offer-ambient span { position: absolute; display: block; width: 21rem; height: 21rem; border-radius: 50%; background: #4aff9133; filter: blur(4rem); animation: instantOfferAura 8s ease-in-out infinite alternate; }
.instant-offer-ambient span:nth-child(1) { top: -9rem; left: -8rem; }
.instant-offer-ambient span:nth-child(2) { right: -9rem; bottom: -11rem; background: #d3ae4a26; animation-delay: -3s; }
.instant-offer-ambient span:nth-child(3) { top: 43%; right: 24%; width: 9rem; height: 9rem; background: #80ffc929; animation-delay: -5s; }
.instant-offer-card {
    position: relative;
    width: 100%;
    max-width: 35rem;
    min-width: 0;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid #afffd065;
    border-radius: 1.25rem;
    background: radial-gradient(circle at 50% 29%, #2c79512e, transparent 45%), linear-gradient(145deg, #102b23ed, #092019f5);
    box-shadow: 0 1.4rem 4rem #0008, inset 0 1px #eafff43a;
    animation: instantOfferEnter .42s cubic-bezier(.2,.85,.25,1) both;
}
.instant-offer-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 3rem #8cffb015; pointer-events: none; }
.instant-offer-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; position: relative; z-index: 1; }
.instant-offer-live, .instant-offer-priority { display: inline-flex; align-items: center; gap: .4rem; color: #d4ffe4; font-size: .53rem; font-weight: 900; letter-spacing: .11em; }
.instant-offer-live { padding: .36rem .52rem; border: 1px solid #9effc45c; border-radius: 100rem; background: #90ffb717; }
.instant-offer-live i { display: block; width: .42rem; height: .42rem; border-radius: 50%; background: #97ffb8; box-shadow: 0 0 .6rem #91ffc1; animation: instantOfferBeacon 1.1s ease-in-out infinite; }
.instant-offer-priority { color: #d8c691; }
.instant-offer-center { position: relative; display: grid; justify-items: center; text-align: center; }
.instant-offer-visual { position: relative; width: min(19rem, 65vw); aspect-ratio: 1; margin: .5rem auto 0; }
.instant-offer-grid { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #a2ffd71a 0 1px, transparent 2px); background-size: .8rem .8rem; mask-image: radial-gradient(circle, #000 20%, transparent 73%); }
.instant-offer-ring { position: absolute; border: 1px solid #9cffc95c; border-radius: 50%; box-shadow: 0 0 1.1rem #76ffae20, inset 0 0 1.1rem #76ffae20; animation: instantOfferRipple 2.9s ease-in-out infinite; }
.instant-offer-ring.ring-one { inset: 30%; }
.instant-offer-ring.ring-two { inset: 15%; animation-delay: .9s; }
.instant-offer-ring.ring-three { inset: 0; animation-delay: 1.8s; }
.instant-offer-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 74%, #a1ffc40b 80%, #a1ffc44f 100%); animation: instantOfferSweep 3s linear infinite; }
.instant-offer-orbit-dot { position: absolute; width: .45rem; height: .45rem; border-radius: 50%; background: #d2ffe1; box-shadow: 0 0 .75rem #9dffb9; animation: instantOfferBeacon 1.8s ease-in-out infinite; }
.instant-offer-orbit-dot.dot-one { top: 15%; left: 22%; }
.instant-offer-orbit-dot.dot-two { right: 8%; bottom: 30%; animation-delay: .7s; }
.instant-offer-clock { position: absolute; inset: 32%; display: grid; place-items: center; padding: .3rem; border-radius: 50%; background: conic-gradient(#94ffc2 var(--offer-angle, 360deg), #315b45 0); box-shadow: 0 0 2rem #69efa067, 0 0 4rem #69efa02c; transition: background .2s linear; }
.instant-offer-clock::before { content: ''; position: absolute; inset: .27rem; border-radius: 50%; background: radial-gradient(circle at 32% 24%, #276947, #0a2f20 70%); box-shadow: inset 0 1px #d3ffe957; }
.instant-offer-timer { position: relative; z-index: 1; max-width: 3.6rem; color: #f2fff4; font-size: .8rem; font-weight: 900; line-height: 1.3; text-align: center; text-shadow: 0 0 .8rem #8effb779; }
.instant-offer-copy { position: relative; z-index: 1; margin-top: -.35rem; }
.instant-offer-kicker { color: #a3ffc5; font-size: .55rem; font-weight: 900; letter-spacing: .2em; }
.instant-offer-copy h2 { margin: .42rem 0 .55rem; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: -.02em; }
.instant-offer-role { display: inline-flex; align-items: center; justify-content: center; min-height: 1.55rem; padding: .3rem .65rem; border: 1px solid #ffe2a47a; border-radius: 100rem; background: #eec87c1a; color: #f7dfae; font-size: .65rem; font-weight: 900; }
.instant-offer-context { display: grid; gap: .4rem; width: min(100%, 24rem); margin: .55rem auto .25rem; padding: .55rem .65rem; border: 1px solid #a3ffd03e; border-radius: .7rem; background: #ceffe911; }
.instant-offer-facility-line { display: flex; align-items: center; justify-content: center; gap: .4rem; color: #f5fff7; line-height: 1.35; }
.instant-offer-facility-line > i { flex: 0 0 auto; color: #9bffc1; font-size: .7rem; }
.instant-offer-facility { overflow-wrap: anywhere; color: #f5fff7; font-size: .7rem; font-weight: 900; }
.instant-offer-context-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; }
.instant-offer-context-meta > span { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .4rem; border: 1px solid #b4ffca2d; border-radius: 100rem; background: #e3ffee0d; color: #d7f4e2; font-size: .55rem; font-weight: 800; }
.instant-offer-context-meta i { color: #e5c786; font-size: .55rem; }
.instant-offer-context-meta time { color: inherit; font-size: .55rem; }
.instant-offer-hint { max-width: 23rem; margin: .25rem auto 0; color: #bcd8c6; font-size: .63rem; line-height: 1.55; }
.instant-offer-actions { position: relative; z-index: 1; display: grid; gap: .6rem; margin: 1.2rem auto 0; max-width: 21rem; }
.instant-offer-actions button { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.7rem; margin: 0; padding: .65rem 1rem; overflow: hidden; border-radius: .65rem; font-size: .7rem; font-weight: 900; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.instant-offer-actions button:hover:not(:disabled) { transform: translateY(-2px); }
.instant-offer-actions button:focus-visible { outline: .15rem solid #e8ffbf; outline-offset: .15rem; }
.instant-offer-accept { justify-content: space-between !important; border: 1px solid #bfffce !important; background: linear-gradient(110deg, #a5ffc3, #4edc91) !important; box-shadow: 0 .55rem 1.3rem #4cf19956, inset 0 1px #fff9; color: #063b26 !important; }
.instant-offer-accept::before { content: ''; position: absolute; top: -50%; bottom: -50%; left: -40%; width: 25%; transform: rotate(24deg) translateX(-18rem); background: linear-gradient(90deg, transparent, #fff9, transparent); animation: instantOfferShine 3.7s ease-in-out infinite; pointer-events: none; }
.instant-offer-dismiss { border: 1px solid #b5ffcb46 !important; background: #b4ffca11 !important; color: #d0e9d8 !important; }
.instant-offer-actions button:disabled { cursor: default; opacity: .6; }
.instant-offer-message { min-height: 1rem; margin: .65rem 0 0; color: #ffdfa5; font-size: .65rem; font-weight: 800; text-align: center; }
.instant-offer-foot { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid #b5ffca2b; color: #afcdb9; font-size: .55rem; text-align: center; }
.instant-offer-foot i { color: #e5c786; }
.instant-offer-screen.is-success .instant-offer-card { border-color: #a5ffbf; box-shadow: 0 0 3rem #54e98b57, 0 1.4rem 4rem #0008; }
.instant-offer-screen.is-success .instant-offer-clock { background: #8affb6; animation: instantOfferSuccess .55s ease-out both; }
.instant-offer-screen.is-success .instant-offer-sweep { animation-duration: .7s; }

/* The body has global flex and button rules; scope the full-screen offer above them. */
body > .instant-offer-screen {
    --offer-safe-top: max(env(safe-area-inset-top, 0px), var(--maui-safe-area-top, 0px));
    --offer-safe-right: env(safe-area-inset-right, 0px);
    --offer-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--maui-safe-area-bottom, 0px));
    --offer-safe-left: env(safe-area-inset-left, 0px);
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483640 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: safe center !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
    padding: calc(1rem + var(--offer-safe-top)) calc(1rem + var(--offer-safe-right))
        calc(1rem + var(--offer-safe-bottom)) calc(1rem + var(--offer-safe-left)) !important;
    color: #effff3 !important;
    font-size: .7rem !important;
    background: radial-gradient(circle at 50% 34%, #1d5742 0, #102c25 36%, #071712 80%) !important;
}
body > .instant-offer-screen[hidden] { display: none !important; }
body > .instant-offer-screen .instant-offer-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 35rem !important;
    min-width: 0 !important;
    padding: 1.15rem !important;
    border: 1px solid #afffd065 !important;
    border-radius: 1.25rem !important;
    background: radial-gradient(circle at 50% 29%, #2c79512e, transparent 45%), linear-gradient(145deg, #102b23ed, #092019f5) !important;
    color: #effff3 !important;
}
body > .instant-offer-screen .instant-offer-visual { width: min(19rem, 65vw) !important; }
body > .instant-offer-screen .instant-offer-copy h2 { color: #fff !important; font-size: .8rem !important; }
body > .instant-offer-screen .instant-offer-timer { color: #f2fff4 !important; font-size: .8rem !important; }
body > .instant-offer-screen .instant-offer-live,
body > .instant-offer-screen .instant-offer-priority { font-size: .53rem !important; }
body > .instant-offer-screen .instant-offer-role { color: #f7dfae !important; font-size: .65rem !important; }
body > .instant-offer-screen .instant-offer-context { display: grid !important; border: 1px solid #a3ffd03e !important; background: #ceffe911 !important; }
body > .instant-offer-screen .instant-offer-facility { color: #f5fff7 !important; font-size: .7rem !important; }
body > .instant-offer-screen .instant-offer-context-meta > span,
body > .instant-offer-screen .instant-offer-context-meta time { color: #d7f4e2 !important; font-size: .55rem !important; }
body > .instant-offer-screen .instant-offer-hint { color: #bcd8c6 !important; font-size: .63rem !important; }
body > .instant-offer-screen .instant-offer-actions button {
    display: flex !important;
    min-height: 2.7rem !important;
    font-size: .7rem !important;
    border-radius: .65rem !important;
}
body > .instant-offer-screen .instant-offer-actions .instant-offer-accept {
    color: #063b26 !important;
    border: 1px solid #bfffce !important;
    background: linear-gradient(110deg, #a5ffc3, #4edc91) !important;
}
body > .instant-offer-screen .instant-offer-actions .instant-offer-dismiss {
    color: #d0e9d8 !important;
    border: 1px solid #b5ffcb46 !important;
    background: #b4ffca11 !important;
}
body > .instant-offer-screen .instant-offer-message { color: #ffdfa5 !important; font-size: .65rem !important; }
body > .instant-offer-screen .instant-offer-foot { color: #afcdb9 !important; font-size: .55rem !important; }
body > .instant-offer-screen.is-success .instant-offer-card { border-color: #a5ffbf !important; }
body > .instant-offer-screen.is-verifying .instant-offer-context-meta { display: none !important; }
body.maui-full-screen-app:has(> .instant-offer-screen:not([hidden]))::before,
body.maui-full-screen-app:has(> .instant-offer-screen:not([hidden]))::after { background: transparent !important; }
body:has(> .instant-offer-screen:not([hidden])) #pullRefreshIndicator { display: none !important; }

@keyframes instantOfferEnter { from { opacity: .72; transform: translateY(.35rem) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes instantOfferAura { to { transform: translate(3rem, -2rem) scale(1.2); opacity: .65; } }
@keyframes instantOfferBeacon { 50% { filter: brightness(1.3); box-shadow: 0 0 1.25rem #9cffc8; } }
@keyframes instantOfferRipple { 0% { opacity: .3; transform: scale(.91); } 48% { opacity: .9; } 100% { opacity: .25; transform: scale(1.07); } }
@keyframes instantOfferSweep { to { transform: rotate(360deg); } }
@keyframes instantOfferShine { 0%, 60%, 100% { transform: rotate(24deg) translateX(-18rem); } 78% { transform: rotate(24deg) translateX(38rem); } }
@keyframes instantOfferSuccess { 50% { transform: scale(1.1); } }

@media (max-width: 420px) {
    .instant-offer-card { padding: .9rem; }
    .instant-offer-visual { width: min(16rem, 70vw); }
    .instant-offer-actions { margin-top: 1rem; }
    body > .instant-offer-screen .instant-offer-card { padding: .9rem !important; }
    body > .instant-offer-screen .instant-offer-visual { width: min(16rem, 70vw) !important; }
}
@media (max-height: 800px) {
    body > .instant-offer-screen .instant-offer-card { padding: .8rem !important; }
    body > .instant-offer-screen .instant-offer-visual { width: min(12rem, 38dvh, 60vw) !important; }
    body > .instant-offer-screen .instant-offer-context { gap: .3rem !important; margin: .35rem auto .15rem !important; padding: .4rem .5rem !important; }
    body > .instant-offer-screen .instant-offer-hint { display: none !important; }
    body > .instant-offer-screen .instant-offer-actions { margin-top: .6rem !important; }
}
@media (max-height: 680px) {
    body > .instant-offer-screen .instant-offer-card { padding: .65rem !important; }
    body > .instant-offer-screen .instant-offer-visual { width: min(9.5rem, 33dvh, 56vw) !important; }
    body > .instant-offer-screen .instant-offer-context { gap: .25rem !important; margin: .3rem auto .1rem !important; padding: .35rem .45rem !important; }
    body > .instant-offer-screen .instant-offer-hint { display: none !important; }
    body > .instant-offer-screen .instant-offer-actions { margin-top: .5rem !important; }
}
@media (max-height: 540px) {
    body > .instant-offer-screen {
        justify-content: flex-start !important;
        padding-top: calc(.4rem + var(--offer-safe-top)) !important;
        padding-bottom: calc(.4rem + var(--offer-safe-bottom)) !important;
    }
    body > .instant-offer-screen .instant-offer-card { padding: .5rem !important; }
    body > .instant-offer-screen .instant-offer-visual { width: min(7rem, 25dvh, 35vw) !important; margin-top: 0 !important; }
    body > .instant-offer-screen .instant-offer-copy h2 { margin: .2rem 0 !important; }
    body > .instant-offer-screen .instant-offer-context { gap: .15rem !important; margin: .2rem auto 0 !important; padding: .25rem .35rem !important; }
    body > .instant-offer-screen .instant-offer-hint,
    body > .instant-offer-screen .instant-offer-foot { display: none !important; }
    body > .instant-offer-screen .instant-offer-actions { margin-top: .4rem !important; gap: .35rem !important; }
    body > .instant-offer-screen .instant-offer-actions button { min-height: 2.5rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    .instant-offer-screen *, .instant-offer-screen *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
