/**
 * Age Verification
 * ----------------------------------------------------------------------------
 */

// Variables.
$age-verification-width: 620px;
$age-verification-padding: $spacing--xxlarge $spacing--large $spacing;

.age-verification {
    z-index: z-index(overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba($color-black, 0.7);
    backdrop-filter: blur(8px);
}

.age-verification__inner {
    position: relative;
    width: 100%;
    background-color: $color-white;
    max-width: $age-verification-width;
    padding: $age-verification-padding;
    text-align: center;
}

.age-verification__logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 185px;
    @include breakpoint(small only) {
        width: $spacing--xxlarge;
        transform: translate(0, 0);
        left: calc(50% - #{$spacing--xxlarge / 2});
    }
}

.age-verification__title {
    font-weight: 700;
}

.age-verification__subtitle {
    display: block;
    font-weight: 500;
    margin-bottom: $spacing;
}

.age-verification__error {
    display: block;
    margin-bottom: $spacing;
    color: $color-error;
    font-weight: 500;
}

.age-verification__input {
    display: inline-block;
    width: 100px;
}

.age-verification__label {
    display: block;
    margin-bottom: $spacing--large;
}

.age-verification__footer {
    font-size: rem-calc(14);
}
