.first-visit[hidden] {
    display: none !important;
}

.first-visit {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 22, 30, .70);
    overflow-y: auto;
}

.first-visit__panel {
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    color: #242424;
    box-shadow: 0 20px 65px rgba(0, 0, 0, .22);
}

.first-visit__brand {
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.first-visit h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
}

.first-visit__intro {
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.5;
}

.first-visit__label {
    margin: 20px 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.first-visit__languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.first-visit__languages a {
    flex: 1;
    padding: 11px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    color: inherit;
}

.first-visit__languages a.active {
    border-color: #252525;
    background: #252525;
    color: #fff;
}

.first-visit__navigation {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.9;
}

.first-visit__cookies {
    margin: 22px 0;
    padding: 14px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.first-visit__cookies a {
    color: inherit;
    text-decoration: underline;
}

.first-visit__button {
    display: block;
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #252525;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.first-visit__button:hover {
    background: #444;
}

@media (max-width: 600px) {
    .first-visit {
        padding: 12px;
    }

    .first-visit__panel {
        padding: 22px;
        max-height: calc(100dvh - 24px);
    }

    .first-visit h2 {
        font-size: 23px;
    }
}


/* YouTube consent */
.first-visit__youtube {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
}

.first-visit__youtube input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #252525;
}

.first-visit__youtube span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.first-visit__youtube strong {
    font-size: 14px;
}

.first-visit__youtube small {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}
