.cc-popup-root[hidden] { display: none; }
.cc-popup-root { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; color: #101820; }
.cc-popup-overlay { position: absolute; inset: 0; background: rgba(15,23,42,var(--cc-popup-overlay-opacity,.65)); }
.cc-popup-root.has-blur .cc-popup-overlay { backdrop-filter: blur(4px); }
.cc-popup-dialog { position: relative; z-index: 1; width: min(var(--cc-popup-width,860px), calc(100vw - 32px)); max-height: min(90vh, 900px); display: grid; grid-template-columns: 38% 62%; overflow: hidden; border-radius: var(--cc-popup-radius,18px); background: #fff; box-shadow: 0 28px 80px rgba(16,24,32,.36); animation: ccPopupIn .18s ease-out; }
.cc-popup-close { position: absolute; top: 12px; right: 12px; z-index: 4; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #f1f5f9; color: #101820; font-size: 28px; line-height: 1; cursor: pointer; }
.cc-popup-panel { display: flex; flex-direction: column; gap: 14px; min-height: 620px; padding: 34px 34px 26px; background: linear-gradient(155deg, #f1fff8, #e8fbf2); overflow: hidden; }
.cc-popup-brand .site-name, .cc-popup-mobile-brand .site-name { color: #101820; font-weight: 900; font-size: 22px; }
.cc-popup-panel h2 { margin: 16px 0 0; color: #064e3b; font-size: 31px; line-height: 1.05; text-align: center; }
.cc-popup-panel p { margin: 0; color: #172033; text-align: center; font-weight: 700; }
.cc-popup-gift { position: relative; width: 150px; height: 140px; margin: 22px auto 6px; border-radius: 18px 18px 8px 8px; background: linear-gradient(135deg, #27d17f, #009f58); box-shadow: inset 34px 0 rgba(255,255,255,.18); transform: perspective(400px) rotateX(4deg); }
.cc-popup-gift::before { content: ""; position: absolute; left: 50%; top: -34px; width: 88px; height: 52px; border: 14px solid #24c676; border-radius: 999px 999px 0 999px; transform: translateX(-50%) rotate(-28deg); }
.cc-popup-gift span { position: absolute; inset: 28px; display: grid; place-items: center; border-radius: 12px; background: #0db66a; color: #fff; font-size: 56px; font-weight: 900; }
.cc-popup-illustration { width: 190px; max-height: 190px; object-fit: contain; margin: 12px auto; }
.cc-popup-benefits { display: grid; gap: 12px; margin-top: auto; }
.cc-popup-benefits div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.cc-popup-benefits span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #d9f8e9; color: var(--cc-popup-primary,#00a859); font-weight: 900; }
.cc-popup-benefits strong, .cc-popup-benefits small { display: block; }
.cc-popup-benefits small { color: #344054; }
.cc-popup-note { display: block; margin-top: 20px; color: #101820; font-size: 23px; line-height: 1.05; text-align: center; transform: rotate(-8deg); }
.cc-popup-content { max-height: min(90vh, 900px); overflow-y: auto; padding: 36px 36px 28px; }
.cc-popup-head { display: none; text-align: center; padding: 4px 44px 14px; }
.cc-popup-head h2 { margin: 8px 0 3px; color: #064e3b; font-size: 24px; }
.cc-popup-head p { margin: 0; color: #344054; }
.cc-popup-loading, .cc-popup-error, .cc-popup-expired { min-height: 280px; display: grid; place-items: center; gap: 12px; text-align: center; color: #344054; }
.cc-popup-loading::before { content: ""; width: 42px; height: 42px; border: 4px solid #d9f8e9; border-top-color: var(--cc-popup-primary,#00a859); border-radius: 999px; animation: ccPopupSpin .8s linear infinite; }
.cc-popup-offer-row { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-bottom: 24px; padding-right: 38px; }
.cc-popup-store-logo { min-height: 92px; display: grid; place-items: center; border: 1px solid #e6eaf0; border-radius: 12px; background: #fff; }
.cc-popup-store-logo img, .cc-popup-store-logo .cc-logo-fallback { width: 76px; height: 50px; object-fit: contain; border: 0; background: transparent; }
.cc-popup-store-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cc-popup-store-line strong { font-size: 20px; }
.cc-popup-store-line span:not(:empty) { display: inline-flex; min-height: 27px; align-items: center; padding: 0 10px; border-radius: 7px; background: #f97316; color: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; }
.cc-popup-offer-copy h3 { margin: 0 0 4px; color: var(--cc-popup-primary,#00a859); font-size: 25px; }
.cc-popup-offer-copy p { margin: 0; color: #172033; font-weight: 700; }
.cc-popup-description { margin-top: 8px !important; color: #667085 !important; font-weight: 500 !important; }
.cc-popup-code-row { display: grid; grid-template-columns: 1fr 132px; min-height: 60px; border: 1px dashed #41c998; border-radius: 8px; background: #fbfffd; overflow: hidden; }
.cc-popup-code-row code { display: grid; place-items: center; color: #0b1220; font-size: 24px; font-weight: 900; letter-spacing: 0; }
.cc-popup-code-row button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; margin: 6px; border: 0; border-radius: 7px; background: var(--cc-popup-primary,#00a859); color: #fff; font-size: 16px; font-weight: 900; cursor: pointer; }
.cc-popup-confirm { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; margin-top: 16px; padding: 15px 18px; border-radius: 10px; background: #eaf8f1; animation: ccPopupConfirm .18s ease-out; }
.cc-popup-confirm::before { content: "✓"; grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: var(--cc-popup-primary,#00a859); color: #fff; font-weight: 900; }
.cc-popup-confirm strong, .cc-popup-confirm small { display: block; }
.cc-popup-visit { width: 100%; min-height: 58px; margin-top: 18px; font-size: 17px; }
.cc-popup-disclosure { margin: 10px 0 20px; color: #667085; text-align: center; font-size: 12px; }
.cc-popup-accordions { border-top: 1px solid #e6eaf0; }
.cc-popup-accordions details { border-bottom: 1px solid #e6eaf0; }
.cc-popup-accordions summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 900; list-style: none; }
.cc-popup-accordions summary::-webkit-details-marker { display: none; }
.cc-popup-accordions summary::after { content: "⌄"; font-size: 18px; }
.cc-popup-accordions details[open] summary::after { transform: rotate(180deg); }
.cc-popup-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 0 22px; }
.cc-popup-step { display: grid; justify-items: center; gap: 6px; text-align: center; }
.cc-popup-step span { width: 58px; height: 50px; display: grid; place-items: center; border-radius: 10px; background: #f3fbf7; color: var(--cc-popup-primary,#00a859); font-size: 25px; }
.cc-popup-step strong { font-size: 13px; }
.cc-popup-step small { color: #667085; font-size: 12px; }
.cc-popup-terms-copy { padding: 0 0 20px; color: #344054; }
.cc-popup-terms-copy ul { margin: 0; padding-left: 18px; }
.cc-popup-error-actions { display: flex; gap: 10px; justify-content: center; }
.cc-popup-root.has-confetti .cc-popup-content::before { content: ""; position: absolute; inset: 10px 58px auto auto; width: 90px; height: 48px; pointer-events: none; background: radial-gradient(circle at 10% 40%, #22c55e 0 3px, transparent 4px), radial-gradient(circle at 40% 10%, #facc15 0 3px, transparent 4px), radial-gradient(circle at 70% 55%, #38bdf8 0 3px, transparent 4px), radial-gradient(circle at 94% 28%, #22c55e 0 3px, transparent 4px); }
body.cc-popup-lock { overflow: hidden; }
@keyframes ccPopupIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes ccPopupSpin { to { transform: rotate(360deg); } }
@keyframes ccPopupConfirm { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1023px) {
	.cc-popup-dialog { width: min(660px, calc(100vw - 32px)); grid-template-columns: 1fr; }
	.cc-popup-panel { display: none; }
	.cc-popup-head { display: block; }
	.cc-popup-content { padding: 28px; }
	.cc-popup-offer-row { padding-right: 22px; }
	.cc-popup-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.cc-popup-root { align-items: end; padding: 10px; }
	.cc-popup-dialog { width: min(420px, calc(100vw - 20px)); max-height: 90dvh; border-radius: 18px 18px 14px 14px; animation: ccPopupMobileIn .18s ease-out; }
	.cc-popup-content { max-height: 90dvh; padding: calc(18px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); }
	.cc-popup-close { top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 38px; height: 38px; }
	.cc-popup-head { padding: 0 42px 12px; }
	.cc-popup-head h2 { font-size: 21px; }
	.cc-popup-head p { font-size: 13px; }
	.cc-popup-offer-row { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; border: 1px solid #e6eaf0; border-radius: 12px; }
	.cc-popup-store-logo { min-height: 70px; }
	.cc-popup-store-logo img, .cc-popup-store-logo .cc-logo-fallback { width: 58px; height: 38px; }
	.cc-popup-store-line { gap: 8px; }
	.cc-popup-store-line strong { font-size: 13px; }
	.cc-popup-store-line span:not(:empty) { min-height: 22px; padding: 0 7px; font-size: 10px; }
	.cc-popup-offer-copy h3 { font-size: 18px; }
	.cc-popup-offer-copy p { font-size: 12px; }
	.cc-popup-description { display: none; }
	.cc-popup-code-row { grid-template-columns: 1fr 48px; min-height: 54px; }
	.cc-popup-code-row code { font-size: 19px; }
	.cc-popup-code-row button span { display: none; }
	.cc-popup-confirm { grid-template-columns: 34px 1fr; padding: 12px; }
	.cc-popup-confirm::before { width: 34px; height: 34px; }
	.cc-popup-visit { min-height: 54px; }
	.cc-popup-root.has-sticky-visit .cc-popup-visit { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 2; box-shadow: 0 8px 22px rgba(0,168,89,.24); }
	.cc-popup-steps { grid-template-columns: 1fr; text-align: left; }
	.cc-popup-step { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; }
	.cc-popup-step span { grid-row: 1 / 3; width: 38px; height: 38px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.cc-popup-dialog, .cc-popup-confirm, .cc-popup-loading::before { animation: none; }
}
@keyframes ccPopupMobileIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
