.zoway-ig-popup {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.zoway-ig-popup[aria-hidden="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.zoway-ig-popup[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.zoway-ig-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}

.theme-night .zoway-ig-popup__backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.zoway-ig-popup__panel {
    position: relative;
    max-width: 22rem;
    width: 100%;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 14px;
    background: #fff;
    color: #111;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-night .zoway-ig-popup__panel {
    background: #18181b;
    color: #f4f4f5;
    border-color: rgba(255, 255, 255, 0.08);
}

.zoway-ig-popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: #71717a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoway-ig-popup__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

.theme-night .zoway-ig-popup__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
}

.zoway-ig-popup__title {
    font-family: 'Archivo Black', 'Inter', sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 1.75rem 0.65rem 0;
    line-height: 1.25;
    color: #111;
}

.theme-night .zoway-ig-popup__title {
    color: #fafafa;
}

.zoway-ig-popup__text {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3f3f46;
}

.theme-night .zoway-ig-popup__text {
    color: #a1a1aa;
}

.zoway-ig-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.zoway-ig-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.zoway-ig-popup__cta:hover {
    filter: brightness(1.06);
}

.zoway-ig-popup__cta:active {
    transform: scale(0.99);
}

.zoway-ig-popup__dismiss {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #71717a;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.theme-night .zoway-ig-popup__dismiss {
    color: #a1a1aa;
}

@media (prefers-reduced-motion: reduce) {
    .zoway-ig-popup {
        transition: none;
    }
}
