/* ══════════════════════════════════════════
   صفحه تسویه حساب سایبرپانک - بتاپلاس
══════════════════════════════════════════ */

.custom-checkout-page {
    background: #0c0c12;
    padding: 120px 5% 60px;
    min-height: 100vh;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    color: #e2e2f0;
}

/* عنوان اصلی */
.checkout-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkout-title::before {
    content: '';
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #f97316, #a78bfa);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

/* لایه بندی گرید */
.checkout-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.checkout-left { flex: 1.5; }
.checkout-right { flex: 1; }

@media (max-width: 900px) {
    .checkout-container { flex-direction: column; }
    .checkout-right { order: -1; } /* در موبایل خلاصه سفارش بالای فرم بیاید */
}

/* بوکس‌های شیشه‌ای */
.checkout-box, .checkout-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* خط نورانی بالای بوکس‌ها */
.checkout-box::before, .checkout-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px; height: 2px;
    background: linear-gradient(90deg, transparent, #f97316, #a78bfa, transparent);
    border-radius: 2px;
}

/* عناوین داخل بوکس */
.checkout-box h2, .checkout-summary h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-box h2 svg, .checkout-summary h2 svg {
    width: 22px; height: 22px; color: #f97316;
}

/* ── استایل فیلدهای فرم ── */
.woocommerce form .form-row {
    margin-bottom: 20px;
}
.woocommerce form .form-row label {
    color: rgba(226, 226, 240, 0.8) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}
.woocommerce form .form-row span.required {
    color: #f97316 !important;
    border: none !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 14px 16px !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    font-family: 'Vazir', Tahoma, sans-serif !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15), inset 0 0 10px rgba(249, 115, 22, 0.05) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* تست دور دراپ‌داون ووکامرس */
.select2-container--default .select2-selection--single {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    height: 50px !important;
    padding-top: 10px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 28px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #f97316 transparent transparent transparent !important;
}

/* چک‌باکس‌ها */
.woocommerce form .form-row .input-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-left: 10px;
    transition: 0.3s;
}
.woocommerce form .form-row .input-checkbox:checked {
    background: #f97316;
    border-color: #f97316;
    box-shadow: 0 0 10px rgba(249,115,22,0.4);
}
.woocommerce form .form-row .input-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* ── خلاصه سفارش (جدول) ── */
.sticky-box {
    position: sticky;
    top: 100px;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #e2e2f0;
    font-size: 14px;
}
.woocommerce-checkout-review-order-table th {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}
.woocommerce-checkout-review-order-table .product-name {
    color: #fff;
    font-weight: 700;
}
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table td {
    text-align: left;
    font-weight: 700;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    color: #f97316;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    border-bottom: none;
}

/* ── دکمه پرداخت نئونی ── */
.woocommerce #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce #payment .form-row.place-order {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce #payment button.button.alt {
    background: linear-gradient(135deg, #f97316, #fb923c) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #fff !important;
    width: 100% !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    text-shadow: none !important;
    font-family: 'Vazir', Tahoma, sans-serif !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.woocommerce #payment button.button.alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

.woocommerce #payment button.button.alt::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}
.woocommerce #payment button.button.alt:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* مخفی کردن متن اضافی ووکامرس */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 20px;
    color: #e2e2f0;
}
.woocommerce-terms-and-conditions-wrapper a {
    color: #a78bfa;
    text-decoration: none;
}
.woocommerce-terms-and-conditions-wrapper a:hover {
    color: #f97316;
}
.woocommerce-password-strength {
    margin-top: 8px;
}