
/**
 * Cplus Language Onboarding Popup – Orange overlay layout
 * Các selector đều prefix bằng body #aixh-langpref-popup để ưu tiên cao, hạn chế bị theme đè.
 */

/* Gốc popup */
body #aixh-langpref-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Trạng thái mở */
body #aixh-langpref-popup.aixh-langpref--open {
    display: flex !important;
}

/* Lớp phủ cam */
body #aixh-langpref-popup .aixh-langpref__overlay {
    position: absolute;
    inset: 0;
    background: rgb(182 107 40 / 80%) !important;
}

/* Khối nội dung trung tâm */
body #aixh-langpref-popup .aixh-langpref__dialog {
    position: relative;
    z-index: 2147483647 !important;
    max-width: 720px;
    width: 100%;
    margin: 0 24px;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Tiêu đề */
body #aixh-langpref-popup .aixh-langpref__title {
    margin: 0 0 32px 0 !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* Vùng chứa các nút */
body #aixh-langpref-popup .aixh-langpref__buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    column-gap: 40px;
    row-gap: 24px;
    max-width: 540px;
    margin: 0 auto;
}

/* Nút chọn ngôn ngữ */
body #aixh-langpref-popup .aixh-langpref__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 32px !important;
    border-radius: 999px !important;
    border: 2px solid #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
}

/* Không cần phân biệt primary nữa – cùng style */
body #aixh-langpref-popup .aixh-langpref__btn.aixh-langpref__btn--primary {
    border-color: #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
}

body #aixh-langpref-popup .aixh-langpref__btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
}

/* Chữ trong nút */
body #aixh-langpref-popup .aixh-langpref__btn-label {
    white-space: nowrap;
}

/* Ẩn icon cờ nếu có */
body #aixh-langpref-popup .aixh-langpref__btn-flag {
    display: none !important;
}

/* Nút đóng (X) ở góc trên bên phải – tinh gọn */
body #aixh-langpref-popup .aixh-langpref__close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 24px !important;
    line-height: 1;
    cursor: pointer;
    padding: 4px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

body #aixh-langpref-popup .aixh-langpref__close:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Tablet: vẫn 2 cột, chỉ thu nhỏ font & gap chút */
@media (max-width: 900px) {
    body #aixh-langpref-popup .aixh-langpref__title {
        font-size: 26px !important;
        margin-bottom: 24px !important;
    }

    body #aixh-langpref-popup .aixh-langpref__buttons {
        column-gap: 24px;
        row-gap: 20px;
        max-width: 480px;
    }

    body #aixh-langpref-popup .aixh-langpref__btn {
        font-size: 16px !important;
        padding: 10px 24px !important;
    }
}

/* Mobile: 4 nút xếp dọc */
@media (max-width: 600px) {
    body #aixh-langpref-popup .aixh-langpref__buttons {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 16px;
        max-width: 260px;
    }

    body #aixh-langpref-popup .aixh-langpref__title {
        font-size: 22px !important;
    }
}
