/* ═══════════════════════════════════════════════════════════
   cart-checkout.css — سبد خرید و تسویه‌حساب هوران
   قالب‌های اختصاصی: .hooran-cart  /  .hooran-checkout
   پالت Dark Luxury: #121212 | طلایی #C9A96E/#D4B996 | متن #FFFFFF/#8E8E93
═══════════════════════════════════════════════════════════ */

body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-page { background: #121212 !important; }

/* ════════════════════════════════════════════════
   پیغام‌ها (مشترک)
════════════════════════════════════════════════ */
.hooran-cart .woocommerce-message,
.hooran-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info,
.woocommerce-cart .cart-empty {
    background: rgba(201,169,110,.08) !important;
    border: 1px solid rgba(201,169,110,.2) !important;
    border-right: 3px solid #C9A96E !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    margin: 0 auto 24px !important;
    box-shadow: none !important;
    direction: rtl !important;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif !important;
}
.woocommerce-message::before,
.woocommerce-info::before { display: none !important; }

.woocommerce-error {
    background: rgba(235,87,87,.08) !important;
    border: 1px solid rgba(235,87,87,.25) !important;
    border-right: 3px solid #eb5757 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    color: #eb5757 !important;
    font-size: 14px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
    direction: rtl !important;
}
.woocommerce-error::before { display: none !important; }

/* ════════════════════════════════════════════════
   سبد خرید
════════════════════════════════════════════════ */
.hooran-cart {
    direction: rtl;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
    color: #FFFFFF;
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) {
    .hooran-cart { grid-template-columns: 1fr; }
}

.hooran-cart__form { min-width: 0; }

/* ── لیست آیتم‌ها ── */
.hooran-cart__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hooran-cart__item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    align-items: center;
    gap: 18px;
    background: rgba(28,28,30,.7);
    border: 1px solid rgba(201,169,110,.10);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.3);
    transition: border-color .25s ease;
}
.hooran-cart__item:hover { border-color: rgba(201,169,110,.28); }

.hooran-cart__thumb img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(201,169,110,.12);
    display: block;
}

.hooran-cart__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hooran-cart__name a,
.hooran-cart__name {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    line-height: 1.6;
    transition: color .2s;
}
.hooran-cart__name a:hover { color: #C9A96E !important; }
.hooran-cart__name .variation,
.hooran-cart__name dl { font-size: 12px; color: #8E8E93; margin: 4px 0 0; }
.hooran-cart__unit-price { font-size: 13px; color: #8E8E93; }
.hooran-cart__unit-price .woocommerce-Price-amount { color: #8E8E93 !important; font-weight: 500; }
.hooran-cart__name .backorder_notification { font-size: 12px; color: #C9A96E; margin: 4px 0 0; }

/* تعداد */
.hooran-cart__qty .quantity {
    display: inline-flex !important;
    align-items: center;
    background: rgba(30,30,30,.9);
    border: 1px solid rgba(201,169,110,.18);
    border-radius: 999px;
    overflow: hidden;
}
.hooran-cart__qty input.qty,
.quantity input.qty {
    width: 58px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    -moz-appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* جمع جزء */
.hooran-cart__subtotal {
    font-size: 15px;
    font-weight: 700;
    color: #C9A96E;
    white-space: nowrap;
}
.hooran-cart__subtotal .woocommerce-Price-amount { color: #C9A96E !important; }

/* حذف */
.hooran-cart__remove a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: #eb5757 !important;
    background: rgba(235,87,87,.12);
    font-size: 17px;
    line-height: 1;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}
.hooran-cart__remove a.remove:hover {
    background: #eb5757 !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* ── اکشن‌ها (کوپن + بروزرسانی) ── */
.hooran-cart__actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.hooran-cart__actions .coupon {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
}
#coupon_code {
    background: rgba(30,30,30,.9) !important;
    border: 1px solid rgba(201,169,110,.18) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    outline: none !important;
    min-width: 180px !important;
    flex: 1 1 auto;
}
#coupon_code:focus { border-color: rgba(201,169,110,.5) !important; }

/* ── جمع کل (collaterals / cart_totals) ── */
.hooran-cart__collaterals { width: 100%; }
.hooran-cart__collaterals .cart_totals,
.cart_totals {
    width: 100% !important;
    float: none !important;
    background: rgba(28,28,30,.7) !important;
    border: 1px solid rgba(201,169,110,.10) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.35) !important;
    position: sticky;
    top: 100px;
}
.cart_totals h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 16px !important;
}
.cart_totals table { width: 100% !important; border-collapse: collapse !important; background: transparent !important; }
.cart_totals table th,
.cart_totals table td {
    background: transparent !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
    text-align: right !important;
}
.cart_totals table th { color: #8E8E93 !important; font-weight: 500 !important; }
.cart_totals .order-total th,
.cart_totals .order-total td {
    border-top: 1px solid rgba(201,169,110,.15) !important;
    border-bottom: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.cart_totals .order-total .woocommerce-Price-amount { color: #C9A96E !important; font-size: 18px !important; }
.cart_totals .woocommerce-Price-amount { color: #FFFFFF !important; font-weight: 600 !important; }
.wc-proceed-to-checkout { padding: 18px 0 0 !important; }
.wc-proceed-to-checkout .checkout-button { width: 100% !important; }

/* سبد خالی */
.cart-empty { text-align: center; }
.return-to-shop { margin-top: 16px; text-align: center; }

/* ════════════════════════════════════════════════
   تسویه‌حساب
════════════════════════════════════════════════ */
.hooran-checkout {
    direction: rtl;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
    color: #FFFFFF;
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 80px;
}

.hooran-checkout__form {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 28px !important;
    align-items: start !important;
}
@media (max-width: 900px) {
    .hooran-checkout__form { grid-template-columns: 1fr !important; }
}

/* ستون اطلاعات مشتری */
.hooran-checkout__details {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: auto !important;
    min-width: 0;
}
.hooran-checkout__details .col-1,
.hooran-checkout__details .col-2 {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    background: rgba(28,28,30,.7) !important;
    border: 1px solid rgba(201,169,110,.10) !important;
    border-radius: 18px !important;
    padding: 24px !important;
}
/* اگر شیپینگ خالی بود فاصلهٔ اضافه نده */
.hooran-checkout__details .col-2:empty { display: none !important; }

.hooran-checkout h3,
#order_review_heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(201,169,110,.12) !important;
}

/* فیلدها */
.hooran-checkout .form-row { margin-bottom: 16px !important; padding: 0 !important; }
.hooran-checkout .form-row label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #8E8E93 !important;
    margin-bottom: 8px !important;
    text-align: right !important;
}
.hooran-checkout .form-row .required { color: #C9A96E !important; border: none !important; }
.hooran-checkout .form-row input.input-text,
.hooran-checkout .form-row textarea,
.hooran-checkout .form-row select,
.hooran-checkout #order_comments,
.hooran-checkout .input-text {
    width: 100% !important;
    background: rgba(30,30,30,.9) !important;
    border: 1px solid rgba(201,169,110,.18) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-family: inherit !important;
    padding: 12px 16px !important;
    outline: none !important;
    transition: border-color .2s ease !important;
    direction: rtl !important;
    text-align: right !important;
}
.hooran-checkout .form-row input.input-text:focus,
.hooran-checkout .form-row textarea:focus,
.hooran-checkout .form-row select:focus {
    border-color: rgba(201,169,110,.5) !important;
    background: rgba(35,35,35,.9) !important;
}
.hooran-checkout .form-row select option { background: #1e1e1e !important; color: #FFFFFF !important; }

/* select2 */
.hooran-checkout .select2-container .select2-selection--single {
    height: 46px !important;
    background: rgba(30,30,30,.9) !important;
    border: 1px solid rgba(201,169,110,.18) !important;
    border-radius: 12px !important;
}
.hooran-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    color: #FFFFFF !important;
    line-height: 46px !important;
    padding-right: 16px !important;
}
.hooran-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; }
.select2-dropdown {
    background: #1e1e1e !important;
    border: 1px solid rgba(201,169,110,.2) !important;
    color: #FFFFFF !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(201,169,110,.2) !important;
    color: #C9A96E !important;
}

/* ستون خلاصهٔ سفارش */
.hooran-checkout__review {
    background: rgba(28,28,30,.7) !important;
    border: 1px solid rgba(201,169,110,.10) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    position: sticky !important;
    top: 100px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.35) !important;
}
.hooran-checkout__review #order_review { background: transparent !important; padding: 0 !important; border: none !important; }
.hooran-checkout__review table.shop_table {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-collapse: collapse !important;
}
.hooran-checkout__review table.shop_table th,
.hooran-checkout__review table.shop_table td {
    padding: 12px 0 !important;
    font-size: 14px !important;
    background: transparent !important;
    color: #FFFFFF !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
    text-align: right !important;
}
.hooran-checkout__review table.shop_table th { color: #8E8E93 !important; font-weight: 500 !important; }
.hooran-checkout__review .order-total th,
.hooran-checkout__review .order-total td {
    border-top: 1px solid rgba(201,169,110,.15) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.hooran-checkout__review .woocommerce-Price-amount { color: #C9A96E !important; font-weight: 600 !important; }

/* روش‌های پرداخت */
.hooran-checkout #payment { background: transparent !important; border-radius: 0 !important; }
.hooran-checkout #payment ul.payment_methods {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}
.hooran-checkout #payment ul.payment_methods li {
    background: rgba(30,30,30,.6) !important;
    border: 1px solid rgba(201,169,110,.12) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    list-style: none !important;
    color: #FFFFFF !important;
}
.hooran-checkout #payment ul.payment_methods li label {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline !important;
}
.hooran-checkout #payment .payment_box {
    background: rgba(18,18,18,.6) !important;
    color: #8E8E93 !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}
.hooran-checkout #payment .payment_box::before { display: none !important; }
.hooran-checkout #payment div.place-order { padding: 8px 0 0 !important; border: none !important; }
.hooran-checkout .woocommerce-terms-and-conditions-wrapper { color: #8E8E93 !important; font-size: 13px !important; }

/* ════════════════════════════════════════════════
   دکمه‌ها — طلایی (مشترک)
════════════════════════════════════════════════ */
.hooran-cart .button,
.hooran-cart button.button,
.hooran-cart input.button,
.hooran-checkout .button,
.hooran-checkout #place_order,
.wc-proceed-to-checkout .checkout-button,
.return-to-shop .button,
#place_order {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 26px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif !important;
    color: #121212 !important;
    background: linear-gradient(135deg, #D4B996 0%, #C9A96E 100%) !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    box-shadow: 0 6px 18px rgba(201,169,110,.3) !important;
    text-shadow: none !important;
}
.hooran-cart .button:hover,
.hooran-checkout .button:hover,
.wc-proceed-to-checkout .checkout-button:hover,
.return-to-shop .button:hover,
#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(201,169,110,.5) !important;
    color: #121212 !important;
}
#place_order { width: 100% !important; }

/* دکمهٔ بروزرسانی سبد — ثانویه */
.hooran-cart__actions button[name="update_cart"] {
    background: rgba(255,255,255,.06) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(201,169,110,.2) !important;
    box-shadow: none !important;
}
.hooran-cart__actions button[name="update_cart"]:hover {
    background: rgba(201,169,110,.12) !important;
    color: #C9A96E !important;
    transform: none !important;
}
.hooran-cart__actions button[name="update_cart"][disabled] { opacity: .4 !important; cursor: not-allowed !important; }

/* اسپینر بارگذاری */
.blockUI.blockOverlay { background: rgba(18,18,18,.55) !important; }

/* ── موبایل: کارت سبد عمودی ── */
@media (max-width: 560px) {
    .hooran-cart__item {
        grid-template-columns: 64px 1fr auto;
        grid-template-areas:
            "thumb info remove"
            "thumb qty  subtotal";
        gap: 10px 14px;
    }
    .hooran-cart__thumb { grid-area: thumb; }
    .hooran-cart__thumb img { width: 64px !important; height: 64px !important; }
    .hooran-cart__info { grid-area: info; }
    .hooran-cart__qty { grid-area: qty; }
    .hooran-cart__subtotal { grid-area: subtotal; text-align: left; align-self: center; }
    .hooran-cart__remove { grid-area: remove; justify-self: end; }
    .hooran-cart__actions { flex-direction: column; align-items: stretch; }
    .hooran-cart__actions .coupon { flex-direction: column; }
}

/* ════════════════════════════════════════════════
   Fallback تسویه‌حساب — اگر wrapper .hooran-checkout نبود
   مستقیم روی body.woocommerce-checkout (همیشه موجود)
════════════════════════════════════════════════ */
body.woocommerce-checkout .woocommerce {
    direction: rtl !important;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif !important;
    color: #FFFFFF !important;
    max-width: 1160px !important;
    margin: 0 auto !important;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 80px !important;
}

/* چیدمان دو ستونه روی فرم پیش‌فرض */
body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    grid-template-areas:
        "details review"
        "details review" !important;
    gap: 28px !important;
    align-items: start !important;
}
body.woocommerce-checkout form.checkout #customer_details { grid-area: details !important; min-width: 0 !important; }
body.woocommerce-checkout form.checkout #order_review_heading,
body.woocommerce-checkout form.checkout #order_review { grid-area: review !important; }
body.woocommerce-checkout form.checkout #order_review_heading { align-self: start !important; }
@media (max-width: 900px) {
    body.woocommerce-checkout form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr !important;
        grid-template-areas: "details" "review" !important;
    }
}

/* کارت بخش‌ها */
body.woocommerce-checkout #customer_details .col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    background: rgba(28,28,30,.7) !important;
    border: 1px solid rgba(201,169,110,.10) !important;
    border-radius: 18px !important;
    padding: 24px !important;
}
body.woocommerce-checkout #customer_details .col-2:empty { display: none !important; }

body.woocommerce-checkout h3,
body.woocommerce-checkout #order_review_heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(201,169,110,.12) !important;
}

/* فیلدها */
body.woocommerce-checkout .form-row { margin-bottom: 16px !important; padding: 0 !important; }
body.woocommerce-checkout .form-row label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #8E8E93 !important;
    margin-bottom: 8px !important;
    text-align: right !important;
}
body.woocommerce-checkout .form-row .required { color: #C9A96E !important; border: none !important; }
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout #order_comments,
body.woocommerce-checkout .input-text {
    width: 100% !important;
    background: rgba(30,30,30,.9) !important;
    border: 1px solid rgba(201,169,110,.18) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-family: inherit !important;
    padding: 12px 16px !important;
    outline: none !important;
    direction: rtl !important;
    text-align: right !important;
}
body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row select:focus {
    border-color: rgba(201,169,110,.5) !important;
    background: rgba(35,35,35,.9) !important;
}
body.woocommerce-checkout .form-row select option { background: #1e1e1e !important; color: #FFFFFF !important; }

/* خلاصهٔ سفارش */
body.woocommerce-checkout #order_review {
    background: rgba(28,28,30,.7) !important;
    border: 1px solid rgba(201,169,110,.10) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    position: sticky !important;
    top: 100px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.35) !important;
}
body.woocommerce-checkout #order_review table.shop_table {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
    padding: 12px 0 !important;
    font-size: 14px !important;
    background: transparent !important;
    color: #FFFFFF !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
    text-align: right !important;
}
body.woocommerce-checkout #order_review table.shop_table th { color: #8E8E93 !important; font-weight: 500 !important; }
body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td {
    border-top: 1px solid rgba(201,169,110,.15) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
body.woocommerce-checkout #order_review .woocommerce-Price-amount { color: #C9A96E !important; font-weight: 600 !important; }

/* روش‌های پرداخت */
body.woocommerce-checkout #payment { background: transparent !important; border-radius: 0 !important; }
body.woocommerce-checkout #payment ul.payment_methods {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}
body.woocommerce-checkout #payment ul.payment_methods li {
    background: rgba(30,30,30,.6) !important;
    border: 1px solid rgba(201,169,110,.12) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    list-style: none !important;
    color: #FFFFFF !important;
}
body.woocommerce-checkout #payment ul.payment_methods li label {
    color: #FFFFFF !important; font-weight: 600 !important; font-size: 14px !important; display: inline !important;
}
body.woocommerce-checkout #payment .payment_box {
    background: rgba(18,18,18,.6) !important;
    color: #8E8E93 !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}
body.woocommerce-checkout #payment .payment_box::before { display: none !important; }
body.woocommerce-checkout #payment div.place-order { padding: 8px 0 0 !important; border: none !important; }

/* select2 fallback */
body.woocommerce-checkout .select2-container .select2-selection--single {
    height: 46px !important;
    background: rgba(30,30,30,.9) !important;
    border: 1px solid rgba(201,169,110,.18) !important;
    border-radius: 12px !important;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    color: #FFFFFF !important; line-height: 46px !important; padding-right: 16px !important;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; }

/* ════════════════════════════════════════════════
   صفحه پرداخت سفارش (order-pay)
════════════════════════════════════════════════ */
body.woocommerce-order-pay { background: #121212 !important; }

.hooran-order-pay {
    direction: rtl;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
    color: #FFFFFF;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(100px, 14vw, 130px) clamp(16px, 4vw, 32px) 80px;
}

.hooran-order-pay__form { width: 100%; }

/* کارت پرداخت */
.hooran-order-pay #payment {
    background: rgba(28,28,30,.7) !important;
    border: 1px solid rgba(201,169,110,.12) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.35) !important;
}

/* روش پرداخت */
.hooran-order-pay #payment ul.payment_methods {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
}
.hooran-order-pay #payment ul.payment_methods li {
    background: rgba(30,30,30,.6) !important;
    border: 1px solid rgba(201,169,110,.15) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    list-style: none !important;
    color: #FFFFFF !important;
}
.hooran-order-pay #payment ul.payment_methods li label {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
.hooran-order-pay #payment .payment_box {
    background: rgba(18,18,18,.6) !important;
    color: #8E8E93 !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin-top: 8px !important;
}
.hooran-order-pay #payment .payment_box::before { display: none !important; }
.hooran-order-pay #payment div.place-order { padding: 16px 0 0 !important; border: none !important; }

/* دکمه پرداخت */
.hooran-order-pay #place_order,
.hooran-order-pay .button {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 26px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif !important;
    color: #121212 !important;
    background: linear-gradient(135deg, #D4B996 0%, #C9A96E 100%) !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    box-shadow: 0 6px 18px rgba(201,169,110,.35) !important;
}
.hooran-order-pay #place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(201,169,110,.5) !important;
}

/* fallback — بدون wrapper */
body.woocommerce-order-pay .woocommerce {
    direction: rtl !important;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: clamp(100px, 14vw, 130px) clamp(16px, 4vw, 32px) 80px !important;
    color: #FFFFFF !important;
}