/* Scoped WooCommerce styles: cart, checkout and single-product purchase area. */
.ys-purchase-row{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px;direction:rtl}
.ys-purchase-price{background:#003471;color:#fff;border-radius:10px;padding:10px 14px;font-size:17px;line-height:1.7;font-weight:600}
.ys-purchase-price .amount,.ys-purchase-price bdi,.ys-purchase-price del,.ys-purchase-price ins{color:inherit}
.ys-purchase-cart form.cart{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
.ys-purchase-cart form.cart .quantity{display:none!important}
.ys-purchase-cart .single_add_to_cart_button{background:#16724a!important;color:white!important;border:0!important;border-radius:9px!important;padding:11px 20px!important;min-height:44px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;white-space:nowrap}
.ys-purchase-cart .single_add_to_cart_button:hover{background:#115b3b!important}
.ys-purchase-cart .single_add_to_cart_button:disabled{opacity:.5;cursor:not-allowed}
.ys-purchase-cart .variations{margin:0 0 10px;width:100%;border:0}
.ys-purchase-cart .variations td{padding:4px;border:0}
.ys-purchase-cart .variations select{max-width:100%;border-radius:8px;padding:8px;border:1px solid #d8dee7}
.ys-purchase-cart .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:8px}
.ys-purchase-cart .woocommerce-variation-price{margin:0 0 8px}
body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{direction:rtl;text-align:right;line-height:1.8;color:#263346}
body.woocommerce-cart .woocommerce *,body.woocommerce-checkout .woocommerce *{box-sizing:border-box}
body.woocommerce-cart .woocommerce table.shop_table,body.woocommerce-checkout .woocommerce table.shop_table{border:1px solid #e3e8ef;border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff;width:100%;margin:0 0 20px}
body.woocommerce-cart .woocommerce table.shop_table th,body.woocommerce-cart .woocommerce table.shop_table td,body.woocommerce-checkout .woocommerce table.shop_table th,body.woocommerce-checkout .woocommerce table.shop_table td{padding:13px 14px;border:0;border-bottom:1px solid #edf0f4;text-align:right;vertical-align:middle}
body.woocommerce-cart .woocommerce table.shop_table tr:last-child td,body.woocommerce-checkout .woocommerce table.shop_table tr:last-child td{border-bottom:0}
body.woocommerce-cart .woocommerce table.shop_table thead th,body.woocommerce-checkout .woocommerce table.shop_table thead th{background:#f5f7fa;color:#24364d;font-weight:700}
body.woocommerce-cart .woocommerce .cart_totals,body.woocommerce-checkout .woocommerce #order_review,body.woocommerce-checkout .woocommerce .woocommerce-checkout-payment{background:#fff;border:1px solid #e3e8ef;border-radius:12px;padding:18px;margin-bottom:18px}
body.woocommerce-cart .woocommerce .cart_totals h2,body.woocommerce-checkout .woocommerce h3{font-size:19px;margin:0 0 16px;color:#193654}
body.woocommerce-cart .woocommerce input.input-text,body.woocommerce-checkout .woocommerce input.input-text,body.woocommerce-checkout .woocommerce select,body.woocommerce-checkout .woocommerce textarea{border:1px solid #d6dee8;border-radius:8px;padding:10px 12px;min-height:43px;max-width:100%;background:#fff;font:inherit}
body.woocommerce-cart .woocommerce input.input-text:focus,body.woocommerce-checkout .woocommerce input.input-text:focus,body.woocommerce-checkout .woocommerce textarea:focus{outline:2px solid #bed3eb;outline-offset:0;border-color:#799fc9}
body.woocommerce-cart .woocommerce .button,body.woocommerce-checkout .woocommerce .button,body.woocommerce-cart .woocommerce a.checkout-button,body.woocommerce-checkout .woocommerce #place_order{background:#003471;color:#fff;border:0;border-radius:8px;padding:12px 20px;line-height:1.5;font-family:inherit;font-weight:600;text-decoration:none;cursor:pointer}
body.woocommerce-cart .woocommerce .button:hover,body.woocommerce-checkout .woocommerce .button:hover{background:#075092;color:#fff}
body.woocommerce-cart .woocommerce .quantity .qty{max-width:75px;text-align:center}
body.woocommerce-cart .woocommerce .product-thumbnail img{width:68px;height:auto;border-radius:8px}
body.woocommerce-cart .woocommerce a,body.woocommerce-checkout .woocommerce a{color:#003471}
body.woocommerce-cart .woocommerce .woocommerce-message,body.woocommerce-cart .woocommerce .woocommerce-info,body.woocommerce-checkout .woocommerce .woocommerce-message,body.woocommerce-checkout .woocommerce .woocommerce-info{background:#f2f7fc;border:1px solid #dce7f3;border-radius:8px;color:#263346;padding:14px 20px;margin-bottom:18px}
body.woocommerce-checkout .woocommerce .form-row{margin-bottom:13px}
body.woocommerce-checkout .woocommerce .form-row label{font-weight:600;margin-bottom:5px}
body.woocommerce-checkout .woocommerce .select2-container .select2-selection{height:43px;border-color:#d6dee8;border-radius:8px}
body.woocommerce-checkout .woocommerce .select2-container .select2-selection__rendered{line-height:41px}
body.woocommerce-checkout .woocommerce .select2-container .select2-selection__arrow{height:41px}
/* WooCommerce block cart and checkout */
body.woocommerce-cart .wp-block-woocommerce-cart,body.woocommerce-checkout .wp-block-woocommerce-checkout{direction:rtl;text-align:right;max-width:1150px;margin-inline:auto}
body.woocommerce-cart .wc-block-components-sidebar,body.woocommerce-checkout .wc-block-components-sidebar,body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step{border:1px solid #e3e8ef;border-radius:12px;background:#fff;padding:18px}
body.woocommerce-cart .wc-block-components-button,body.woocommerce-checkout .wc-block-components-button{border-radius:8px;background:#003471;color:#fff;min-height:46px}
body.woocommerce-cart .wc-block-components-text-input input,body.woocommerce-checkout .wc-block-components-text-input input{border-radius:8px}
@media(max-width:767px){.ys-purchase-row{gap:8px}.ys-purchase-price{font-size:15px}.ys-purchase-cart .single_add_to_cart_button{padding:10px 14px!important}body.woocommerce-cart .woocommerce table.shop_table th,body.woocommerce-cart .woocommerce table.shop_table td{padding:9px}body.woocommerce-cart .woocommerce .cart_totals,body.woocommerce-checkout .woocommerce #order_review{padding:12px}}

/* Checkout layout correction — intentionally scoped to checkout only. */
body.woocommerce-checkout:not(.woocommerce-order-received) #MainBox,
body.woocommerce-checkout:not(.woocommerce-order-received) #MainBox .Row.page-content,
body.woocommerce-checkout:not(.woocommerce-order-received) #MainBox .Row.page-content > article {
    width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
body.woocommerce-checkout .Row.page-content > article > .woocommerce,
body.woocommerce-checkout .Row.page-content > article > .woocommerce > form.checkout,
body.woocommerce-checkout form.woocommerce-checkout,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width:100%;max-width:none;min-width:0;box-sizing:border-box;
}
body.woocommerce-checkout .woocommerce form.checkout {display:block;clear:both;margin:20px auto;max-width:1180px;}
body.woocommerce-checkout .woocommerce #customer_details {display:block;clear:both;margin-bottom:24px;}
body.woocommerce-checkout .woocommerce #customer_details:after {content:"";display:table;clear:both;}
body.woocommerce-checkout .woocommerce #customer_details .col-1,
body.woocommerce-checkout .woocommerce #customer_details .col-2 {float:none;display:block;margin:0 0 18px;padding:0;}
body.woocommerce-checkout .woocommerce .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce .woocommerce-additional-fields {
    background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:22px;margin-bottom:18px;
}
body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:14px;
}
body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row {
    width:auto!important;max-width:none!important;min-width:0;float:none!important;clear:none!important;
    display:block;margin:0!important;padding:0!important;
}
/* Only genuinely short fields share a row. Address, contact and geographic selectors remain wide. */
body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row:not(#billing_first_name_field):not(#billing_last_name_field),
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row:not(#shipping_first_name_field):not(#shipping_last_name_field) {grid-column:1 / -1;}
body.woocommerce-checkout .woocommerce .form-row label {display:block;width:100%;margin:0 0 6px;text-align:right;line-height:1.7;font-size:13px;color:#263346;}
body.woocommerce-checkout .woocommerce .form-row .woocommerce-input-wrapper {display:block;width:100%;min-width:0;}
body.woocommerce-checkout .woocommerce .form-row input.input-text,
body.woocommerce-checkout .woocommerce .form-row select,
body.woocommerce-checkout .woocommerce .form-row textarea,
body.woocommerce-checkout .woocommerce .form-row .select2-container {
    display:block;width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box;
}
body.woocommerce-checkout .woocommerce .form-row input.input-text,
body.woocommerce-checkout .woocommerce .form-row select {min-height:44px;}
body.woocommerce-checkout .woocommerce .form-row textarea {min-height:105px;resize:vertical;}
body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single {height:44px;}
body.woocommerce-checkout .woocommerce .select2-container .select2-selection__rendered {line-height:42px;text-align:right;padding-right:12px;padding-left:25px;}
body.woocommerce-checkout .woocommerce .select2-container .select2-selection__arrow {height:42px;left:5px;right:auto;}
body.woocommerce-checkout .woocommerce #order_review_heading {clear:both;margin-top:22px;}
body.woocommerce-checkout .woocommerce #order_review {clear:both;width:100%;max-width:100%;box-sizing:border-box;}
body.woocommerce-checkout .woocommerce #payment {margin-top:18px;}
/* Checkout plugins sometimes wrap the classic fields in additional row containers. */
body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > p,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > p {text-align:right;}
@media (max-width:700px) {
    body.woocommerce-checkout .woocommerce form.checkout {margin:12px auto;}
    body.woocommerce-checkout .woocommerce .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce .woocommerce-additional-fields {padding:14px;}
    body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper {grid-template-columns:minmax(0,1fr);gap:12px;}
    body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row,
    body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row {grid-column:1 / -1;}
}
