/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description: Custom Child Theme for Beacon Maritime Training (BMT)
 Author:       Beacon Maritime Training
 Author URI:   https://beaconmaritimetraining.com
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy
*/

/* ==========================================================================
   BEACON MARITIME TRAINING - MASTER FLEET DASHBOARD STYLESHEET (DARK THEME)
   File: custom.css (v3.0 - Master Consolidated Release)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE TITLE (White Color Specifically on Enroll Students Page)
   -------------------------------------------------------------------------- */
.page-id-1227 .page-title,
.page-id-1227 .hero-section .page-title,
.page-id-1227 h1.page-title,
article.post-1227 .page-title,
.entry-header:has(+ .entry-content #wdm_eb_enroll_user_page) .page-title {
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. MAIN CONTAINER RESETS (Completely Transparent, No Outer Borders/Shadows)
   -------------------------------------------------------------------------- */
#wdm_eb_enroll_user_page {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #f1f5f9 !important;
    font-family: inherit !important;
    margin-bottom: 40px !important;
}

/* Force Forms & Inner Wrappers to be 100% Transparent */
#wdm_eb_enroll_user,
form#wdm_eb_enroll_user,
#wdm_group_details,
.eb-enroll-student-tab-content,
.eb_enroll_students_tab_cont_section,
#eb_enroll_students,
#wdm_enroll_div,
#enroll-new-user-btn-div {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   3. TOP GROUP SELECTOR & ACTIONS (Balanced Desktop Header)
   -------------------------------------------------------------------------- */
#wdm-course-button {
    background: #0b1e36 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 18px 24px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#wdm-course-button > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#wdm-course-button .wdm_eb_lable {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 4px 0 0 !important;
    white-space: nowrap !important;
}

#edb_course_product_name {
    background: #07192f !important;
    color: #ffffff !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    width: auto !important;
    min-width: 260px !important;
    max-width: 480px !important;
    height: 44px !important;
    line-height: normal !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    flex: none !important;
}

#edb_course_product_name:focus {
    border-color: #0071c1 !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 193, 0.25) !important;
}

#edb_course_product_name option,
.ebbp_enroll_stu_action option,
select option {
    background-color: #07192f !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
}

/* Action Buttons Pushed Cleanly to the Right on Desktop */
.course-select {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

.course-select li {
    display: inline-block !important;
    margin: 0 !important;
}

.enroll-student-page-button {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    height: 42px !important;
}

.enroll-student-page-button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border-color: #0071c1 !important;
}

/* Delete Group Button (Red Accent) */
#bp-delete-cohort,
button#bp-delete-cohort {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

#bp-delete-cohort:hover,
button#bp-delete-cohort:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* --------------------------------------------------------------------------
   4. INJECTED KPI METRIC CARDS
   -------------------------------------------------------------------------- */
.bmt-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 28px !important;
    width: 100% !important;
}

.bmt-kpi-card {
    background: #0b1e36 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.bmt-kpi-card:hover {
    border-color: rgba(0, 113, 193, 0.4) !important;
    transform: translateY(-2px) !important;
}

.bmt-kpi-value {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
}

.bmt-kpi-value.blue { color: #38bdf8 !important; }
.bmt-kpi-value.orange { color: #e67e22 !important; }
.bmt-kpi-value.green { color: #10b981 !important; }

.bmt-kpi-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   5. TAB STRIP NAVIGATION & ACTION BUTTONS
   -------------------------------------------------------------------------- */
.eb-enroll-student-tab-container {
    display: flex !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 24px !important;
    gap: 8px !important;
    width: 100% !important;
}

.eb-enroll-student-tab {
    background: transparent !important;
    color: #94a3b8 !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.eb-enroll-student-tab:hover {
    color: #ffffff !important;
    background: transparent !important;
}

.eb-enroll-student-tab-active {
    color: #e67e22 !important;
    border-bottom: 2px solid #e67e22 !important;
    background: transparent !important;
}

#wdm_avaliable_reg {
    display: none !important;
}

#enroll-new-user-btn-div {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

#enroll-new-user {
    background: #e67e22 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 11px 22px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3) !important;
    transition: all 0.2s ease !important;
    height: 44px !important;
}

#enroll-new-user:hover {
    background: #d35400 !important;
    transform: translateY(-1px) !important;
}

#enroll-multiple-users {
    background: #0f2744 !important;
    color: #38bdf8 !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    padding: 11px 22px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    height: 44px !important;
}

#enroll-multiple-users:hover {
    background: #14355c !important;
    border-color: #38bdf8 !important;
}

/* --------------------------------------------------------------------------
   6. ENROLLED MARINERS TABLE (BORDERLESS WITH SMOOTH OVERFLOW SCROLL)
   -------------------------------------------------------------------------- */
.dataTables_wrapper {
    background: #0b1e36 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ebbp_enroll_stu_action_wrap > div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ebbp_enroll_stu_action {
    background: #07192f !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    height: 38px !important;
}

#ebbp_enroll_student_action {
    background: #1e3a5f !important;
    color: #cbd5e1 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    height: 38px !important;
}

.dataTables_filter label {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.dataTables_filter input {
    background: #07192f !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    margin-left: 8px !important;
    outline: none !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

table#enroll-user-table,
table#enroll-user-table th,
table#enroll-user-table td,
table#enroll-user-table tr {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

table#enroll-user-table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-top: 16px !important;
    border: none !important;
}

table#enroll-user-table thead th {
    background: #07192f !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

table#enroll-user-table tbody tr {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.15s ease !important;
}

table#enroll-user-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

table#enroll-user-table tbody td {
    padding: 16px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.ebbp_course_progress {
    background: rgba(0, 113, 193, 0.2) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.ebbp_course_progress:hover {
    background: #0071c1 !important;
    color: #ffffff !important;
}

.edit-enrolled-user {
    color: #38bdf8 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    margin-right: 12px !important;
    transition: transform 0.2s ease !important;
}

.bp-delete-enrolled-user {
    color: #ef4444 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    transition: transform 0.2s ease !important;
}

.edit-enrolled-user:hover,
.bp-delete-enrolled-user:hover {
    transform: scale(1.2) !important;
}

.dataTables_info {
    color: #64748b !important;
    font-size: 13px !important;
    margin-top: 16px !important;
}

.paginate_button {
    background: #07192f !important;
    color: #94a3b8 !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    margin: 0 4px !important;
    font-size: 13px !important;
}

.paginate_button.current {
    background: #e67e22 !important;
    color: #ffffff !important;
    border-color: #e67e22 !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   7. GROUP DETAILS TAB (TAB 2)
   -------------------------------------------------------------------------- */
#eb_group_info,
.eb_tab_subsection {
    background: #0b1e36 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 24px !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
}

.eb_edit_cohort_name_section {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.eb_edit_cohort_name_sub_section {
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#eb_inpt_edit_cohort_name {
    background: #07192f !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    min-width: 260px !important;
    max-width: 100% !important;
    height: 44px !important;
    outline: none !important;
}

#eb_inpt_edit_cohort_name_btn {
    background: #e67e22 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    height: 44px !important;
}

#eb_inpt_edit_cohort_name_btn:hover {
    background: #d35400 !important;
}

#wdm_associated_courses_container {
    background: #0b1e36 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 24px !important;
    margin-top: 20px !important;
}

.wdm_enroll_subheading {
    color: #38bdf8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 10px !important;
}

#wdm-asso-course-accordian {
    background: transparent !important;
    border: none !important;
}

#wdm-asso-course-accordian ol li {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.wdm_enrol-studnets_products {
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   8. POPUP MODALS & DIALOGS
   -------------------------------------------------------------------------- */
.ui-widget-overlay {
    background: rgba(4, 15, 29, 0.82) !important;
    backdrop-filter: blur(6px) !important;
    opacity: 1 !important;
    z-index: 99998 !important;
}

.ui-dialog,
.ui-dialog.ebbp_custom_field_dialog,
.ui-dialog.wdm-enroll-stud-page-dialog {
    background: #0b1e36 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 99999 !important;
    font-family: inherit !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
}

.ui-dialog .ui-dialog-titlebar,
.ui-dialog.ebbp_custom_field_dialog .ui-dialog-titlebar {
    background: #07192f !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.ui-dialog .ui-dialog-title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.ui-dialog .ui-dialog-titlebar-close {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 18px !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    color: #ef4444 !important;
}

.ui-dialog .ui-dialog-content {
    padding: 20px !important;
    background: #0b1e36 !important;
    color: #ffffff !important;
    border: none !important;
}

.enroll_user-row,
.ui-dialog .form-group,
.ui-dialog p {
    margin-bottom: 14px !important;
}

.enroll_user-row label,
.ui-dialog label {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.wdm-enrol-form-input,
.ui-dialog input[type="text"],
.ui-dialog input[type="email"],
.ui-dialog input[type="password"],
.ui-dialog select {
    background: #07192f !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    height: 42px !important;
    outline: none !important;
}

.wdm-enrol-form-input:focus,
.ui-dialog input:focus {
    border-color: #0071c1 !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 193, 0.25) !important;
}

.ui-dialog .ui-dialog-buttonpane {
    background: #07192f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 20px !important;
    margin: 0 !important;
}

.ui-dialog .ui-dialog-buttonset {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.ui-dialog .ui-button:not(.wdm-dialog-cancel-button):not(.ui-dialog-titlebar-close),
.ui-dialog button[type="submit"] {
    background: #e67e22 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.ui-dialog .ui-button:not(.wdm-dialog-cancel-button):not(.ui-dialog-titlebar-close):hover {
    background: #d35400 !important;
}

.wdm-dialog-cancel-button,
.ui-dialog .ui-dialog-buttonset button:last-child {
    background: #0f2744 !important;
    color: #cbd5e1 !important;
    border: 1px solid #1e3a5f !important;
    border-radius: 6px !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#ebbp_custom_field_dialog_wrap,
.ebbp_custom_field_tbl,
.ebbp_custom_field_tbl th,
.ebbp_custom_field_tbl td,
.ebbp_custom_field_tbl tr {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.ebbp_custom_field_tbl {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
}

.ebbp_custom_field_tbl th {
    background: #07192f !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ebbp_custom_field_tbl td {
    padding: 16px 14px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.ebbp_custom_field_tbl progress {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 120px !important;
    height: 8px !important;
    border-radius: 20px !important;
    background: #1e3a5f !important;
    border: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
}

.ebbp_custom_field_tbl progress::-webkit-progress-value {
    background: linear-gradient(90deg, #e67e22, #f39c12) !important;
    border-radius: 20px !important;
}

.ebbp_custom_field_tbl progress::-moz-progress-bar {
    background: linear-gradient(90deg, #e67e22, #f39c12) !important;
    border-radius: 20px !important;
}

/* --------------------------------------------------------------------------
   10. STRICT MOBILE BREAKPOINTS (Screens < 768px & < 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    #wdm-course-button {
        padding: 16px !important;
    }

    #wdm-course-button > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    #edb_course_product_name {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    .course-select {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .course-select li {
        width: 100% !important;
    }

    .enroll-student-page-button {
        width: 100% !important;
        padding: 9px 4px !important;
        font-size: 11.5px !important;
        text-align: center !important;
        white-space: normal !important;
        height: auto !important;
        min-height: 40px !important;
    }

    .bmt-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .bmt-kpi-card {
        padding: 16px !important;
    }

    .bmt-kpi-value {
        font-size: 26px !important;
    }

    #enroll-new-user-btn-div {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #enroll-new-user,
    #enroll-multiple-users {
        width: 100% !important;
        text-align: center !important;
    }

    .dataTables_wrapper {
        padding: 16px !important;
    }

    .eb-enroll-student-tab {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .course-select {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .bmt-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --------------------------------------------------------------------------
   9. CHECKOUT PAGE - BRAND DESIGN SYSTEM & THEME PALETTE INTEGRATION
   (Strictly isolated single-card layout matching Contact Us page & Theme Tokens)
   -------------------------------------------------------------------------- */

/* 1. Global Reset for Outer Containers (Zero nested borders, zero outer boxes) */
.wp-block-edwiser-bridge-pro-legacy-checkout,
.eb-legacy-checkout__wrapper,
.woocommerce-checkout,
.ct-woocommerce-checkout,
form.woocommerce-checkout,
.col2-set#customer_details,
.ct-customer-details .col-1,
.ct-customer-details .col-2,
.ct-order-review,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-family: var(--theme-font-family, 'Inter', sans-serif) !important;
    color: var(--theme-text-color, #2C4259) !important;
    box-sizing: border-box !important;
}

.eb-legacy-checkout__wrapper {
    max-width: var(--theme-normal-container-max-width, 1220px) !important;
    margin: 0 auto 60px auto !important;
}

/* 2. Headings */
.woocommerce-checkout h3,
.eb-legacy-checkout__wrapper h3,
#order_review_heading {
    font-family: var(--theme-font-family, 'Inter', sans-serif) !important;
    color: var(--theme-headings-color, #0A1626) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 24px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e4e7ea !important;
    letter-spacing: -0.2px !important;
}

/* 3. Notice Banners (Login / Coupon) */
.woocommerce-info,
.woocommerce-message {
    background-color: var(--theme-palette-color-13, #F4F9FC) !important;
    color: var(--theme-palette-color-3, #2C4259) !important;
    border: 1px solid var(--theme-palette-color-12, #D2E5F2) !important;
    border-left: 4px solid var(--theme-palette-color-1, #0071C1) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 10px rgba(10, 22, 38, 0.04) !important;
}

.woocommerce-info a,
.woocommerce-message a {
    color: var(--theme-palette-color-1, #0071C1) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* 4. The Two Distinct White Cards (NO NESTING) */
.ct-customer-details,
#order_review,
.woocommerce-form-login,
.checkout_coupon {
    background-color: #ffffff !important;
    border: 1px solid #e4e7ea !important;
    border-radius: 16px !important;
    box-shadow: 0px 24px 50px -24px rgba(10, 22, 38, 0.15) !important;
    padding: 36px !important;
    box-sizing: border-box !important;
    margin-bottom: 24px !important;
}

/* 5. 2-Column Desktop Grid Layout */
@media (min-width: 992px) {
    .ct-woocommerce-checkout,
    form.woocommerce-checkout {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 32px !important;
        align-items: start !important;
    }

    .ct-customer-details {
        margin-bottom: 0 !important;
    }

    .ct-order-review {
        position: sticky !important;
        top: calc(var(--header-sticky-height, 80px) + 24px) !important;
    }

    #order_review_heading {
        margin-top: 0 !important;
    }
}

/* 6. Form Field Labels */
.woocommerce-checkout .form-row label,
.woocommerce-form-login label {
    font-family: var(--theme-font-family, 'Inter', sans-serif) !important;
    color: var(--theme-headings-color, #0A1626) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout .form-row label .required {
    color: #cf2e2e !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .form-row label .optional {
    color: var(--bmt-color-muted, #5C7488) !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

/* 7. Form Controls (Inputs, Selects, Textareas) */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.checkout_coupon input[type="text"],
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background-color: var(--theme-palette-color-7, #FAFAF7) !important;
    color: var(--theme-palette-color-3, #2C4259) !important;
    border: 1px solid var(--theme-border-color, #BCC3C7) !important;
    border-radius: 7px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    font-family: var(--theme-font-family, 'Inter', sans-serif) !important;
    height: var(--theme-form-field-height, 48px) !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: var(--theme-transition, all 0.15s ease) !important;
    width: 100% !important;
}

.woocommerce-checkout textarea {
    height: auto !important;
    min-height: 90px !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.woocommerce-form-login input:focus,
.checkout_coupon input:focus,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--theme-palette-color-1, #0071C1) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 193, 0.15) !important;
    background-color: #ffffff !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--theme-palette-color-3, #2C4259) !important;
    line-height: 46px !important;
    padding-left: 0 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

/* 8. Order Review Table */
table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin-bottom: 24px !important;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
    padding: 14px 10px !important;
    border-bottom: 1px solid #f2f5f7 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    font-size: 14.5px !important;
    color: var(--theme-palette-color-3, #2C4259) !important;
}

table.woocommerce-checkout-review-order-table thead th {
    background-color: var(--theme-palette-color-7, #FAFAF7) !important;
    color: var(--theme-headings-color, #0A1626) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-bottom: 1px solid #e4e7ea !important;
}

table.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600 !important;
    color: var(--theme-headings-color, #0A1626) !important;
}

table.woocommerce-checkout-review-order-table .order-total th,
table.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--theme-headings-color, #0A1626) !important;
    border-top: 2px solid #e4e7ea !important;
}

table.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    color: var(--theme-palette-color-1, #0071C1) !important;
}

.milo-subscriptions-recurring-total td,
.milo-subscriptions-recurring-total th {
    color: var(--theme-palette-color-1, #0071C1) !important;
    font-weight: 700 !important;
}

/* 9. Payment Gateway Box */
#payment.woocommerce-checkout-payment {
    background-color: var(--theme-palette-color-7, #FAFAF7) !important;
    border: 1px solid #e4e7ea !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 20px !important;
}

#payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    border-bottom: 1px solid #e4e7ea !important;
}

#payment ul.payment_methods li {
    padding: 8px 0 !important;
}

#payment ul.payment_methods li label {
    font-weight: 700 !important;
    color: var(--theme-headings-color, #0A1626) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

#payment div.payment_box,
#milo-stripe-card-element {
    background-color: #ffffff !important;
    border: 1px solid var(--theme-border-color, #BCC3C7) !important;
    border-radius: 7px !important;
    padding: 12px 14px !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(10, 22, 38, 0.04) !important;
}

/* 10. Policy Acknowledgment Box */
.bmt-policy-ack-row {
    background-color: var(--theme-palette-color-11, #E8F1F8) !important;
    border: 1px solid var(--theme-palette-color-12, #D2E5F2) !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin: 20px 0 16px 0 !important;
    display: block !important;
    clear: both !important;
}

.bmt-policy-ack-row label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--theme-palette-color-3, #2C4259) !important;
    cursor: pointer !important;
    margin: 0 !important;
}

#bmt_policies_ack {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: auto !important;
    accent-color: var(--theme-palette-color-4, #0A1626) !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin-top: 2px !important;
    cursor: pointer !important;
}

.bmt-policy-ack-row a {
    color: var(--theme-palette-color-1, #0071C1) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* 11. Primary Theme Button */
#place_order,
button#place_order.button.alt,
.woocommerce-form-login__submit,
.checkout_coupon button {
    background-color: var(--theme-button-background-initial-color, var(--theme-palette-color-2, #F2A024)) !important;
    color: var(--theme-button-text-initial-color, var(--theme-palette-color-4, #0A1626)) !important;
    border: var(--theme-button-border, none) !important;
    border-radius: var(--theme-button-border-radius, 6px) !important;
    min-height: var(--theme-button-min-height, 50px) !important;
    padding: var(--theme-button-padding, 16px 22px) !important;
    font-family: var(--theme-font-family, 'Inter', sans-serif) !important;
    font-size: var(--theme-button-font-size, 15px) !important;
    font-weight: var(--theme-button-font-weight, 600) !important;
    line-height: var(--theme-button-line-height, 1) !important;
    text-transform: var(--theme-text-transform, none) !important;
    letter-spacing: 0.02em !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(242, 160, 36, 0.28) !important;
    transition: var(--theme-transition, all 0.15s ease) !important;
    margin-top: 12px !important;
    box-sizing: border-box !important;
}

#place_order:hover,
button#place_order.button.alt:hover,
.woocommerce-form-login__submit:hover,
.checkout_coupon button:hover {
    background-color: var(--theme-button-background-hover-color, var(--theme-palette-color-15, #DE8B14)) !important;
    color: var(--theme-button-text-hover-color, var(--theme-palette-color-14, #050D17)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(222, 139, 20, 0.38) !important;
}

/* 12. Mobile Breakpoint */
@media (max-width: 768px) {
    .ct-customer-details,
    #order_review,
    .woocommerce-form-login,
    .checkout_coupon {
        padding: 24px 18px !important;
        border-radius: 12px !important;
    }

    #payment.woocommerce-checkout-payment {
        padding: 16px !important;
    }
}



/* ==========================================================================
   10. SAVINGS CALCULATOR MODAL STYLES (Light Brand Theme System)
   ========================================================================== */

/* Theme Variables & Tokens */
:root {
  --bmt-color-dark: var(--theme-palette-color-4, #0A1626);
  --bmt-color-gold: var(--theme-palette-color-2, #F2A024);
  --bmt-color-gold-hover: var(--theme-palette-color-15, #DE8B14);
  --bmt-color-dark-hover: var(--theme-palette-color-14, #050D17);
  --bmt-color-bg-input: var(--theme-palette-color-7, #FAFAF7);
  --bmt-color-muted: var(--theme-palette-color-3, #5C7488);
  --bmt-color-border: var(--theme-border-color, #BCC3C7);
  --bmt-font-family: var(--theme-font-family, 'Inter', sans-serif);
  --bmt-border-radius: var(--theme-button-border-radius, 6px);
  --bmt-button-height: var(--theme-button-min-height, 50px);
  --bmt-button-font-size: var(--theme-button-font-size, 15px);
  --bmt-button-font-weight: var(--theme-button-font-weight, 600);
}

/* Backdrop Overlay */
.bmt-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(2, 12, 24, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.bmt-modal-overlay.bmt-active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Modal Card Window */
.bmt-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--bmt-color-dark);
  font-family: var(--bmt-font-family);
  box-sizing: border-box;
}

.bmt-modal-card::-webkit-scrollbar {
  width: 6px;
}
.bmt-modal-card::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 12px 12px 0;
}
.bmt-modal-card::-webkit-scrollbar-thumb {
  background: var(--bmt-color-gold);
  border-radius: 4px;
}

.bmt-modal-overlay.bmt-active .bmt-modal-card {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.bmt-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid #EAEAEA;
  position: relative;
}

.bmt-modal-title {
  font-family: var(--bmt-font-family);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--bmt-color-dark) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.bmt-modal-subtitle {
  font-family: var(--bmt-font-family);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--bmt-color-muted);
  margin: 0;
  line-height: 1.45;
}

.bmt-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bmt-color-bg-input);
  border: 1.5px solid var(--bmt-color-border);
  color: var(--bmt-color-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}

.bmt-modal-close:hover {
  background: var(--bmt-color-gold);
  color: var(--bmt-color-dark);
  border-color: var(--bmt-color-gold);
}

/* Modal Body */
.bmt-modal-body {
  padding: 24px 28px;
}

.bmt-calc-row {
  background-color: var(--bmt-color-bg-input);
  padding: 13px 16px;
  margin-bottom: 22px;
  border: 1.5px solid var(--bmt-color-border);
  border-radius: var(--bmt-border-radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bmt-calc-row:focus-within,
.bmt-calc-row:hover {
  background-color: #ffffff;
  border-color: var(--bmt-color-gold);
}

.bmt-calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bmt-calc-label {
  font-family: var(--bmt-font-family);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bmt-color-dark);
}

.bmt-calc-val {
  font-family: var(--bmt-font-family);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--bmt-color-gold);
}

.bmt-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.bmt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bmt-color-gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(242, 160, 36, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.bmt-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--bmt-color-gold-hover);
}

.bmt-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
  background: var(--bmt-color-bg-input);
  padding: 16px;
  border-radius: var(--bmt-border-radius);
  border: 1.5px solid var(--bmt-color-border);
}

.bmt-breakdown-card {
  text-align: center;
}

.bmt-breakdown-title {
  font-family: var(--bmt-font-family);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bmt-color-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.bmt-breakdown-amount {
  font-family: var(--bmt-font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--bmt-color-dark);
}

.bmt-savings-box {
  background: linear-gradient(135deg, rgba(242, 160, 36, 0.08) 0%, rgba(0, 113, 193, 0.08) 100%);
  border: 1.5px solid rgba(242, 160, 36, 0.4);
  border-radius: var(--bmt-border-radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 22px;
}

.bmt-savings-label {
  font-family: var(--bmt-font-family);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bmt-color-gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.bmt-savings-total {
  font-family: var(--bmt-font-family);
  font-size: 34px;
  font-weight: 800;
  color: var(--bmt-color-dark);
  margin-bottom: 6px;
}

.bmt-savings-note {
  font-family: var(--bmt-font-family);
  font-size: 13px;
  color: var(--bmt-color-muted);
  line-height: 1.4;
}

.bmt-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--bmt-button-height);
  padding: 16px 22px;
  background-color: var(--theme-button-background-initial-color, var(--bmt-color-gold)) !important;
  color: var(--theme-button-text-initial-color, var(--bmt-color-dark)) !important;
  font-family: var(--bmt-font-family);
  font-size: var(--bmt-button-font-size) !important;
  font-weight: var(--bmt-button-font-weight) !important;
  text-align: center;
  border: none !important;
  border-radius: var(--bmt-border-radius) !important;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.bmt-cta-btn:hover {
  background-color: var(--theme-button-background-hover-color, var(--bmt-color-gold-hover)) !important;
  color: var(--theme-button-text-hover-color, var(--bmt-color-dark-hover)) !important;
}

@media (max-width: 600px) {
  .bmt-modal-overlay { padding: 10px !important; }
  .bmt-modal-card { max-height: 95vh; border-radius: 10px; }
  .bmt-modal-header { padding: 18px 20px 14px; }
  .bmt-modal-title { font-size: 18px; padding-right: 28px; }
  .bmt-modal-subtitle { font-size: 13px; }
  .bmt-modal-close { top: 14px; right: 14px; width: 28px; height: 28px; font-size: 18px; }
  .bmt-modal-body { padding: 18px 20px; }
  .bmt-calc-row { padding: 10px 14px; margin-bottom: 16px; }
  .bmt-slider::-webkit-slider-thumb { width: 22px; height: 22px; }
  .bmt-breakdown-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 8px; }
  .bmt-breakdown-title { font-size: 9px; }
  .bmt-breakdown-amount { font-size: 14px; }
  .bmt-savings-box { padding: 16px 12px; }
  .bmt-savings-total { font-size: 28px; }
  .bmt-cta-btn { font-size: 14.5px !important; }
}

@media (max-width: 380px) {
  .bmt-breakdown-grid { grid-template-columns: 1fr; gap: 10px; }
  .bmt-savings-total { font-size: 24px; }
}