#aeo-popup {
    box-sizing: border-box;
    width: min(570px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0 12px 24px;
    overflow: auto;
    border: 0;
    border-top: 5px solid #97d700;
    border-radius: 18px;
    background: white;
    color: #252447;
    box-shadow: 0 24px 80px #1615296b;
}
#aeo-popup::backdrop { background: #201d3cb3; }
#aeo-popup .aeo-popup-toolbar { position: sticky; z-index: 1; top: 0; margin: 0; padding: 9px 0 10px clamp(4px, 2vw, 16px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; background: white; }
#aeo-popup .aeo-popup-toolbar form { margin: 0; }
#aeo-popup .aeo-popup-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: #f3edf7;
    color: #252447;
    cursor: pointer;
}
#aeo-popup .aeo-popup-close span { position: relative; width: 18px; height: 18px; }
#aeo-popup .aeo-popup-close span::before,
#aeo-popup .aeo-popup-close span::after { content: ""; position: absolute; inset: 8px 0; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
#aeo-popup .aeo-popup-close span::after { transform: rotate(-45deg); }
#aeo-popup .aeo-popup-close:hover { background: #e9e0f0; }
#aeo-popup .aeo-popup-image { display: block; width: 100%; height: auto; max-height: min(390px, 48dvh); margin: 0 auto 20px; border-radius: 12px; object-fit: cover; }
#aeo-popup .aeo-popup-content { padding-inline: clamp(4px, 2vw, 16px); overflow-wrap: anywhere; }
#aeo-popup h2 { margin: 0; font-size: clamp(1.1rem, 4.4vw, 1.6rem); line-height: 1.18; overflow-wrap: anywhere; }
#aeo-popup p { margin: 0 0 15px; }
#aeo-popup a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 9px; background: #36356a; color: white; font-weight: 700; text-decoration: none; }
#aeo-popup a:hover { text-decoration: underline; text-underline-offset: 3px; }
#aeo-popup .aeo-popup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#aeo-popup .aeo-popup-secondary { background: #eee9f5; color: #252447; }
#aeo-popup :focus-visible { outline: 2px solid #a34683; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
    #aeo-popup[open] { animation: aeo-popup-in .25s ease-out; }
    @keyframes aeo-popup-in { from { opacity: 0; transform: translateY(9px); } }
}
