/*============================================*/
/* 18+ age verification popup: inc/age-verification.php */

.peptix-age-lock,
.peptix-age-lock body {
    overflow: hidden;
}

.peptix-age {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 15.03px + 0.26vw, 20px);
    background: rgba(15, 23, 42, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: "Outfit", sans-serif;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.peptix-age[hidden] {
    display: none;
}

.peptix-age.is-open {
    opacity: 1;
}

.peptix-age-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 380fr) minmax(0, 326fr);
    gap: 22px;
    width: 100%;
    max-width: 1258px;
    max-height: calc(100vh - 40px);
    padding: 6px 22px 6px 6px;
    border-radius: 12px;
    overflow-y: auto;
    background: #FFFFFF;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.peptix-age.is-open .peptix-age-dialog {
    transform: none;
}

.peptix-age-dialog:focus {
    outline: none;
}

.peptix-age .peptix-age-dialog .peptix-age-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #EEF4FE;
    color: #3B82F6;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.peptix-age .peptix-age-dialog .peptix-age-close:hover,
.peptix-age .peptix-age-dialog .peptix-age-close:focus-visible {
    background: #3B82F6;
    color: #FFFFFF;
}

.peptix-age-media {
    border-radius: 8px;
    overflow: hidden;
    background: #0B1A3A;
}

.peptix-age .peptix-age-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 330px;
    object-fit: cover;
    border-radius: 0;
}

.peptix-age-content {
    display: flex;
    flex-direction: column;
    padding: 46px 0 20px;
    text-align: center;
}

.peptix-age .peptix-age-title {
    margin: 0 0 14px; 
    color: #0F172A;
}

.peptix-age-text p {
    margin: 0; 
    color: #757575;
}

.peptix-age-text .peptix-age-strong {
    color: #0F172A;
}

.peptix-age-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 7.51px + 0.13vw, 10px);
    margin: 22px 0;
}

.peptix-age .peptix-age-dialog .peptix-age-btn {
    font-weight: 500; 
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.peptix-age .peptix-age-dialog .peptix-age-btn--yes,
.peptix-age .peptix-age-dialog .peptix-age-btn--yes:focus {
    background: #3B82F6;
    color: #FFFFFF;
}

.peptix-age .peptix-age-dialog .peptix-age-btn--yes:hover {
    background: #2563EB;
    border-color: #2563EB;
}

.peptix-age .peptix-age-dialog .peptix-age-btn--no,
.peptix-age .peptix-age-dialog .peptix-age-btn--no:focus {
    background: #FFFFFF;
    color: #3B82F6;
    border: 1px solid;
}
.peptix-age .peptix-age-dialog .peptix-age-btn--no:hover {
    background: #EEF4FE;
}

.peptix-age .peptix-age-dialog .peptix-age-btn:focus-visible,
.peptix-age .peptix-age-dialog .peptix-age-close:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 2px;
}

.peptix-age-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
    font-size: 16px;
    color: #3B82F6;
}
@media (max-width: 1200px) {
    .peptix-age-dialog{
        max-width: 900px;
    }
    .peptix-age-buttons{
        grid-template-columns: 1fr;
    }
    .peptix-age-buttons .peptix-age-btn{
        font-size: 18px;
        padding: 16px;
    }
}
/* Mobile: image on top, buttons stacked */
@media (max-width: 600px) {

    .peptix-age-dialog {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 360px;
        padding: 44px 6px 6px;
    }

    .peptix-age .peptix-age-dialog .peptix-age-close { top: 8px; right: 8px; }

    .peptix-age .peptix-age-media img {
        min-height: 0;
        aspect-ratio: 760 / 660;
    }

    .peptix-age-content { padding: 26px 6px 14px; }
    .peptix-age .peptix-age-title { font-size: 36px; }
    .peptix-age-buttons { grid-template-columns: minmax(0, 1fr); }
    .peptix-age .peptix-age-dialog .peptix-age-btn { min-height: 40px; font-size: 16px; }
    .peptix-age-privacy { flex-direction: column; margin-top: 22px; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .peptix-age,
    .peptix-age-dialog {
        transition: none;
    }
}
