/* START_SECTION:scratch-card-popup (INDEX:78) */
ranvoo-scratch-card [hidden]{display:none!important}
ranvoo-scratch-card .scratch-entry-wrap{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:stretch;width:max-content;min-height:52px;max-width:calc(100vw - 36px);border:0;border-radius:10px;box-shadow:0 4px 16px #00000014;isolation:isolate}
ranvoo-scratch-card .scratch-entry-wrap[data-position="bottom-left"],ranvoo-scratch-card .scratch-entry-wrap[data-position="middle-left"]{left:max(18px,env(safe-area-inset-left));right:auto}
ranvoo-scratch-card .scratch-entry-wrap[data-position="middle-left"],ranvoo-scratch-card .scratch-entry-wrap[data-position="middle-right"]{top:50%;bottom:auto;transform:translateY(-50%)}
ranvoo-scratch-card .scratch-entry-wrap > button{appearance:none;background:var(--scratch-entry-background,#176b58)!important;color:var(--scratch-entry-color,#fff)!important;-webkit-text-fill-color:var(--scratch-entry-color,#fff)!important;background-image:none!important;opacity:1!important;box-shadow:none!important;border:0;position:static;transform:none;margin:0;cursor:pointer;min-height:44px;font-family:inherit}
ranvoo-scratch-card .scratch-entry-wrap > button::before,ranvoo-scratch-card .scratch-entry-wrap > button::after{content:none!important}
ranvoo-scratch-card .scratch-entry{flex:0 1 auto;display:flex;align-items:center;justify-content:flex-start;width:auto;max-width:100%;padding:14px 0 14px 16px;border-radius:10px 0 0 10px;font-size:18px;font-weight:700;line-height:24px;letter-spacing:normal;text-align:left;min-width:0;white-space:normal;overflow-wrap:anywhere}
ranvoo-scratch-card .scratch-entry-dismiss{display:grid;place-items:center;flex:0 0 44px;width:44px;padding:0;border-radius:0 10px 10px 0;font-size:22px;font-weight:400;line-height:1}
ranvoo-scratch-card .scratch-entry-dismiss span{color:inherit;opacity:.65;pointer-events:none}
.scratch-dialog{position:fixed;inset:0;margin:auto;width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:24px;padding:38px 26px 26px;background:#fffdf7;color:#172d27;text-align:center;box-shadow:0 24px 80px #0003}
.scratch-dialog::backdrop{background:#10241d99}
.scratch-dialog h2{font-size:clamp(24px,5vw,32px);line-height:1.15;margin:12px 0}
.scratch-dialog p{margin:12px 0;font-size:14px}
.scratch-close{position:absolute;right:10px;top:8px;width:44px;height:44px;border:0;background:transparent;font-size:28px;cursor:pointer}
.scratch-area{position:relative;margin:24px 0 18px;border-radius:16px;overflow:hidden;background:#e8f2eb;border:1px solid #cddbd0}
.scratch-prize{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.scratch-gift-card{min-width:0;padding:16px 10px;background:#fffdf7;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:12px}
.scratch-price{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:auto}
.scratch-price s{font-size:15px;color:#6c756e}
.scratch-gift-card .scratch-gift-rule{font-size:12px;margin:0;line-height:1.5}
.scratch-prize strong{font-size:26px;line-height:1.1;overflow-wrap:anywhere;color:var(--scratch-accent)}
.scratch-area canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
ranvoo-scratch-card .scratch-dialog .scratch-reveal{appearance:none;display:flex;align-items:center;justify-content:center;min-height:52px;border:0;border-radius:12px;background-image:none!important;opacity:1!important;box-shadow:none;padding:14px 20px;width:100%;cursor:pointer;font-family:inherit;font-size:16px;font-weight:700;line-height:1.4;text-align:center}
ranvoo-scratch-card .scratch-dialog .scratch-reveal::before,ranvoo-scratch-card .scratch-dialog .scratch-reveal::after{content:none!important}
ranvoo-scratch-card .scratch-dialog .scratch-reveal:hover{filter:brightness(.93)}
.scratch-product-image{display:block;width:116px;height:116px;object-fit:contain;margin:0 auto;flex-shrink:0}
.scratch-product-title{font-size:16px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.scratch-dialog button:focus-visible,.scratch-entry:focus-visible,.scratch-entry-dismiss:focus-visible{outline:3px solid #cb8523;outline-offset:3px}
.scratch-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.scratch-confetti{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;pointer-events:none;overflow:visible}
.scratch-confetti::backdrop{background:transparent;pointer-events:none}
@media(max-width:480px){.scratch-dialog{padding:36px 16px 20px}.scratch-prize{gap:8px;padding:8px}.scratch-gift-card{padding:12px 8px}.scratch-product-image{width:90px;height:90px}.scratch-product-title{font-size:14px}.scratch-price strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.scratch-confetti{display:none}}
.scratch-preview-note{padding:10px;border-radius:8px;background:#fff0cb;color:#624600}
/* END_SECTION:scratch-card-popup */
