/**
 * @author    Mediacom87
 * @copyright Mediacom87
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 *
 * Front-office styles: age gate overlay + product badge.
 */

.medav-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.medav-gate__card {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.medav-gate__title {
    margin: 0 0 12px;
    font-size: 1.6em;
    font-weight: 700;
}

.medav-gate__message {
    margin: 0 0 20px;
    font-size: 1.05em;
    line-height: 1.5;
    white-space: pre-line;
}

.medav-gate__field {
    margin-bottom: 18px;
    text-align: left;
}

.medav-gate__field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.medav-gate__field select {
    padding: 8px 10px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.medav-gate__dob-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.medav-gate__dob-selects select {
    flex: 1 1 30%;
    min-width: 90px;
}

.medav-gate__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.medav-gate__btn {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 1em;
    font-weight: 600;
    transition: opacity 0.15s ease;
}

.medav-gate__btn:hover {
    opacity: 0.85;
}

.medav-gate__btn--yes {
    background: #2e7d32;
    color: #fff;
}

.medav-gate__btn--no {
    background: #c62828;
    color: #fff;
}

.medav-gate__error {
    margin-top: 16px;
    color: #c62828;
    font-weight: 600;
}

.medav-gate--busy {
    opacity: 0.6;
    pointer-events: none;
}

body.medav-locked {
    overflow: hidden !important;
}

/* Product badge */
.medav-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 6px 12px;
    border: 2px solid #c62828;
    border-radius: 6px;
    color: #c62828;
    font-weight: 700;
    background: rgba(198, 40, 40, 0.06);
}

.medav-badge__age {
    font-size: 1.2em;
    line-height: 1;
}

.medav-badge__label {
    font-size: 0.9em;
    font-weight: 600;
}
