/* ==============================================
   CHECKOUT PAGE STYLES
   ============================================== */

.checkout_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ---- Checkout Steps ---- */
.checkout_steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.checkout_step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    padding: 10px 20px;
    transition: color 0.3s;
}
.checkout_step .step_number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.3s;
}
.checkout_step.active {
    color: #333;
}
.checkout_step.active .step_number {
    background: #73B504;
    color: #000;
}
.checkout_step.done {
    color: #333;
}
.checkout_step.done .step_number {
    background: #4caf50;
    color: #fff;
}
.checkout_step_divider {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin: 0 5px;
}
.checkout_step_divider.done {
    background: #4caf50;
}

/* ---- Collapsible Sections ---- */
.checkout_collapse {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}
.checkout_collapse_toggle {
    width: 100%;
    padding: 16px 20px;
    background: #f9f9f9;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.checkout_collapse_toggle:hover {
    background: #f0f0f0;
}
.checkout_collapse_toggle .toggle_arrow {
    transition: transform 0.3s;
    font-size: 14px;
    color: #888;
}
.checkout_collapse.open .checkout_collapse_toggle .toggle_arrow {
    transform: rotate(180deg);
}
.checkout_collapse_body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.checkout_collapse.open .checkout_collapse_body {
    max-height: 600px;
}
.checkout_collapse_inner {
    padding: 20px;
}

/* ---- Two Column Layout ---- */
.checkout_main {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}
.checkout_main_left {
    flex: 1;
    min-width: 0;
}
.checkout_main_right {
    width: 420px;
    flex-shrink: 0;
}

/* ---- Billing Form ---- */
.billing_section_title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}
.form_group {
    margin-bottom: 18px;
}
.form_group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}
.form_group label .required {
    color: #e53935;
}
.form_group input,
.form_group select,
.form_group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none;
    border-color: #73B504;
    box-shadow: 0 0 0 3px rgba(173, 255, 47, 0.15);
}
.form_group textarea {
    resize: vertical;
    min-height: 90px;
}
.form_group .optional {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* ---- Account Creation ---- */
.account_create_toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.account_create_toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #73B504;
}
.account_create_reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.account_create_reveal.open {
    max-height: 100px;
}

/* ---- Order Summary ---- */
.order_summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    position: sticky;
    top: 20px;
}
.order_summary_title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.order_table {
    width: 100%;
    border-collapse: collapse;
}
.order_table th {
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    color: #888;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.order_table th:last-child {
    text-align: right;
}
.order_table td {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
    vertical-align: top;
}
.order_table td:last-child {
    text-align: right;
    font-weight: 600;
}
.order_product_name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.order_product_qty {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}
.order_totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}
.order_totals_row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}
.order_totals_total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}
.order_empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}
.order_empty i {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
    color: #ddd;
}

/* ---- Shipping Progress ---- */
.shipping_progress {
    background: #f0fdf0;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2e7d32;
}
.shipping_progress .progress_bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.shipping_progress .progress_fill {
    height: 100%;
    background: #73B504;
    border-radius: 3px;
    transition: width 0.3s;
}

/* ---- CGV ---- */
.cgv_section {
    margin: 20px 0;
}
.cgv_checkbox_row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.cgv_checkbox_row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #73B504;
}
.cgv_link {
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}
.cgv_link:hover {
    color: #0d47a1;
}

/* ---- Submit Button ---- */
.checkout_submit_btn {
    width: 100%;
    padding: 16px;
    background: #73B504;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 15px;
}
.checkout_submit_btn:hover {
    background: #7ecf00;
}
.checkout_submit_btn:active {
    transform: scale(0.98);
}
.checkout_submit_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ---- CGV Modal ---- */
.cgv_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.cgv_modal_overlay.open {
    display: flex;
}
.cgv_modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cgv_modal_header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cgv_modal_header h3 {
    font-size: 18px;
    font-weight: 700;
}
.cgv_modal_close {
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.cgv_modal_close:hover {
    color: #333;
}
.cgv_modal_body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.cgv_modal_body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 15px 0 8px;
}
.cgv_modal_footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.cgv_btn_accept {
    padding: 12px 28px;
    background: #73B504;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.cgv_btn_accept:hover {
    background: #7ecf00;
}
.cgv_btn_cancel {
    padding: 12px 28px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}
.cgv_btn_cancel:hover {
    background: #e0e0e0;
}

/* ---- Promo Code ---- */
.promo_form {
    display: flex;
    gap: 10px;
}
.promo_form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.promo_form input:focus {
    outline: none;
    border-color: #73B504;
    box-shadow: 0 0 0 3px rgba(173, 255, 47, 0.15);
}
.promo_apply_btn {
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.promo_apply_btn:hover {
    background: #555;
}
.promo_message {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}
.promo_message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}
.promo_message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

/* ---- Login Form ---- */
.login_form .form_group {
    margin-bottom: 15px;
}
.login_remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}
.login_remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #73B504;
}
.login_submit_btn {
    padding: 12px 30px;
    background: #73B504;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.login_submit_btn:hover {
    background: #7ecf00;
}
.login_lost_password {
    margin-left: 15px;
    font-size: 13px;
    color: #1976d2;
    text-decoration: none;
}
.login_lost_password:hover {
    text-decoration: underline;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 992px) {
    .checkout_main {
        flex-direction: column;
        gap: 30px;
    }
    .checkout_main_right {
        width: 100%;
    }
    .order_summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout_container {
        padding: 20px 12px;
    }
    .checkout_step {
        font-size: 13px;
        padding: 8px 10px;
        gap: 6px;
    }
    .checkout_step .step_number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .checkout_step_divider {
        width: 30px;
    }
    .billing_section_title {
        font-size: 19px;
    }
    .order_summary_title {
        font-size: 18px;
    }
    .order_summary {
        padding: 18px;
    }
    .cgv_modal {
        width: 95%;
        max-height: 85vh;
    }
    .promo_form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .checkout_step {
        font-size: 11px;
        padding: 6px 5px;
        gap: 4px;
    }
    .checkout_step .step_number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .checkout_step_divider {
        width: 15px;
    }
    .form_group input,
    .form_group select,
    .form_group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    .checkout_submit_btn {
        font-size: 15px;
        padding: 14px;
    }
}
