/* 1.6.5 | Scoped classic WooCommerce checkout and SMS account details. */
body.woocommerce-checkout .woocommerce-checkout,body.woocommerce-checkout .woocommerce-checkout *:not(svg):not(i),body.bwch-account-page .bwch-profile,body.bwch-account-page .bwch-profile *:not(svg):not(i){font-family:Vazirmatn,Tahoma,sans-serif}
body.woocommerce-checkout .woocommerce-checkout{direction:rtl}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields > h3{font-size:19px;font-weight:850;color:#152f4a;margin:0 0 18px}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields{padding:20px;border:1px solid #e1e9f0;border-radius:18px;background:#fff;margin:0 0 16px}
body.woocommerce-checkout .woocommerce-checkout .form-row{margin:0 0 14px!important;min-width:0;float:none!important}
body.woocommerce-checkout .woocommerce-checkout .form-row label{display:block;font-size:12px;color:#234661;font-weight:780;margin:0 0 7px}
body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,select,textarea,.select2-selection){min-height:49px;border:1px solid #d5e2ee!important;background:#fbfdff!important;color:#1c3b57!important;border-radius:12px!important;box-shadow:none!important;padding:10px 13px!important;font-size:14px!important}
body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,textarea):focus{outline:2px solid rgba(18,87,145,.16);border-color:#4786b7!important}
body.woocommerce-checkout .woocommerce-checkout textarea#order_comments{min-height:100px;resize:vertical;line-height:1.9}
body.woocommerce-checkout .woocommerce-checkout :is(input[name=billing_postcode]){direction:ltr;text-align:left}
body.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection--single{height:49px!important;display:flex;align-items:center}
body.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection__rendered{padding:0 6px!important}
body.woocommerce-checkout .woocommerce-checkout #ship-to-different-address{display:none!important}
body.bwch-account-page .bwch-profile{display:grid;gap:20px;direction:rtl}
body.bwch-account-page .bwch-profile-block{padding:22px;border:1px solid #e1eaf3;border-radius:17px;background:#fff;min-width:0}
body.bwch-account-page .bwch-profile h3{margin:0 0 15px!important;font-size:18px;font-weight:850;color:#172f49}
body.bwch-account-page .bwch-profile h4{margin:20px 0 12px;font-size:15px;color:#264b6a}
body.bwch-account-page .bwch-profile p{margin:0 0 14px}
body.bwch-account-page .bwch-profile label{display:block;margin-bottom:7px;font-size:12px;font-weight:780;color:#284761}
body.bwch-account-page .bwch-profile :is(input[type=text],input[type=password],input[type=email],input[type=tel]){width:100%;min-height:48px;padding:10px 13px;border:1px solid #d5e2ee;border-radius:11px;background:#fbfdff;box-shadow:none;font-size:14px}
body.bwch-account-page .bwch-profile :is(input[type=email],input[type=tel]){direction:ltr;text-align:left}
body.bwch-account-page .bwch-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
body.bwch-account-page .bwch-phone-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 15px;border:1px solid #e1eaf3;border-radius:11px;background:#f5f9fd}
body.bwch-account-page .bwch-phone-status-value{font-size:16px;font-weight:800;color:#163955}
body.bwch-account-page .bwch-phone-status-pill{font-size:11px;font-weight:800;padding:6px 12px;border-radius:99px;background:#fff0e7;color:#995426}
body.bwch-account-page .bwch-phone-status-pill.is-verified{background:#e7f7ef;color:#167348}
body.bwch-account-page .bwch-profile-hint{color:#647f96;font-size:12px;line-height:1.95}
body.bwch-account-page .bwch-profile :is(.bwch-profile-save,.bwch-profile-change-phone button){background:#125791;color:white;border:0;border-radius:11px;padding:11px 20px;min-height:45px;font-size:13px;font-weight:800}
body.bwch-account-page .bwch-profile-change-phone{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
body.bwch-account-page .bwch-profile-change-phone label{grid-column:1/-1;margin:0}
body.bwch-account-page .bwch-profile .bwch-phone-auth{padding:16px;border-radius:13px;border:1px solid #dce8f2;background:#f7fbff;margin-top:14px}
body.bwch-account-page .bwch-profile .bwch-otp-form{display:grid;gap:12px}
body.bwch-account-page .bwch-profile .bwch-code-entry{position:relative;height:55px}
body.bwch-account-page .bwch-profile .bwch-code-cells{display:none}
body.bwch-account-page .bwch-profile .bwch-code-entry.bwch-code-enhanced .bwch-code-cells{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;direction:ltr}
body.bwch-account-page .bwch-profile .bwch-code-cells span{display:grid;place-items:center;background:white;border:1px solid #ccddec;border-radius:10px;color:#173c60;font-size:23px}
body.bwch-account-page .bwch-profile .bwch-code-entry.bwch-code-enhanced #bwch-code{position:absolute;inset:0;opacity:.015;z-index:2;width:100%;height:100%}
body.bwch-account-page .bwch-profile .bwch-otp-countdown{display:flex;gap:8px;align-items:center;color:#125791;font-size:12px}
body.bwch-account-page .bwch-profile .bwch-otp-countdown strong{margin-right:auto}
@media(max-width:600px){body.bwch-account-page .bwch-profile-block{padding:15px}body.bwch-account-page .bwch-profile-grid{grid-template-columns:1fr}body.bwch-account-page .bwch-profile-change-phone{grid-template-columns:1fr}body.bwch-account-page .bwch-profile-change-phone button{width:100%}body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields,body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields{padding:15px}}
/* Field dimensions stay inside their own columns on RTL and narrow screens. */
body.woocommerce-checkout .woocommerce-checkout,body.woocommerce-checkout .woocommerce-checkout *,
body.bwch-account-page .bwch-profile,body.bwch-account-page .bwch-profile *{box-sizing:border-box}
body.woocommerce-checkout .woocommerce-checkout .form-row{width:100%!important}
body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,select,textarea,.select2-container){display:block;width:100%!important;max-width:100%!important;min-width:0}
body.bwch-account-page .bwch-profile :is(input[type=text],input[type=password],input[type=email],input[type=tel]){box-sizing:border-box;max-width:100%;height:48px}
body.bwch-account-page .bwch-profile .bwch-profile-change-phone{min-width:0}
body.woocommerce-checkout .woocommerce-checkout #place_order{background:#125791!important;border-radius:12px!important;padding:14px 24px!important;color:#fff!important;font-weight:850!important;border:none!important;box-shadow:0 7px 20px rgba(18,87,145,.13)!important;min-height:51px}


/* v1.6.6: hide inferred shipping location on cart before confirmed address. */
body.woocommerce-cart.bwch-cart-awaiting-address .woocommerce-shipping-destination,
body.woocommerce-cart.bwch-cart-awaiting-address .cart_totals .shipping-destination,
body.woocommerce-cart.bwch-cart-awaiting-address .cart-totals-inner .shipping-destination {display:none!important}
body.woocommerce-cart .bwch-cart-destination-note {font-family:Vazirmatn,Tahoma,sans-serif;
  color:#526a82;font-size:12px;line-height:1.9;padding:10px 12px;margin:10px 0 0;
  border:1px solid #e3ebf3;border-radius:10px;background:#f7fafd}

/* v1.6.8 | Checkout clarity: SMS-first hidden contact values, visual field rhythm. */
body.woocommerce-checkout .woocommerce-checkout .bwch-checkout-hidden-field,
body.woocommerce-checkout .woocommerce-checkout #billing_country_field.bwch-checkout-hidden-field,
body.woocommerce-checkout .woocommerce-checkout #billing_phone_field.bwch-checkout-hidden-field,
body.woocommerce-checkout .woocommerce-checkout #billing_email_field.bwch-checkout-hidden-field {
  display: none !important;
}

body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields {
  border: 1px solid #e2eaf2 !important;
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 30px rgba(15,52,85,.035) !important;
  padding: clamp(18px,2.5vw,27px) !important;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields > h3 {
  font-size: clamp(18px,2.2vw,22px) !important;
  font-weight: 850 !important;
  color: #15344e !important;
  line-height: 1.65;
  padding: 0 0 13px !important;
  border-bottom: 1px solid #eef2f7;
  margin: 0 0 22px !important;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 19px 16px !important;
  align-items: start;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-wide { grid-column: 1/-1; }
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .bwch-checkout-hidden-field { display: none !important; }
body.woocommerce-checkout .woocommerce-checkout .form-row label {
  color: #29435a !important;
  font-size: 13px !important;
  font-weight: 740 !important;
  line-height: 1.65 !important;
  margin-bottom: 8px !important;
}
body.woocommerce-checkout .woocommerce-checkout .form-row label .required {
  color: #c74d5e !important;
  text-decoration: none !important;
  font-size: 12px !important;
}
body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,textarea,select,.select2-container .select2-selection--single) {
  min-height: 52px !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #d8e3ee !important;
  background: #f8fbfe !important;
  color: #1b3851 !important;
  border-radius: 13px !important;
  padding: 11px 14px !important;
  box-shadow: 0 1px 2px rgba(16,49,76,.02) !important;
  font-size: 14px !important;
  font-weight: 550;
  transition: background-color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,textarea)::placeholder { color: #8a9fb2 !important; opacity: 1; }
body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,textarea,select):focus,
body.woocommerce-checkout .woocommerce-checkout .select2-container--focus .select2-selection--single,
body.woocommerce-checkout .woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: #337bb2 !important;
  box-shadow: 0 0 0 3px rgba(18,87,145,.13) !important;
  background: #fff !important;
  outline: none !important;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-invalid :is(input.input-text,textarea,select,.select2-selection--single) {
  border-color: #db7783 !important;
  background: #fffafb !important;
  box-shadow: 0 0 0 2px rgba(207,84,104,.065) !important;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-invalid label { color: #943c4c !important; }
body.woocommerce-checkout .woocommerce-checkout .woocommerce-input-wrapper { display: block; width: 100%; min-width: 0; }
body.woocommerce-checkout .woocommerce-checkout .select2-container { width: 100% !important; }
body.woocommerce-checkout .woocommerce-checkout .select2-selection__rendered { padding-inline: 3px 12px !important; line-height: 30px !important; }
body.woocommerce-checkout .woocommerce-checkout .form-row .description,
body.woocommerce-checkout .woocommerce-checkout .form-row .woocommerce-input-wrapper + span { font-size: 12px; color: #678097; line-height: 1.8; }

/* Brand-aligned notices. Error must remain visible, readable, and accessible. */
body.woocommerce-checkout :is(.woocommerce-error,.woocommerce-NoticeGroup .woocommerce-error,.woocommerce-notices-wrapper .woocommerce-error),
body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
  position: relative !important;
  display: block !important;
  list-style: none !important;
  background: #fff7f7 !important;
  color: #8b3444 !important;
  border: 1px solid #f1d5dc !important;
  border-right: 4px solid #cc6373 !important;
  border-left: 1px solid #f1d5dc !important;
  border-radius: 15px !important;
  margin: 0 0 18px !important;
  padding: 15px 54px 15px 18px !important;
  font-family: Vazirmatn,Tahoma,sans-serif !important;
  font-size: 13px !important;
  line-height: 2 !important;
  font-weight: 650 !important;
  direction: rtl !important;
  text-align: right !important;
  box-shadow: 0 5px 20px rgba(116,34,50,.04) !important;
}
body.woocommerce-checkout :is(.woocommerce-error,.woocommerce-NoticeGroup .woocommerce-error,.woocommerce-notices-wrapper .woocommerce-error)::before {
  content: '!' !important;
  position: absolute !important;
  inset: 17px 17px auto auto !important;
  width: 22px !important;
  height: 22px !important;
  border: 1.5px solid #ca6172 !important;
  background: #ffe8ec !important;
  color: #ae4355 !important;
  font: 800 14px/20px Vazirmatn,Tahoma,sans-serif !important;
  border-radius: 50% !important;
  text-align: center !important;
  box-sizing: border-box;
}
body.woocommerce-checkout .woocommerce-error li { color: inherit !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-checkout .woocommerce-error li + li { margin-top: 7px !important; }
body.woocommerce-checkout .woocommerce-error :is(a,.button) { color: #125791 !important; font-weight: 800 !important; text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-checkout .woocommerce-error :is(a,.button):focus-visible { outline: 2px solid #125791; outline-offset: 3px; }
body.woocommerce-checkout :is(.woocommerce-info,.woocommerce-message) {
  border-radius: 15px !important;
  background: #f0f7fc !important;
  color: #214f73 !important;
  border: 1px solid #d8e8f4 !important;
  border-right: 4px solid #125791 !important;
  border-left: 1px solid #d8e8f4 !important;
  font: 650 13px/2 Vazirmatn,Tahoma,sans-serif !important;
  padding: 15px 54px 15px 18px !important;
  margin: 0 0 18px !important;
  direction: rtl !important;
  text-align: right !important;
}
body.woocommerce-checkout :is(.woocommerce-info,.woocommerce-message)::before { color: #125791 !important; right: 18px !important; left: auto !important; }

@media (max-width: 700px) {
  body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0,1fr) !important; gap: 16px !important; }
  body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1/-1 !important; }
  body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields { padding: 17px 15px !important; border-radius: 17px !important; }
  body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields > h3 { margin-bottom: 17px !important; }
  body.woocommerce-checkout :is(.woocommerce-error,.woocommerce-info,.woocommerce-message) { font-size: 12.5px !important; border-radius: 13px !important; }
  body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,textarea,select,.select2-container .select2-selection--single) { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-checkout .woocommerce-checkout :is(input.input-text,textarea,select,.select2-container .select2-selection--single) { transition: none !important; }
}

/* v1.7.2: compact profile groups and legible hierarchy. Not applied to checkout. */
body.bwch-account-page .bwch-profile-account-block{padding:24px 26px}
body.bwch-account-page .bwch-profile-block-heading{display:flex;align-items:center;gap:13px;margin-bottom:23px;padding:0 0 18px;border-bottom:1px solid #eaf0f6}
body.bwch-account-page .bwch-profile-heading-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:13px;background:#e9f4fe;color:#125791;font-size:23px}
body.bwch-account-page .bwch-profile-block-heading h3{font-size:17px;margin:0 0 4px!important;color:#123b60}
body.bwch-account-page .bwch-profile-block-heading p{color:#788da1;font-size:11.5px;line-height:1.9;margin:0}
body.bwch-account-page .bwch-profile-form{max-width:850px}
body.bwch-account-page .bwch-profile-section-label{font-size:12px;font-weight:850;color:#174a74;margin:0 0 12px}
body.bwch-account-page .bwch-profile-account-block .bwch-profile-grid{gap:15px}
body.bwch-account-page .bwch-profile-account-block .bwch-profile-grid p{margin:0}
body.bwch-account-page .bwch-profile-form :is(input[type=text],input[type=password],input[type=email]){background:#fff;border:1px solid #d7e4f0;border-radius:12px;min-height:47px;transition:border-color .18s,box-shadow .18s}
body.bwch-account-page .bwch-profile-form :is(input[type=text],input[type=password],input[type=email]):focus-visible{border-color:#5792be;outline:2px solid rgba(18,87,145,.13);box-shadow:none}
body.bwch-account-page .bwch-profile-email-group{margin-top:22px;padding-top:19px;border-top:1px solid #eaf0f6}
body.bwch-account-page .bwch-profile-email-group>p{margin-bottom:8px}
body.bwch-account-page .bwch-profile-password-group{margin:22px 0 17px;background:#f6f9fc;border:1px solid #e1ebf4;border-radius:15px;padding:18px 19px}
body.bwch-account-page .bwch-profile-password-group h4{font-size:14px;margin:0 0 5px;color:#17446a}
body.bwch-account-page .bwch-profile-password-group .bwch-profile-secondary{font-size:11.5px;color:#7a8fa1;line-height:1.8;margin:0 0 15px}
body.bwch-account-page .bwch-profile-password-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
body.bwch-account-page .bwch-profile-password-fields>p{margin:0}
body.bwch-account-page .bwch-profile-password-group .bwch-profile-hint{margin:12px 0 0}
body.bwch-account-page .bwch-profile-form .bwch-profile-save{min-width:155px;box-shadow:0 5px 15px rgba(18,87,145,.12)}
body.bwch-account-page .bwch-profile-hint{max-width:760px;color:#70859a;font-size:11.5px;line-height:2}
body.bwch-account-page .bwch-profile .bwch-otp-next-step{margin-top:12px}
@media(max-width:680px){body.bwch-account-page .bwch-profile-account-block{padding:18px 16px}body.bwch-account-page .bwch-profile-password-fields{grid-template-columns:1fr}body.bwch-account-page .bwch-profile-password-group{padding:14px}body.bwch-account-page .bwch-profile-block-heading{align-items:flex-start}}
body.bwch-account-page .bwch-profile .bwch-otp-next-step{padding:13px;border-radius:13px;border:1px solid #dceaf6;background:#f5f9fd;text-align:center}
body.bwch-account-page .bwch-profile .bwch-otp-wait{font-size:11.5px;color:#516d85;line-height:1.9;margin:0 0 10px}
body.bwch-account-page .bwch-profile .bwch-otp-resend-button{width:100%;min-height:43px;padding:10px;border-radius:10px;background:#125791;border:0;color:white;font-size:12px;font-weight:800;cursor:pointer}
body.bwch-account-page .bwch-profile .bwch-otp-resend-button:disabled{background:#e1eaf4;color:#657c93;cursor:not-allowed}
body.bwch-account-page .bwch-profile .bwch-otp-change-phone{display:inline-block;margin-top:10px;color:#125791;font-size:11.5px;font-weight:700;text-decoration:none}
