/*
 * Standard Purchase Verification — age gate overlay styles.
 *
 * All selectors are namespaced with `spv-` to avoid theme collisions.
 * The backdrop color/opacity is applied via inline style from PHP since
 * it comes from admin settings.
 */

#spv-age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.spv-age-gate__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.spv-age-gate__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    max-width: 480px;
    width: 90%;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.spv-age-gate__logo {
    display: block;
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.spv-age-gate__dialog h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.3;
    color: #111;
}

.spv-age-gate__dialog p {
    margin: 0 0 25px;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.spv-age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spv-age-gate__btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.spv-age-gate__btn--confirm {
    background: #111;
    color: #fff;
    border-color: #111;
}

.spv-age-gate__btn--confirm:hover,
.spv-age-gate__btn--confirm:focus {
    background: #333;
    border-color: #333;
}

.spv-age-gate__btn--deny {
    background: transparent;
    color: #666;
    border-color: #ccc;
}

.spv-age-gate__btn--deny:hover,
.spv-age-gate__btn--deny:focus {
    background: #f5f5f5;
    color: #333;
}

body.spv-age-gate-active {
    overflow: hidden;
}

#spv-age-gate.spv-age-gate--hiding {
    opacity: 0;
}

@media (min-width: 480px) {
    .spv-age-gate__actions {
        flex-direction: row;
        justify-content: center;
    }

    .spv-age-gate__btn {
        flex: 1;
    }
}
