/**
 * Bayaa Multi-Vendor - Luxury Arabic Checkout Stylesheet
 * Strict adherence to Brand Bible:
 * - Deep Navy: #0F2A4A
 * - Vivid Orange: #FF6B00
 * - Clean White: #FFFFFF
 * - Cairo Font strictly enforced
 * - Solid colors only (NO GRADIENTS)
 */

/* ========================================================
   Global Font & Container Enforcements on Checkout
   ======================================================== */
.woocommerce-checkout .woocommerce,
.woocommerce-checkout form.woocommerce-checkout,
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-checkout .elementor-widget-woocommerce-checkout-page,
.woocommerce-checkout .bayaa-checkout-header-wrapper,
.woocommerce-checkout .bayaa-checkout-guarantees,
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .wp-block-post-title,
.woocommerce-order-received .woocommerce-order,
.woocommerce-order-received .bayaa-thankyou-celebration-wrap {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box;
}

.woocommerce-checkout .woocommerce *:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab),
.woocommerce-checkout .wp-block-woocommerce-checkout *:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab),
.woocommerce-checkout .bayaa-checkout-header-wrapper *,
.woocommerce-checkout .bayaa-checkout-guarantees *,
.woocommerce-order-received .woocommerce-order * {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box;
}

/* Preserve WordPress Admin Bar Dashicons & Layout */
#wpadminbar,
#wpadminbar * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
#wpadminbar .dashicons,
#wpadminbar .dashicons-before::before,
.dashicons,
.dashicons-before::before {
  font-family: dashicons !important;
}

body.woocommerce-checkout,
body.woocommerce-page.woocommerce-checkout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background-color: #f8fafc;
}

.woocommerce-checkout .entry-header,
.woocommerce-checkout .page-header,
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .wp-block-post-title {
  max-width: 1280px !important;
  margin: 18px auto 10px auto !important;
  padding: 6px 20px 0 20px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #0F2A4A !important;
  text-align: right !important;
  direction: rtl !important;
}

.woocommerce-checkout #page,
.woocommerce-checkout .site,
.woocommerce-checkout .site-content,
.woocommerce-checkout .site-main {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure Header & Footer on Checkout are 100% Full Width Edge-to-Edge */
.woocommerce-checkout .bayaa-header-wrapper,
.woocommerce-checkout #bayaa-marketplace-header,
.woocommerce-checkout .bayaa-footer-wrapper,
.woocommerce-checkout #bayaa-marketplace-footer,
.woocommerce-checkout .elementor-location-header,
.woocommerce-checkout .elementor-location-footer,
.woocommerce-checkout header.site-header,
.woocommerce-checkout footer.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Inner Checkout Content Container Only */
.woocommerce-checkout .woocommerce,
form.woocommerce-checkout {
  max-width: 1280px;
  margin: 30px auto 60px;
  padding: 0 20px;
  direction: rtl;
  text-align: right;
  color: #1e293b;
  box-sizing: border-box;
}

/* ========================================================
   1. Checkout Progress Header & Trust Bar
   ======================================================== */
.bayaa-checkout-header-wrapper {
  max-width: 1280px;
  margin: 24px auto 26px auto;
  padding: 0 20px;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}

.woocommerce .bayaa-checkout-header-wrapper {
  padding: 0;
  margin-top: 0;
}

.bayaa-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 42, 74, 0.04);
  margin-bottom: 16px;
}

.bayaa-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.bayaa-step-item.active {
  color: #0F2A4A;
  font-weight: 800;
}

.bayaa-step-item.completed {
  color: #16A34A;
}

.bayaa-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
}

.bayaa-step-item.active .bayaa-step-circle {
  background: #0F2A4A;
  color: #ffffff;
  border-color: #0F2A4A;
  box-shadow: 0 0 0 4px rgba(15, 42, 74, 0.12);
}

.bayaa-step-item.completed .bayaa-step-circle {
  background: #16A34A;
  color: #ffffff;
  border-color: #16A34A;
}

.bayaa-step-divider {
  flex: 1;
  max-width: 72px;
  min-width: 18px;
  height: 2px;
  background: #e2e8f0;
}

.bayaa-step-divider.active {
  background: #16A34A;
}

/* Trust Bar */
.bayaa-checkout-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bayaa-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 42, 74, 0.03);
}

.bayaa-trust-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0F2A4A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bayaa-trust-bar-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0F2A4A;
}

.bayaa-trust-bar-text small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* ========================================================
   2. Main Checkout Two-Column Layout (Reset Theme Floats)
   ======================================================== */
form.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 440px !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100%;
}

form.woocommerce-checkout::before,
form.woocommerce-checkout::after {
  display: none !important;
  content: none !important;
}

/* Full-width notices, alerts, login & coupon toggles */
.woocommerce-NoticeGroup-checkout,
.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle,
form.woocommerce-form-login {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}

.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout ul.woocommerce-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-right: 4px solid #dc2626 !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  color: #991b1b !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  list-style: none !important;
}

.woocommerce-info {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-right: 4px solid #0F2A4A !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  color: #0F2A4A !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.woocommerce-info a {
  color: #FF6B00 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}

/* Coupon Form */
form.checkout_coupon {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

form.checkout_coupon input.input-text {
  flex: 1;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px;
}

form.checkout_coupon button.button {
  background: #0F2A4A !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  height: 44px !important;
  padding: 0 24px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

/* ========================================================
   3. Customer Details (Right Column)
   ======================================================== */
#customer_details,
.woocommerce-checkout #customer_details.col2-set {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-checkout p.form-row label.woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.woocommerce-checkout p.form-row input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  accent-color: #FF6B00 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 14px 0 !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  color: #475569 !important;
}

/* Select2 Dropdown attached to body */
body > .select2-container .select2-dropdown {
  border: 1.5px solid #0F2A4A !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(15, 42, 74, 0.14) !important;
  overflow: hidden !important;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
}

body > .select2-container .select2-search__field {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-family: 'Cairo', sans-serif !important;
  text-align: right !important;
}

body > .select2-container .select2-results__option--highlighted[aria-selected] {
  background-color: #0F2A4A !important;
  color: #ffffff !important;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(15, 42, 74, 0.03);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 800;
  color: #0F2A4A;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 12px;
}

.woocommerce-billing-fields h3::before {
  content: '📍';
  font-size: 20px;
}

.woocommerce-additional-fields h3::before {
  content: '📝';
  font-size: 20px;
}

.woocommerce-shipping-fields h3::before {
  content: '🚚';
  font-size: 20px;
}

/* Form Fields Styling */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

p.form-row {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: span 2;
}

p.form-row.form-row-first,
p.form-row.form-row-last,
p.form-row.bayaa-field-half {
  grid-column: span 1;
}

p.form-row label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F2A4A;
  margin: 0;
}

p.form-row label .required {
  color: #ef4444 !important;
  text-decoration: none !important;
}

p.form-row .woocommerce-input-wrapper {
  position: relative;
  width: 100%;
}

p.form-row input.input-text,
p.form-row textarea,
p.form-row select,
.select2-container--default .select2-selection--single {
  width: 100% !important;
  height: 46px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #0F2A4A !important;
  background-color: #ffffff !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

p.form-row textarea {
  height: 90px !important;
  resize: vertical;
}

p.form-row input.input-text:focus,
p.form-row textarea:focus,
p.form-row select:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #0F2A4A !important;
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.12) !important;
  background-color: #ffffff !important;
}

/* Select2 Tweaks */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-right: 10px !important;
  color: #0F2A4A !important;
  font-weight: 600 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  left: 10px !important;
  right: auto !important;
}

/* Ship to different address checkbox */
#ship-to-different-address {
  margin: 0 0 16px 0;
}

#ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #0F2A4A;
}

/* ========================================================
   4. Order Review Sidebar (Left Column)
   ======================================================== */
#order_review_heading {
  display: none; /* Replaced by card title */
}

#order_review {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 42, 74, 0.06);
  position: sticky;
  top: 96px;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0 !important;
}

#order_review::before {
  content: '📋 ملخص الطلب والمنتجات';
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0F2A4A;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
}

/* Review Table */
table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 24px !important;
  border: none !important;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
  padding: 12px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top: none !important;
  font-size: 14px !important;
  text-align: right !important;
}

table.woocommerce-checkout-review-order-table thead {
  display: none; /* Cleaner modern aesthetic */
}

/* Cart Item Row */
.bayaa-checkout-item-meta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bayaa-checkout-thumb-box {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.bayaa-checkout-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bayaa-checkout-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bayaa-checkout-item-vendor {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F2A4A;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

table.woocommerce-checkout-review-order-table .product-name {
  color: #0F2A4A !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

table.woocommerce-checkout-review-order-table .product-total {
  text-align: left !important;
  font-weight: 800 !important;
  color: #0F2A4A !important;
  white-space: nowrap !important;
}

/* Table Totals (tfoot) */
table.woocommerce-checkout-review-order-table tfoot th {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

table.woocommerce-checkout-review-order-table tfoot td {
  text-align: left !important;
  font-weight: 700 !important;
  color: #0F2A4A !important;
}

/* Shipping Breakdown in Review Table - Full Width Cards */
tr.woocommerce-shipping-totals {
  background: #f8fafc;
  border-radius: 12px;
}

tr.woocommerce-shipping-totals th,
tr.woocommerce-shipping-totals td {
  display: block !important;
  width: 100% !important;
  text-align: right !important;
  padding: 12px 14px !important;
}

tr.woocommerce-shipping-totals th {
  color: #0F2A4A !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border-bottom: none !important;
  padding-bottom: 6px !important;
}

tr.woocommerce-shipping-totals td {
  padding-top: 0 !important;
}

ul#shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

ul#shipping_method li {
  margin: 0 !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s !important;
}

ul#shipping_method li:hover {
  border-color: #cbd5e1 !important;
}

ul#shipping_method li.bayaa-selected-shipping,
ul#shipping_method li:has(input[type="radio"]:checked) {
  border-color: #FF6B00 !important;
  background: #fff7ed !important;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1) !important;
}

ul#shipping_method li input.shipping_method {
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: #FF6B00 !important;
  cursor: pointer !important;
}

ul#shipping_method li label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: block !important;
}

.bayaa-shipping-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.bayaa-shipping-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.bayaa-shipping-option-logo,
.bayaa-block-shipping-logo {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  object-fit: contain !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 3px !important;
  display: block !important;
  box-sizing: border-box !important;
}

.bayaa-shipping-option-logo-fallback {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bayaa-shipping-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.bayaa-shipping-option-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F2A4A;
  line-height: 1.35;
}

.bayaa-shipping-option-time {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.bayaa-shipping-option-price {
  font-size: 13.5px;
  font-weight: 900;
  color: #0F2A4A;
  white-space: nowrap;
  flex-shrink: 0;
}

.bayaa-shipping-free {
  color: #16a34a;
  font-weight: 800;
}

/* Total Row */
tr.order-total {
  border-top: 2px solid #0F2A4A !important;
  border-bottom: 2px solid #0F2A4A !important;
}

tr.order-total th {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #0F2A4A !important;
  padding: 16px 0 !important;
}

tr.order-total td {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #FF6B00 !important;
  padding: 16px 0 !important;
}

/* ========================================================
   5. Payment Gateway Methods
   ======================================================== */
#payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#payment ul.payment_methods {
  list-style: none !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  border: none !important;
}

#payment ul.payment_methods li.wc_payment_method {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  position: relative !important;
}

#payment ul.payment_methods li.wc_payment_method:hover {
  background: #ffffff !important;
  border-color: #0F2A4A !important;
}

#payment ul.payment_methods li.wc_payment_method.bayaa-selected-method,
#payment ul.payment_methods li.wc_payment_method:has(input:checked) {
  background: #ffffff !important;
  border-color: #0F2A4A !important;
  box-shadow: 0 2px 10px rgba(15, 42, 74, 0.08) !important;
}

#payment ul.payment_methods li.wc_payment_method label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0F2A4A !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"] {
  accent-color: #FF6B00 !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
}

#payment ul.payment_methods li.wc_payment_method .payment_box {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  margin: 12px 0 0 0 !important;
  border: none !important;
}

#payment ul.payment_methods li.wc_payment_method .payment_box::before {
  display: none !important;
}

/* ========================================================
   6. Place Order Button & Guarantees Card
   ======================================================== */
.place-order {
  padding: 0 !important;
  margin: 0 !important;
}

button#place_order,
.bayaa-checkout-submit-btn {
  width: 100% !important;
  height: 54px !important;
  background-color: #FF6B00 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25) !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
}

button#place_order:hover,
.bayaa-checkout-submit-btn:hover {
  background-color: #E05E00 !important;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Guarantees Badges Strip (Used both standalone and inside #order_review) */
.bayaa-checkout-guarantees {
  max-width: 1280px;
  margin: 20px auto 48px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
}

#order_review .bayaa-checkout-guarantees,
.wc-block-checkout__sidebar .bayaa-checkout-guarantees {
  max-width: 100%;
  margin: 18px 0 0 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bayaa-guarantee-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0F2A4A;
  box-shadow: 0 2px 6px rgba(15, 42, 74, 0.03);
}

#order_review .bayaa-guarantee-badge {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2px 0;
  font-size: 12px;
}

.bayaa-guarantee-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* Satisfaction Guarantees Card */
.bayaa-order-guarantees-card {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.bayaa-guarantee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bayaa-g-icon {
  font-size: 22px;
  line-height: 1;
}

.bayaa-g-text strong {
  display: block;
  font-size: 13px;
  color: #0F2A4A;
  font-weight: 800;
}

.bayaa-g-text span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.bayaa-g-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.bayaa-g-badges span {
  font-size: 11.5px;
  font-weight: 700;
  color: #16A34A;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

/* ========================================================
   7. Thank You / Order Confirmation Page
   ======================================================== */
.bayaa-thankyou-celebration-wrap,
.bayaa-thankyou-hero-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 26px;
  box-shadow: 0 6px 20px rgba(15, 42, 74, 0.05);
}

.bayaa-celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.bayaa-thankyou-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.bayaa-thankyou-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 900;
  color: #0F2A4A;
}

.bayaa-thankyou-subtitle,
.bayaa-thankyou-desc {
  margin: 0 auto;
  max-width: 620px;
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.7;
}

.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title {
  font-size: 18px;
  font-weight: 800;
  color: #0F2A4A;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 12px;
  margin: 0 0 18px 0;
}

.bayaa-thankyou-steps-hint {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bayaa-hint-step {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
}

.bayaa-hint-step.active {
  background: #0F2A4A;
  color: #ffffff;
}

/* Order overview list */
ul.woocommerce-order-overview {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  list-style: none !important;
  margin-bottom: 30px !important;
}

ul.woocommerce-order-overview li {
  border-left: 1px solid #f1f5f9 !important;
  border-right: none !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  color: #64748b !important;
}

ul.woocommerce-order-overview li strong {
  display: block !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0F2A4A !important;
  margin-top: 4px !important;
}

/* ========================================================
   8. Responsive Mobile Breakpoints
   ======================================================== */
@media (max-width: 992px) {
  form.woocommerce-checkout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .bayaa-checkout-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .bayaa-checkout-guarantees {
    grid-template-columns: 1fr;
  }

  #order_review {
    position: static;
  }

  .wc-block-checkout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
}

@media (max-width: 640px) {
  .woocommerce-checkout .woocommerce,
  form.woocommerce-checkout,
  .wp-block-woocommerce-checkout,
  .elementor-widget-woocommerce-checkout-page,
  .wpr-woo-checkout {
    padding: 0 12px !important;
    margin: 16px auto 40px !important;
  }

  .bayaa-checkout-header-wrapper {
    padding: 0 12px;
    margin-bottom: 18px;
  }

  .bayaa-checkout-steps {
    padding: 14px 12px;
    gap: 8px;
    overflow-x: auto;
    justify-content: space-between;
  }

  .bayaa-step-item {
    flex-direction: column;
    gap: 5px;
    font-size: 11.5px;
    text-align: center;
  }

  .bayaa-step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .bayaa-step-divider {
    max-width: 36px;
    margin-top: -16px;
  }

  .bayaa-checkout-trust-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .woocommerce-billing-fields,
  .woocommerce-shipping-fields,
  .woocommerce-additional-fields,
  #order_review {
    padding: 18px 16px;
    border-radius: 14px;
  }

  form.checkout_coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  p.form-row.form-row-first,
  p.form-row.form-row-last,
  p.form-row.bayaa-field-half {
    grid-column: span 2;
  }
}

/* ========================================================
   9. WooCommerce Gutenberg Blocks & Elementor Checkout Styles
   ======================================================== */
.wp-block-woocommerce-checkout,
.elementor-widget-woocommerce-checkout-page,
.wpr-woo-checkout {
  direction: rtl !important;
  text-align: right !important;
  max-width: 1280px !important;
  margin: 10px auto 60px !important;
  padding: 0 20px !important;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  color: #1E293B !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wp-block-woocommerce-checkout *,
.elementor-widget-woocommerce-checkout-page *,
.wpr-woo-checkout * {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box !important;
}

/* Master 2-Column Grid on Desktop for Checkout Block */
.wc-block-checkout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
  text-align: right !important;
}

@media (min-width: 992px) {
  .wc-block-checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 460px !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
  }
  .wc-block-checkout__main {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .wc-block-checkout__sidebar {
    width: 100% !important;
    position: sticky !important;
    top: 90px !important;
  }
}

/* Checkout Step Cards (معلومات جهة الاتصال وعنوان الشحن) */
.wc-block-components-checkout-step {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 18px !important;
  padding: 24px 26px !important;
  margin: 0 0 22px 0 !important;
  box-shadow: 0 2px 10px rgba(15, 42, 74, 0.03) !important;
  width: 100% !important;
  max-width: 100% !important;
}

.wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
  display: none !important;
}

.wc-block-components-checkout-step__container {
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
}

.wc-block-components-checkout-step__heading {
  margin: 0 0 18px 0 !important;
  padding: 0 0 12px 0 !important;
  border-bottom: 1.5px solid #F1F5F9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout h1,
.wp-block-woocommerce-checkout h2,
.wp-block-woocommerce-checkout h3 {
  color: #0F2A4A !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.wc-block-components-checkout-step__description {
  font-size: 13px !important;
  color: #64748B !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.6 !important;
}

/* Saved Address Card (بطاقة العنوان المحفوظ) */
.wc-block-components-address-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
}

.wc-block-components-address-card address {
  font-style: normal !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: #0F2A4A !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.wc-block-components-address-card__edit {
  background: #FFFFFF !important;
  color: #0F2A4A !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.wc-block-components-address-card__edit:hover {
  border-color: #0F2A4A !important;
  background: #F1F5F9 !important;
}

@media (min-width: 640px) {
  .wc-block-components-address-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .wc-block-components-address-form .wc-block-components-address-form__email,
  .wc-block-components-address-form .wc-block-components-address-form__address_1,
  .wc-block-components-address-form .wc-block-components-address-form__address_2,
  .wc-block-components-address-form .wc-block-components-address-form__country {
    grid-column: 1 / -1 !important;
  }
}

/* ========================================================
   Floating Labels & Inputs Fix (NO TEXT OVERLAPPING!)
   ======================================================== */
.wc-block-components-text-input,
.wc-block-components-combobox {
  position: relative !important;
  display: block !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  min-height: 56px !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-combobox select,
.wc-block-components-textarea textarea,
.elementor-widget-woocommerce-checkout-page input.input-text {
  width: 100% !important;
  height: 56px !important;
  padding: 22px 16px 6px 16px !important; /* Ample top room so floating label never collides! */
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0F2A4A !important;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 12px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  font-family: 'Cairo', sans-serif !important;
  text-align: right !important;
  direction: rtl !important;
}

.wc-block-components-textarea textarea {
  height: 96px !important;
  padding: 24px 16px 10px 16px !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox input:focus,
.wc-block-components-textarea textarea:focus,
.elementor-widget-woocommerce-checkout-page input.input-text:focus {
  border-color: #0F2A4A !important;
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.12) !important;
  background-color: #FFFFFF !important;
}

/* Floating Label Positioning in RTL */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-textarea label {
  position: absolute !important;
  right: 16px !important;
  left: auto !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Cairo', sans-serif !important;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  z-index: 2 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: calc(100% - 32px) !important;
}

/* Floating Label - Default / Empty Inactive state */
.wc-block-components-text-input:not(.is-active):not(:focus-within) label,
.wc-block-components-combobox:not(.is-active):not(:focus-within) label {
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
}

/* Floating Label - Active / Filled / Focused state */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label,
.wc-block-components-combobox.is-active label,
.wc-block-components-combobox:focus-within label,
.wc-block-components-textarea.is-active label,
.wc-block-components-textarea:focus-within label,
.wc-block-components-text-input input:focus ~ label,
.wc-block-components-text-input input:not(:placeholder-shown) ~ label {
  top: 7px !important;
  transform: translateY(0) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #0F2A4A !important;
}

/* ========================================================
   Order Summary Sidebar & Items Fix (NO DOUBLE NESTED CARDS)
   ======================================================== */
.wc-block-checkout__sidebar {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  box-shadow: 0 6px 24px rgba(15, 42, 74, 0.05) !important;
}

.wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-checkout__sidebar .wc-block-components-order-summary__content,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.wc-block-components-order-summary h2,
.wc-block-components-order-summary .wc-block-components-panel__button {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0F2A4A !important;
  border-bottom: 1.5px solid #F1F5F9 !important;
  padding: 0 0 12px 0 !important;
  margin: 0 0 14px 0 !important;
  width: 100% !important;
  text-align: right !important;
}

/* Product items in summary */
.wc-block-components-order-summary-item {
  border-bottom: 1px solid #F1F5F9 !important;
  padding: 14px 0 !important;
  display: grid !important;
  grid-template-columns: 60px minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 12px !important;
  width: 100% !important;
}

.wc-block-components-order-summary-item__image {
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 10px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.wc-block-components-order-summary-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 9px !important;
}

.wc-block-components-order-summary-item__description {
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}

.wc-block-components-order-summary-item__title,
.wc-block-components-order-summary-item .wc-block-components-product-name {
  color: #0F2A4A !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin: 0 0 4px 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.wc-block-components-order-summary-item__total-price {
  white-space: nowrap !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* HIDE RAW DESCRIPTION TEXT LEAKING IN SUMMARY (Image 3 fix) */
.wc-block-components-order-summary-item__description .wc-block-components-product-details__short-description,
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-details__short-description,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-details p {
  display: none !important;
}

/* Price & Quantity & Savings Badge in summary item */
.wc-block-components-order-summary-item .wc-block-components-product-price {
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #0F2A4A !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-badge {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border: 1px solid #BBF7D0 !important;
  border-radius: 6px !important;
  padding: 2px 7px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* Place Order Submit Button */
.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button button,
.elementor-widget-woocommerce-checkout-page button#place_order,
.wpr-woo-checkout button#place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #FF6B00 !important;
  background-color: #FF6B00 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  padding: 16px 28px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button button:hover,
.elementor-widget-woocommerce-checkout-page button#place_order:hover,
.wpr-woo-checkout button#place_order:hover {
  background: #E05E00 !important;
  background-color: #E05E00 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.45) !important;
}

/* Totals amount in checkout block */
.wc-block-components-totals-footer-item {
  border-top: 2px dashed #E2E8F0 !important;
  padding-top: 14px !important;
  margin-top: 14px !important;
}

.wc-block-components-totals-footer-item strong,
.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
  color: #0F2A4A !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

/* Payment & Shipping Option Pills in WooCommerce Blocks */
.wc-block-components-radio-control-accordion-option,
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option {
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
  background: #FFFFFF !important;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s !important;
}

.wc-block-components-radio-control-accordion-option:hover,
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option:hover {
  border-color: #0F2A4A !important;
}

.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option-checked,
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option:has(input[type="radio"]:checked),
.wc-block-components-radio-control-accordion-option:has(input[type="radio"]:checked) {
  border-color: #FF6B00 !important;
  background: #FFF7ED !important;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.08) !important;
}

.wc-block-components-radio-control-accordion-option input[type="radio"]:checked,
.wc-block-components-shipping-rates-control input[type="radio"]:checked {
  accent-color: #FF6B00 !important;
}

.wc-block-components-select .wc-block-components-select__container {
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  height: 56px !important;
}

.wc-block-components-select .wc-block-components-select__select {
  font-family: 'Cairo', sans-serif !important;
  color: #0F2A4A !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
