/*
 * Cll Age Check - age-verification overlay styles
 *
 * @author    Luca Cavallini <prestashop@cavallini.net>
 * @copyright 2026 Luca Cavallini
 * @license   Proprietary - Commercial license. All rights reserved.
 */

.cll-age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* The overlay backdrop color is set inline from the BO; this is a fallback. */
.cll-age-overlay {
    background-color: rgba(11, 31, 51, 0.96);
}

.cll-age-box {
    background: #ffffff;
    color: #1a1a1a;
    max-width: 460px;
    width: 100%;
    border-radius: 10px;
    padding: 28px 26px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    text-align: center;
    outline: none;
    max-height: 92vh;
    overflow: auto;
}

.cll-age-logo {
    max-width: 140px;
    max-height: 90px;
    margin: 0 auto 14px;
    display: block;
}

.cll-age-title {
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.25;
}

.cll-age-desc {
    font-size: 1rem;
    margin: 0 0 18px;
    line-height: 1.5;
}

.cll-age-form {
    margin: 0 0 6px;
}

.cll-age-label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 6px;
}

.cll-age-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #b9c2cc;
    border-radius: 6px;
    margin-bottom: 14px;
}

.cll-age-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cll-age-btn {
    cursor: pointer;
    border: 0;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 110px;
    line-height: 1.2;
}

.cll-age-btn-yes {
    background-color: #1f7a3d;
    color: #ffffff;
}

.cll-age-btn-no {
    background-color: #e8ecf0;
    color: #1a1a1a;
}

.cll-age-btn:focus-visible,
.cll-age-input:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* Keep a visible focus ring even on browsers without :focus-visible. */
.cll-age-btn:focus,
.cll-age-input:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

.cll-age-error,
.cll-age-refused {
    color: #b00020;
    font-weight: 600;
    margin: 8px 0 4px;
}

.cll-age-disclaimer {
    font-size: 0.78rem;
    color: #6b7680;
    margin: 16px 0 0;
    line-height: 1.4;
}

/* Background blur (optional). Applied to the page wrapper by JS. */
.cll-age-blurred {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* Prevent scrolling of the page behind the overlay. */
.cll-age-locked {
    overflow: hidden !important;
}
