/* Scoped to classic WooCommerce cart and checkout. No change to homepage or product templates. */
body.woocommerce-cart,body.woocommerce-checkout{--sgp-blue:#087aef;--sgp-deep:#103257;--sgp-border:#dce7f4;--sgp-paper:#fff;--sgp-bg:#edf4fd}
body.woocommerce-cart .entry-content,body.woocommerce-checkout .entry-content,body.woocommerce-cart .sg-content,body.woocommerce-checkout .sg-content{max-width:1350px;margin-inline:auto}
body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{direction:rtl;font-family:inherit;color:var(--sgp-deep);max-width:1280px;margin:30px auto 65px;padding:0 18px}
body.woocommerce-cart .woocommerce *,body.woocommerce-checkout .woocommerce *{box-sizing:border-box}
.sgp-banner{position:relative;min-height:145px;overflow:hidden;padding:30px 38px;margin:0 0 22px;border-radius:24px;background:linear-gradient(112deg,#eaf5ff 0%,#b8d8fb 52%,#2b82db 100%);color:#103257;box-shadow:0 12px 38px #1f66b018}
.sgp-banner:before,.sgp-banner:after{content:"";position:absolute;border:1px solid #ffffff85;border-radius:50%;width:350px;height:350px;left:-110px;top:-190px;pointer-events:none}.sgp-banner:after{width:440px;height:440px;top:-210px;left:15%;border-color:#ffffff45}
.sgp-banner h1{font-size:clamp(27px,3vw,42px)!important;line-height:1.4!important;margin:4px 0!important;color:#103257!important;font-weight:850!important}.sgp-banner p{margin:0;color:#355575}.sgp-eyebrow{color:#076ace;font-size:11px;letter-spacing:2px;font-weight:800}.sgp-banner-symbol{position:absolute;left:8%;top:25%;font-size:57px;opacity:.28}.sgp-checkout-banner{background:linear-gradient(112deg,#d4e9ff,#6bb0f5 65%,#1672d6);color:#fff}.sgp-checkout-banner h1,.sgp-checkout-banner p,.sgp-checkout-banner .sgp-eyebrow{color:white!important}.sgp-progress{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px;font-size:12px}.sgp-progress span{border:1px solid #ffffff77;border-radius:99px;padding:6px 12px;background:#ffffff22}
body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,body.woocommerce-checkout .woocommerce-billing-fields,body.woocommerce-checkout .woocommerce-additional-fields,body.woocommerce-checkout #order_review{background:#fff;border:1px solid var(--sgp-border);border-radius:24px;padding:24px;box-shadow:0 8px 30px #1f60a410;min-width:0}
body.woocommerce-cart .woocommerce-cart-form{width:65%;float:right}body.woocommerce-cart .cart-collaterals{width:33%;float:left}body.woocommerce-cart .cart-collaterals .cart_totals{float:none;width:100%!important}
body.woocommerce-cart .woocommerce:after{content:"";display:block;clear:both}
body.woocommerce-cart table.shop_table,body.woocommerce-checkout table.shop_table{border:0;border-collapse:separate;border-spacing:0 8px;width:100%;text-align:right}
body.woocommerce-cart table.shop_table th,body.woocommerce-cart table.shop_table td,body.woocommerce-checkout table.shop_table th,body.woocommerce-checkout table.shop_table td{border:0;border-bottom:1px solid #e7eef8;padding:14px 8px;vertical-align:middle}
body.woocommerce-cart td.product-thumbnail img,body.woocommerce-checkout .product-name img{width:82px;max-width:82px;aspect-ratio:1;object-fit:contain;background:#f1f6ff;border-radius:14px}
body.woocommerce-cart td.product-name a{font-weight:750;color:#122d51}body.woocommerce-cart .cart_totals h2{font-size:23px;color:#102e51}
body.woocommerce-cart .quantity input.qty{width:65px!important;min-height:42px;border:1px solid #dae5f1;border-radius:12px}
body.woocommerce-cart .coupon input,body.woocommerce-checkout input.input-text,body.woocommerce-checkout textarea,body.woocommerce-checkout select,body.woocommerce-cart .input-text{background:#f8fbff!important;border:1px solid #cedbed!important;border-radius:12px!important;min-height:46px;padding:10px 13px!important;color:#193855!important;width:100%;max-width:100%;box-shadow:none!important}
body.woocommerce-checkout .select2-container .select2-selection--single{height:46px;background:#f8fbff;border:1px solid #cedbed;border-radius:12px}body.woocommerce-checkout .select2-container .select2-selection__rendered{line-height:44px;padding-inline:12px}body.woocommerce-checkout .select2-container .select2-selection__arrow{height:43px}
body.woocommerce-cart button.button,body.woocommerce-cart a.checkout-button,body.woocommerce-checkout #place_order,body.woocommerce-cart .button,body.woocommerce-checkout .button{border:0!important;border-radius:13px!important;color:#fff!important;background:linear-gradient(120deg,#0e96ff,#0759cb)!important;padding:14px 20px!important;font-weight:750!important;box-shadow:0 6px 18px #0c77dc29;min-height:45px}
body.woocommerce-cart a.checkout-button,body.woocommerce-checkout #place_order{width:100%;display:block;font-size:17px!important}
body.woocommerce-checkout #customer_details{width:63%;float:right;padding-inline-end:14px}body.woocommerce-checkout #order_review_heading{display:none}body.woocommerce-checkout #order_review{width:36%;float:left;margin:0}body.woocommerce-checkout form.checkout:after{content:"";display:block;clear:both}
body.woocommerce-checkout .woocommerce-billing-fields h3,body.woocommerce-checkout .woocommerce-additional-fields h3{font-size:23px;font-weight:800;color:#102d4f;margin:0 0 22px}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{display:flex;flex-wrap:wrap;column-gap:3%}body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row{width:100%;float:none;margin:0 0 14px}body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last{width:48.5%}
body.woocommerce-checkout .form-row label{font-size:13px;font-weight:750;color:#183855;margin-bottom:6px}body.woocommerce-checkout .sg-hide-company{display:none!important}
body.woocommerce-checkout #roadfn-checkout-location{background:#fff;border:1px solid var(--sgp-border);border-radius:24px;padding:22px;margin:16px 0;clear:both}body.woocommerce-checkout #roadfn-checkout-location h3{font-size:21px;color:#103457;margin:0 0 12px}body.woocommerce-checkout #roadfn-checkout-location:before{content:'📍  يتم حساب رسوم التوصيل بعد اختيار المدينة والمنطقة';display:block;color:#266ca7;font-size:12px;margin-bottom:10px}body.woocommerce-checkout #roadfn-checkout-location .form-row{width:48%;display:inline-block;float:none;vertical-align:top;margin-inline-end:2%}
body.woocommerce-checkout #payment{background:#f1f7ff!important;border-radius:18px!important;margin-top:18px}body.woocommerce-checkout #payment .payment_box{background:#fff!important}body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th{font-weight:750}body.woocommerce-checkout #order_review:before{content:'🛍  ملخص الطلب';display:block;font-weight:850;font-size:23px;color:#12345b;margin-bottom:12px}
body.woocommerce-cart .woocommerce-notices-wrapper,body.woocommerce-checkout .woocommerce-notices-wrapper{clear:both}
@media(max-width:950px){body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,body.woocommerce-checkout #customer_details,body.woocommerce-checkout #order_review{width:100%;float:none;padding-inline:15px;margin:0 0 18px}body.woocommerce-checkout #customer_details{padding:0}body.woocommerce-cart .cart-collaterals{margin-top:18px}}
@media(max-width:600px){.sgp-banner{border-radius:18px;padding:20px;min-height:128px}.sgp-banner-symbol{font-size:32px;left:7%}.sgp-progress{gap:5px;font-size:11px}body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{padding:0 10px;margin:15px auto 35px}body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,body.woocommerce-checkout #roadfn-checkout-location .form-row{width:100%}body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,body.woocommerce-checkout .woocommerce-billing-fields,body.woocommerce-checkout #order_review{padding:13px;border-radius:17px}body.woocommerce-cart table.shop_table td,body.woocommerce-cart table.shop_table th{padding:10px 5px;font-size:12px}body.woocommerce-cart td.product-thumbnail img{width:56px}body.woocommerce-cart .coupon input{margin:0 0 8px!important}}
@media(prefers-reduced-motion:no-preference){.sgp-banner{background-size:130% 130%;animation:sgpGlow 10s ease-in-out infinite alternate}@keyframes sgpGlow{to{background-position:100% 50%}}}

/* v1.1 - ensure theme-specific page wrappers and Classic checkout fit full width */
body.sgp-cart-page .sg-container.sg-content,body.sgp-checkout-page .sg-container.sg-content{width:min(100% - 28px,1400px);max-width:1400px;margin-inline:auto;min-width:0}
body.sgp-cart-page .sg-container.sg-content>.woocommerce,body.sgp-checkout-page .sg-container.sg-content>.woocommerce{width:100%;max-width:1330px;margin-inline:auto}
body.sgp-cart-page .sg-container.sg-content>h1,body.sgp-checkout-page .sg-container.sg-content>h1{display:none}
body.sgp-cart-page .woocommerce-cart-form,body.sgp-cart-page .cart-collaterals,body.sgp-checkout-page .woocommerce-billing-fields,body.sgp-checkout-page #order_review{overflow-wrap:anywhere}
body.sgp-cart-page .woocommerce .shop_table,body.sgp-checkout-page .woocommerce .shop_table{max-width:100%}
body.sgp-checkout-page #customer_details::after{content:"";display:table;clear:both}
body.sgp-checkout-page .woocommerce-checkout-payment{clear:both}
@media(max-width:950px){body.sgp-checkout-page #customer_details,body.sgp-checkout-page #order_review,body.sgp-cart-page .woocommerce-cart-form,body.sgp-cart-page .cart-collaterals{width:100%!important;float:none!important}}
