/* Base styles */
.ccs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ccs-modal-overlay.ccs-show {
    opacity: 1;
    visibility: visible;
}

.ccs-modal-container {
    background-color: #fce4ec;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
    max-width: 600px;
    width: 90%;
}

.ccs-modal-content {
    background: #ffe6f0;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #cc3385;
    position: relative;
    text-align: center;
    font-family: 'Amiri', serif;
}

.ccs-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #cc3385;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.ccs-modal-heading {
    color: #cc3385;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.ccs-modal-text {
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Language section */
.ccs-language-section {
    margin: 25px auto;
    max-width: 400px;
}

.ccs-language-text {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Obsolete but kept for safety */
.ccs-language-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ccs-language-button {
    padding: 12px 25px;
    background-color: #ff66b2 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Amiri', serif !important;
    min-width: 120px !important;
}

.ccs-language-button:hover {
    background-color: #cc3385 !important;
    transform: translateY(-2px);
}

/* Currency section */
.ccs-currency-section {
    margin: 25px 0;
}

.ccs-currency-text {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Select2 custom styles */
.nad-select2-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.nad-select2-selection {
    background-color: white;
    border: 1px solid #ff66b2;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nad-select2-selection__rendered {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nad-select2-selection__arrow {
    color: #cc3385;
    font-size: 16px;
}

.nad-select2-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ff66b2;
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(255, 105, 178, 0.4);
    z-index: 10001;
    display: none;
}

.nad-select2-container--open .nad-select2-dropdown {
    display: block;
}

.nad-select2-results {
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nad-select2-option {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.nad-select2-option:hover {
    background-color: #fce4ec;
}

.ccs-country-option, .ccs-selected-country {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccs-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
}

/* Enter button */
.ccs-enter-button {
    width: 100% !important;
    padding: 15px !important;
    background: linear-gradient(45deg, #ff66b2, #cc3385) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    font-family: 'Amiri', serif !important;
    font-weight: bold !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
}

.ccs-enter-button:hover {
    background: linear-gradient(45deg, #cc3385, #ff66b2) !important;
    transform: translateY(-2px);
}

/* Floating button */
.ccs-floating-button {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    padding: 15px 25px !important;
    background-color: #cc3385 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-family: 'Amiri', serif !important;
    box-shadow: 0 4px 10px rgba(204, 51, 133, 0.4) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
}

.ccs-floating-button:hover {
    background-color: #ff66b2 !important;
    transform: translateY(-3px);
}

/* Shortcode button */
.ccs-shortcode-button {
    background-color: #ff66b2 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    font-family: 'Amiri', serif !important;
    transition: all 0.3s ease !important;
}

.ccs-shortcode-button:hover {
    background-color: #cc3385 !important;
    transform: translateY(-2px);
}

/* Initially hide the Arabic text for the shortcode button */
.ccs-shortcode-button .ccs-button-text-ar {
    display: none;
}

/* --- STYLES FOR DUAL-LANGUAGE HEADERS (FROM PREVIOUS STEP) --- */
.ccs-dual-language-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #cc3385;
    padding-bottom: 15px;
}

.ccs-heading-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ccs-heading-table td {
    width: 50%;
    padding: 0 10px;
    vertical-align: middle;
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: #cc3385;
    font-size: 22px;
    white-space: nowrap;
}

.ccs-heading-en {
    text-align: left;
}

.ccs-heading-ar {
    text-align: right;
}

.ccs-subheading-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 15px;
}

.ccs-subheading-table td {
    width: 50%;
    padding: 0 5px;
    vertical-align: middle;
    font-family: 'Amiri', serif;
    font-weight: normal;
    color: #333;
    font-size: 18px;
}

.ccs-subheading-en {
    text-align: left;
}

.ccs-subheading-ar {
    text-align: right;
}

.ccs-language-buttons-table {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.ccs-language-buttons-table td {
    padding: 0 8px;
}

.ccs-language-buttons-table .ccs-language-button {
    width: 100%;
    min-width: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ccs-modal-container {
        padding: 10px;
    }
    
    .ccs-modal-content {
        padding: 15px;
    }

    .ccs-heading-table,
    .ccs-heading-table tr,
    .ccs-heading-table td {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .ccs-heading-table td {
        padding: 2px 0;
        font-size: 20px;
    }

    .ccs-heading-en {
        margin-bottom: 5px;
    }
    
    .ccs-modal-heading {
        font-size: 20px;
    }
}