.popup { max-width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); width: 560px; margin: auto; padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); transition: color var(--animation-duration) ease, background-color var(--animation-duration) ease, border-color var(--animation-duration) ease; }
.popup::backdrop { background: #0c2118a8; backdrop-filter: blur(4px); }
.popup[open]::backdrop { animation: popup-backdrop-in 240ms ease-out both; }
.popup[data-closing='true']::backdrop { animation: popup-backdrop-out 180ms ease-in both; }
@keyframes popup-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup[open]::backdrop { animation: none; } }
.popup .panel { padding: 26px; }
.popup .panel .heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.popup .panel .heading h2 { margin: 0; font-size: 1.5rem; font-weight: 550; letter-spacing: -.035em; }
.popup .panel .body { color: var(--muted); overflow-wrap: anywhere; }
.popup .panel .body p { margin-bottom: 15px; }
.popup .panel .body .product-visual { display: block; width: 100%; height: 230px; padding: 15px; margin-bottom: 20px; border-radius: 10px; background: #ebeee5; object-fit: contain; }
.popup .panel .body .product-price { margin: 8px 0 15px; color: var(--text); font-size: 1.4rem; font-weight: 600; }
.popup .panel .body .preview-label { color: var(--accent); font-size: .875rem; font-weight: 600; }
.popup .panel .body .theme-options { display: flex; flex-wrap: wrap; gap: 10px; }
.popup .panel .body .theme-options button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.popup .panel .actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 500px) { .popup .panel { padding: 20px; } .popup .panel .actions .button { flex: 1; } }
