/*
/* ====== WC OTP Styles ====== */
.wc-otp-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
}

.wc-otp-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    padding: 2.5rem 2rem;
    box-sizing: border-box;
}

.wc-otp-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: right;
}

.wc-otp-subtitle,
.wc-otp-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: right;
    line-height: 1.7;
}

.wc-otp-form {
    margin-bottom: 1.5rem;
}

.wc-otp-form-hidden {
    display: none;
}

.wc-otp-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-align: right;
}

.wc-otp-input-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.wc-otp-input-prefix {
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 0.9rem;
    color: #4b5563;
    white-space: nowrap;
}

.wc-otp-input {
    flex: 1;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    text-align: right;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-otp-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Buttons */
.wc-otp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.wc-otp-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    width: 100%;
    margin-top: 0.2rem;
}

.wc-otp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.wc-otp-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.wc-otp-btn-secondary:hover {
    background: #e5e7eb;
}

.wc-otp-btn-link {
    background: transparent;
    color: #4f46e5;
    padding: 0.4rem 0;
    font-weight: 500;
}

.wc-otp-btn-link:hover {
    text-decoration: underline;
    box-shadow: none;
}

/* Actions row after login */
.wc-otp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.wc-otp-status {
    display: none;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    text-align: right;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
}

.wc-otp-status-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.wc-otp-status-success {
    background: #ecfdf3;
    color: #15803d;
}

.wc-otp-status-error {
    background: #fef2f2;
    color: #b91c1c;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .wc-otp-card {
        padding: 1.9rem 1.4rem;
        border-radius: 16px;
    }

    .wc-otp-title {
        font-size: 1.4rem;
    }

    .wc-otp-wrapper {
        padding: 2rem 1rem;
    }

    .wc-otp-actions {
        flex-direction: column;
    }

    .wc-otp-btn {
        width: 100%;
    }
}
/* ===== Modern Checkout Layout - Wrapper ===== */
/* === WRAPPER === */
.wc-modern-checkout {
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 1.25rem 3rem;
}

.wc-modern-checkout-inner {
    display: flex;
    justify-content: center;
}

.wc-modern-checkout-main {
    width: 100%;
    background: #00457a !important;
    border-radius: 24px;
    padding: 1.75rem 1.5rem 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
    direction: rtl;
}

/* === replace this: "2-column layout" → with 1 column === */
.wc-modern-checkout-main .woocommerce form.checkout {
    display: block !important;
    width: 100% !important;
}

/* === FORCE ONE COLUMN LAYOUT === */
.wc-modern-checkout-main .woocommerce form.checkout {
    display: block !important;
    width: 100% !important;
}

/* Customer details */
#wc-modern-checkout-main #customer_details,
.wc-modern-checkout-main #customer_details {
    background: #00457a;
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

/* Order review */
.wc-modern-checkout-main #order_review {
    background: #020617;
    border-radius:20px;
    padding: 1.4rem 1.2rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

/* Titles */
.wc-modern-checkout-main h3,
.wc-modern-checkout-main #order_review_heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.9rem;
    text-align: right;
	border-radius: 20px;

}

/* === Fields layout === */
.wc-modern-checkout-main .woocommerce-billing-fields__field-wrapper,
.wc-modern-checkout-main .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem 1rem;
	border-radius: 20px;
}

/* Labels */
.wc-modern-checkout-main label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
    display: block;
    text-align: right;
	border-radius: 20px;
}

/* === ALL INPUTS === */
.wc-modern-checkout-main .woocommerce form .input-text,
.wc-modern-checkout-main .select2-container--default .select2-selection--single,
.wc-modern-checkout-main .select2-container .select2-selection--single {
    border-radius: 999px;
    border: 1px solid #374151;
    background: #020617;
    color: #f9fafb;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center !important; /* center text */
    box-sizing: border-box;
}

/* Fix input height consistency */
.wc-modern-checkout-main .woocommerce form .input-text {
    height: 42px;
    line-height: 42px;
}

/* === SELECT2 FIX: Province/City full centering === */
.wc-modern-checkout-main .select2-container--default .select2-selection--single {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Center Persian text inside state/city select */
.wc-modern-checkout-main .select2-selection__rendered {
    text-align: center !important;
    width: 100%;
    color: #f9fafb !important;
    padding-right: 0 !important;
	border-radius: 20px;
}

/* Arrow alignment */
.wc-modern-checkout-main .select2-selection__arrow {
    height: 42px !important;
    top: 0 !important;
}

/* === ORDER REVIEW – REMOVE EMPTY COLUMN & CENTER ITEMS === */
/* === Order Table === */
.wc-modern-checkout-main table.shop_table {
    width: 100%;
    background: transparent;
    margin-bottom: 1rem;
    border-collapse: collapse;
	border-radius: 20px;
}

.wc-modern-checkout-main table.shop_table th,
.wc-modern-checkout-main table.shop_table td {
    border: none;
    padding: 0.5rem 0;
    color: #e5e7eb;
    text-align: right;
}
.

/* === Payment Methods === */
.wc-modern-checkout-main .wc_payment_methods li {
    background: #020617;
    border-radius: 14px;
    padding: 0.7rem 0.6rem;
    margin-bottom: 0.4rem;
    border: 1px solid #1f2937;
}

/* Gateway description */
.wc-modern-checkout-main .payment_box {
    background: #0b1220;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    color: #9ca3af;
}

/* === Place Order Button === */
.wc-modern-checkout-main #place_order,
.wc-modern-checkout-main .woocommerce button.button.alt {
    width: 100%;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    font-weight: 700;
    color: #fff;
    border: none;
    margin-top: 0.6rem;
    transition: 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .wc-modern-checkout-main .woocommerce form.checkout {
    grid-template-columns: 1fr;
    }
}

/* ===== Modern Cart (match checkout theme) ===== */

/* container / box */
.wc-modern-checkout {
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 1.25rem 3rem;
    box-sizing: border-box;
}

.wc-modern-checkout-inner {
    display: flex;
    justify-content: center;
}

.wc-modern-checkout-main {
    width: 100%;
    background: #00457a;
    border-radius: 24px;
    padding: 1.75rem 1.5rem 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
    direction: rtl;
    position: relative;
    overflow: visible;
}

/* loading overlay */
.wc-modern-checkout-main.modern-loading::after{
    content:'';
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.25);
    z-index:30;
}
.wc-modern-checkout-main.modern-loading::before{
    content:'';
    position:absolute;
    left:50%;
    top:50%;
    width:48px;
    height:48px;
    margin:-24px 0 0 -24px;
    border-radius:50%;
    border:4px solid rgba(255,255,255,0.15);
    border-top-color: #fff;
    animation: modern-spin 1s linear infinite;
    z-index:31;
}
@keyframes modern-spin { to { transform: rotate(360deg); } }

/* header */
.modern-cart-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}
.modern-cart-title {
    font-size:1.15rem;
    font-weight:700;
    color:#e5e7eb;
    margin:0;
    text-align:right;
}
.modern-minicart-toggle {
    background:transparent;
    border:1px solid rgba(255,255,255,0.06);
    color:#e5e7eb;
    padding:6px 10px;
    border-radius:10px;
    cursor:pointer;
}

/* items */
.modern-cart-container {
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:14px;
}

.modern-cart-item {
    display:flex;
    align-items:center;
    gap:14px;
    background:#012b4a; /* slightly darker than main */
    padding:12px;
    border-radius:20px;
    box-shadow: 0 6px 18px rgba(2,8,23,0.35);
    position:relative;
}

.cart-item-image img {
    width:70px;
    height:70px;
    border-radius:12px;
    object-fit:cover;
}

.cart-item-info {
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.cart-item-title {
    color:#e5e7eb;
    font-weight:700;
    text-decoration:none;
    text-align:right;
}
.cart-item-meta {
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:flex-end;
}

/* qty input */
input.qty {
    border-radius:999px;
    background:#020617;
    border:1px solid #374151;
    color:#f9fafb;
    width:66px;
    text-align:center;
    padding:6px 8px;
}

/* line price */
.cart-item-price {
    color:#e5e7eb;
    font-weight:700;
}

/* remove */
.cart-item-remove {
    position:absolute;
    left:12px;
    top:10px;
    color:#f87171;
    font-weight:700;
    text-decoration:none;
}

/* totals / coupon */
.modern-cart-actions {
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    align-items:flex-start;
    margin-top:8px;
}

.modern-cart-coupon {
    display:flex;
    gap:8px;
    align-items:center;
    background:#012b4a;
    padding:10px;
    border-radius:16px;
}
.modern-cart-coupon input {
    padding:8px 10px;
    border-radius:999px;
    border:1px solid #374151;
    background:#020617;
    color:#f9fafb;
    width:180px;
}
.btn-apply-coupon {
    background:linear-gradient(135deg,#4f46e5,#6366f1);
    color:#fff;
    border:none;
    padding:8px 12px;
    border-radius:999px;
    cursor:pointer;
}
.modern-coupon-msg{ margin-left:8px; color:#f9fafb; font-size:0.9rem; }
.modern-coupon-msg.error{ color:#f87171; }

/* totals box */
.modern-cart-totals {
    flex:1 1 280px;
    background:#012b4a;
    padding:12px;
    border-radius:20px;
    box-shadow: 0 6px 18px rgba(2,8,23,0.25);
    text-align:center;
}
.totals-line {
    display:flex;
    justify-content:space-between;
    color:#e5e7eb;
    font-weight:700;
    margin-bottom:10px;
}

/* checkout button matches checkout page */
.cart-checkout-btn {
    display:block;
    padding:12px;
    border-radius:999px;
    background:linear-gradient(135deg,#4f46e5,#6366f1);
    color:#fff;
    text-decoration:none;
    font-weight:700;
}

/* products grid below */
.modern-cart-products {
    margin-top:22px;
}
.modern-cart-products .products {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:14px;
}

/* responsive */
@media (max-width:900px) {
    .modern-cart-item {
        flex-direction:column;
        align-items:flex-start;
    }
    .modern-cart-coupon { width:100%; }
    .modern-cart-totals { width:100%; }
}

