/* سبد خرید و تسویه حساب — هم‌خوان با سایت */
body.hl-shop{--g:#05493e;--g2:#0b6b58;--gs:#eef5f1;--gold:#b7791f;--golds:#fbf3e3;--ink:#1d2a26;--muted:#5f6b67;--line:#e4e9e6;background:#f5f8f6;}
.hl-shop .woocommerce{max-width:1120px;margin:0 auto;direction:rtl;text-align:right;color:var(--ink);font-size:14.5px;}
.hl-shop .entry-title,.hl-shop h1.page-title{color:var(--g);font-weight:900;}

/* Notices */
.hl-shop .woocommerce-info,.hl-shop .woocommerce-message,.hl-shop .woocommerce-error{background:#fff!important;border:1px solid var(--line)!important;border-right:4px solid var(--g)!important;border-radius:12px!important;color:var(--ink)!important;padding:12px 16px!important;margin:0 0 14px!important;font-size:13.5px;box-shadow:none!important;}
.hl-shop .woocommerce-error{border-right-color:#b3261e!important;}
.hl-shop .woocommerce-error li{margin:2px 0;}
.hl-shop .woocommerce-info::before,.hl-shop .woocommerce-message::before,.hl-shop .woocommerce-error::before{display:none!important;}
.hl-shop .woocommerce-info a,.hl-shop .woocommerce-message a{color:var(--g)!important;font-weight:700;}

/* Steps */
.hl-co-steps{display:flex;gap:8px;list-style:none;margin:0 0 18px;padding:0;}
.hl-co-steps li{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13px;color:var(--muted);font-weight:700;margin:0;}
.hl-co-steps span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--gs);color:var(--g);font-size:12px;flex:0 0 24px;}
.hl-co-steps .is-done span{background:var(--g);color:#fff;}
.hl-co-steps .is-on{border-color:var(--g);color:var(--g);}
.hl-co-steps .is-on span{background:var(--gold);color:#fff;}

/* Checkout layout */
@media (min-width:900px){
	.hl-shop form.checkout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;align-items:start;}
	.hl-shop form.checkout > *{grid-column:1;}
	.hl-shop form.checkout #order_review_heading,.hl-shop form.checkout .hl-co-sum,.hl-shop form.checkout #order_review{grid-column:2;}
	.hl-shop form.checkout .hl-co-sum{grid-row:1;}
	.hl-shop form.checkout #order_review_heading{grid-row:2;}
	.hl-shop form.checkout #order_review{grid-row:3 / span 4;position:sticky;top:96px;}
	.hl-shop form.checkout #customer_details{grid-row:1 / span 6;}
}
.hl-shop #customer_details,.hl-shop #order_review,.hl-shop .hl-co-sum{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 22px;}
.hl-shop #customer_details .col-1,.hl-shop #customer_details .col-2{float:none!important;width:100%!important;max-width:none!important;padding:0!important;}
.hl-shop.hl-shop--course #customer_details .col-2{display:none;}
.hl-shop #customer_details h3,.hl-shop #order_review_heading{font-size:17px!important;font-weight:900!important;color:var(--g)!important;margin:0 0 14px!important;}
.hl-shop #order_review_heading{background:transparent;border:0;padding:0 4px;margin:10px 0 8px!important;}
.hl-shop.hl-shop--course #customer_details .woocommerce-billing-fields > h3::after{content:" — فقط برای رسید و دسترسی دوره";font-size:12.5px;color:var(--muted);font-weight:500;}

/* Fields */
.hl-shop .form-row{margin:0 0 14px!important;padding:0!important;}
.hl-shop .form-row label{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:6px;}
.hl-shop .form-row .required{color:#b3261e;text-decoration:none;}
.hl-shop input,.hl-shop textarea,.hl-shop select,.hl-shop button{font-family:inherit;}
.hl-shop .form-row input.input-text,.hl-shop .form-row textarea,.hl-shop .form-row select,.hl-shop .select2-selection{width:100%;border:1.5px solid var(--line)!important;border-radius:10px!important;padding:10px 12px!important;background:#fbfcfb!important;font-size:14.5px;box-shadow:none!important;min-height:44px;transition:border-color .2s,background .2s;}
.hl-shop .form-row input.input-text:focus,.hl-shop .form-row textarea:focus{border-color:var(--g)!important;background:#fff!important;outline:none;}
.hl-shop .form-row.woocommerce-invalid input.input-text{border-color:#d9534f!important;background:#fff8f8!important;}
.hl-shop .form-row.woocommerce-validated input.input-text{border-color:var(--line)!important;}
.hl-shop .form-row .description{font-size:12px;color:var(--muted);margin-top:4px;}
.hl-shop .form-row-first,.hl-shop .form-row-last{width:calc(50% - 8px)!important;}
.hl-shop .form-row-first{float:right!important;}
.hl-shop .form-row-last{float:left!important;}
.hl-shop .woocommerce-billing-fields__field-wrapper::after{content:"";display:block;clear:both;}
.hl-shop .checkout-inline-error-message{font-size:12px;color:#b3261e;margin-top:4px;}

/* Course summary card */
.hl-co-sum{display:flex;flex-direction:column;gap:12px;}
.hl-co-course{display:flex;gap:12px;align-items:center;}
.hl-co-course img{width:72px;height:72px;border-radius:12px;object-fit:cover;flex:0 0 72px;}
.hl-co-course b{display:block;font-weight:900;color:var(--ink);line-height:1.7;font-size:14.5px;}
.hl-co-course ul{display:flex;flex-wrap:wrap;gap:4px 10px;list-style:none;margin:4px 0 0;padding:0;font-size:12px;color:var(--muted);}
.hl-co-course li{margin:0;}
.hl-co-course li:not(:last-child)::after{content:"·";margin-right:10px;color:#b9c4bf;}

/* Order table */
.hl-shop table.shop_table{border:0!important;border-collapse:collapse!important;margin:0 0 14px!important;width:100%;font-size:13.5px;}
.hl-shop table.shop_table th,.hl-shop table.shop_table td{border:0!important;border-bottom:1px solid var(--line)!important;padding:10px 4px!important;background:transparent!important;text-align:right;}
.hl-shop table.shop_table thead{display:none;}
.hl-shop table.shop_table .product-name{font-weight:600;}
.hl-shop table.shop_table td:last-child,.hl-shop table.shop_table th:last-child{text-align:left;}
.hl-shop table.shop_table .order-total th,.hl-shop table.shop_table .order-total td{border-bottom:0!important;font-size:16px;color:var(--g);font-weight:900;}
.hl-shop table.shop_table .product-quantity{display:none;}

/* Payment */
.hl-shop #payment{background:transparent!important;border-radius:0!important;}
.hl-shop #payment ul.payment_methods{border:0!important;padding:0!important;margin:0 0 12px!important;list-style:none;display:flex;flex-direction:column;gap:8px;}
.hl-shop #payment ul.payment_methods li{border:1.5px solid var(--line);border-radius:12px;padding:10px 12px!important;margin:0!important;background:#fbfcfb;}
.hl-shop #payment ul.payment_methods li:has(input:checked){border-color:var(--g);background:var(--gs);}
.hl-shop #payment ul.payment_methods li label{font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;}
.hl-shop #payment ul.payment_methods li img{max-height:24px;margin:0 6px;}
.hl-shop #payment div.payment_box{background:transparent!important;color:var(--muted)!important;font-size:12.5px;padding:6px 0 0!important;margin:0!important;}
.hl-shop #payment div.payment_box::before{display:none!important;}
.hl-shop #payment .place-order{padding:0!important;margin:0!important;}
.hl-shop .woocommerce-privacy-policy-text{font-size:11.5px;color:var(--muted);}
.hl-shop #place_order,.hl-shop .checkout-button,.hl-shop .wc-proceed-to-checkout a.checkout-button{display:block!important;width:100%!important;background:var(--g)!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:14px 18px!important;font-size:16px!important;font-weight:900!important;text-align:center;box-shadow:0 10px 24px -14px rgba(5,73,62,.9)!important;transition:background .2s,transform .2s;}
.hl-shop #place_order:hover,.hl-shop .checkout-button:hover{background:var(--g2)!important;transform:translateY(-1px);}
.hl-co-trust{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);}
.hl-co-trust li{position:relative;padding-right:18px;margin:0;}
.hl-co-trust li::before{content:"✓";position:absolute;right:0;color:var(--g);font-weight:900;}
.hl-co-trust a{color:var(--g)!important;font-weight:700;direction:ltr;unicode-bidi:isolate;}

/* Coupon */
.hl-shop .checkout_coupon{background:#fff;border:1px dashed var(--line)!important;border-radius:12px!important;padding:14px!important;}
.hl-shop .checkout_coupon button,.hl-shop .coupon button{background:#fff!important;color:var(--g)!important;border:1.5px solid var(--g)!important;border-radius:10px!important;font-weight:800!important;padding:8px 16px!important;}

/* Cart page */
.hl-shop .woocommerce-cart-form{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 16px;margin-bottom:18px;}
.hl-shop .woocommerce-cart-form table.shop_table thead{display:table-header-group;}
.hl-shop .woocommerce-cart-form table.shop_table th{color:var(--muted);font-size:12.5px;}
.hl-shop .woocommerce-cart-form .product-thumbnail img{width:56px!important;height:56px;border-radius:10px;object-fit:cover;}
.hl-shop .woocommerce-cart-form .product-name a{color:var(--ink)!important;font-weight:800;text-decoration:none!important;}
.hl-shop .woocommerce-cart-form a.remove{color:#b3261e!important;}
.hl-shop .woocommerce-cart-form .actions .button[name="update_cart"]{display:none!important;}
.hl-shop .cart-collaterals .cart_totals{float:none!important;width:100%!important;max-width:420px;margin-right:auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;}
.hl-shop .cart-collaterals .cart_totals h2{font-size:17px;color:var(--g);font-weight:900;margin:0 0 10px;}

@media (max-width:640px){
	.hl-shop .form-row-first,.hl-shop .form-row-last{width:100%!important;float:none!important;}
	.hl-co-steps li{font-size:11.5px;padding:8px;}
	.hl-shop #customer_details,.hl-shop #order_review,.hl-shop .hl-co-sum{padding:16px;}
}

/* ---------- 1.3.2 ---------- */
.hl-shop .form-row.place-order{display:block!important;}
.hl-co-trust{width:100%;flex:0 0 100%;margin-top:14px!important;gap:6px!important;font-size:12.5px!important;line-height:1.9;}
.hl-co-trust li{white-space:normal;word-break:normal;}
.hl-shop .woocommerce-form-coupon-toggle{display:none!important;}
.hl-coupon-row td{padding:14px 0 4px!important;border:0!important;background:transparent!important;}
.hl-coupon{display:flex;flex-direction:column;gap:8px;background:#f7faf8;border:1px dashed #cfdcd6;border-radius:12px;padding:14px;}
.hl-coupon label{font-size:13px;font-weight:800;color:var(--g);margin:0;}
.hl-coupon__f{display:flex;gap:8px;}
.hl-coupon__f input{flex:1;min-width:0;border:1.5px solid var(--line)!important;border-radius:10px!important;padding:9px 12px!important;background:#fff!important;font-family:inherit;font-size:14px;box-shadow:none!important;}
.hl-coupon__f input:focus{border-color:var(--g)!important;outline:none;}
.hl-shop .hl-coupon__btn{flex:0 0 auto;font-family:inherit;background:#fff!important;color:var(--g)!important;border:1.5px solid var(--g)!important;border-radius:10px!important;font-weight:800!important;padding:8px 18px!important;cursor:pointer;line-height:1.6;}
.hl-shop .hl-coupon__btn:hover{background:var(--gs)!important;}
.hl-shop .hl-coupon__btn[disabled]{opacity:.6;cursor:wait;}
.hl-coupon__msg{margin:0;font-size:12.5px;line-height:1.8;}
.hl-coupon__msg:empty{display:none;}
.hl-coupon__msg.is-ok{color:var(--g);}
.hl-coupon__msg.is-err{color:#b3261e;}
.hl-shop .woocommerce-form-login-toggle .woocommerce-info{font-size:14px;}
.hl-shop form.woocommerce-form-login{background:#fff;border:1px solid var(--line)!important;border-radius:14px!important;padding:18px 20px!important;margin:0 0 18px!important;}
.hl-shop form.woocommerce-form-login > p:first-child{color:var(--muted);font-size:13.5px;line-height:2;margin-bottom:14px;}
