/**
 * Age Verification Module – Styles
 * PrestaShop 1.7
 */

/* ── Overlay ─────────────────────────────────────── */
#age-verification-overlay {
    position: fixed;
    inset: 0;                        /* top/right/bottom/left = 0 */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 20, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Georgia', 'Times New Roman', serif;
    animation: av-fade-in 0.4s ease both;
}

@keyframes av-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Popup card ──────────────────────────────────── */
#age-verification-popup {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 48px 40px 36px;
    max-width: 480px;
    width: calc(100% - 32px);
    text-align: center;
    animation: av-slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    border-top: 5px solid #1a1a2e;
}

@keyframes av-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ────────────────────────────────────────── */
.av-logo-wrapper {
    margin-bottom: 20px;
}

.av-logo {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/* ── 18+ icon ────────────────────────────────────── */
.av-icon {
    color: #1a1a2e;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.av-icon svg {
    width: 64px;
    height: 64px;
}

/* ── Typography ──────────────────────────────────── */
.av-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.av-message {
    font-size: 1rem;
    color: #444;
    line-height: 1.65;
    margin: 0 0 30px;
}

/* ── Buttons ─────────────────────────────────────── */
.av-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.av-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
    text-transform: uppercase;
    min-width: 160px;
    justify-content: center;
}

.av-btn:focus {
    outline: 3px solid #4a9af5;
    outline-offset: 3px;
}

/* YES – primary */
.av-btn-yes {
    background: #1a1a2e;
    color: #ffffff;
    border-color: #1a1a2e;
}

.av-btn-yes:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

.av-btn-yes:active {
    transform: translateY(0);
}

/* NO – secondary */
.av-btn-no {
    background: transparent;
    color: #555;
    border-color: #bbb;
}

.av-btn-no:hover {
    background: #f5f5f5;
    border-color: #888;
    color: #222;
    transform: translateY(-1px);
}

.av-btn-no:active {
    transform: translateY(0);
}

.av-btn-icon {
    font-style: normal;
    font-size: 1rem;
    line-height: 1;
}

/* ── Legal note ──────────────────────────────────── */
.av-legal {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
    #age-verification-popup {
        padding: 36px 24px 28px;
    }

    .av-title {
        font-size: 1.35rem;
    }

    .av-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .av-btn {
        min-width: 100%;
    }
}
