/* Checkout only: PureBidet ocean blue, Assistant typography and Hebrew RTL. */
#order-modal { z-index: 80; }
#order-modal .checkout-dialog { width: min(960px, 100%); max-height: 92vh; max-height: 92dvh; padding: 0; border-radius: 28px; background: #fff; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
#order-modal[data-step="payment"] .checkout-dialog,
#order-modal[data-step="success"] .checkout-dialog,
#order-modal[data-step="pending"] .checkout-dialog { max-width: 560px; }
#order-modal .checkout-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; background: #fff; border-bottom: 1px solid #e2e8f0; }
#order-modal .checkout-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: #0369a1; }
#order-modal .checkout-brand-icon { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 11px; color: #fff; background: #0284c7; }
#order-modal .checkout-secure { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: 12px; color: #64748b; }
#order-modal .checkout-icon { width: 19px; height: 19px; flex-shrink: 0; }
#order-modal #close-modal-btn { position: static; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #e2e8f0; color: #64748b; background: #f8fafc; border-radius: 50%; flex-shrink: 0; }
#order-modal .checkout-content { padding: 26px 32px 30px; }
#order-modal .checkout-steps { justify-content: flex-start; gap: 12px; margin-bottom: 22px; font-size: 13px; }
#order-modal .checkout-steps > div > span:first-child { width: 28px; height: 28px; }
#order-modal .checkout-heading { margin-bottom: 24px; text-align: start; }
#order-modal .checkout-heading h3 { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.6px; }
#order-modal [tabindex="-1"]:focus { outline: none; }
#order-modal .checkout-heading p { margin-top: 8px; font-size: 15px; color: #64748b; line-height: 1.5; }
#order-modal .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "main summary"; gap: 30px; align-items: start; }
#order-modal .checkout-main { grid-area: main; min-width: 0; }
#order-modal .checkout-summary { grid-area: summary; min-width: 0; border: 1px solid #d9eaf3; border-radius: 20px; background: #f0f9ff; padding: 20px; }
#order-modal .checkout-summary-title { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
#order-modal .checkout-product-image { display: block; width: 100%; height: 160px; object-fit: cover; background: #fff; border-radius: 14px; margin-bottom: 16px; }
#order-modal #modal-bundle-name { font-size: 16px; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
#order-modal .checkout-product-caption { font-size: 13px; line-height: 1.5; color: #64748b; margin-top: 4px; }
#order-modal .checkout-price-line { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #d9eaf3; margin-top: 18px; padding-top: 14px; font-size: 14px; font-weight: 700; }
#order-modal #modal-bundle-price { font-size: 28px; line-height: 1; font-weight: 800; color: #0369a1; white-space: nowrap; }
#order-modal .checkout-benefits { display: grid; gap: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid #d9eaf3; }
#order-modal .checkout-benefit { display: flex; align-items: center; gap: 9px; color: #475569; font-size: 13px; line-height: 1.4; }
#order-modal .checkout-benefit svg { color: #0284c7; }
#order-modal .checkout-benefit strong { color: #0f172a; font-weight: 700; }
#order-modal .checkout-fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
#order-modal .checkout-fieldset legend { width: 100%; padding: 0 0 12px; font-size: 16px; font-weight: 800; }
#order-modal .checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
#order-modal .checkout-field { min-width: 0; }
#order-modal .checkout-field-wide { grid-column: 1 / -1; }
#order-modal .checkout-field label { display: block; margin-bottom: 6px; color: #334155; font-size: 13px; line-height: 1.5; font-weight: 700; }
#order-modal .checkout-field input,
#order-modal #coupon-code { width: 100%; min-width: 0; height: 48px; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-family: inherit; font-size: 16px; color: #0f172a; transition: border-color .15s, box-shadow .15s; }
#order-modal input::placeholder { color: #94a3b8; opacity: 1; }
#order-modal input:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px #e0f2fe; }
#order-modal :is(button, summary, a):focus-visible { outline: 3px solid #0284c7; outline-offset: 3px; }
#order-modal .checkout-field-hint { font-size: 12px; color: #64748b; line-height: 1.5; margin-top: 5px; }
#order-modal .checkout-optional { margin-top: 16px; }
#order-modal .checkout-optional summary { cursor: pointer; color: #0369a1; font-size: 13px; font-weight: 700; padding-block: 10px; min-height: 44px; }
#order-modal .checkout-optional[open] summary { margin-bottom: 6px; }
#order-modal .checkout-primary { width: 100%; min-height: 52px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; border: 0; background: #0284c7; color: white; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1.4; cursor: pointer; box-shadow: 0 5px 14px -5px #0284c766; transition: background .15s; }
#order-modal .checkout-primary:hover { background: #0369a1; }
#order-modal .checkout-primary:disabled { opacity: .6; cursor: wait; }
#order-modal .checkout-action-note { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 12px; text-align: center; color: #64748b; line-height: 1.5; margin-top: 10px; }
#order-modal #whatsapp-submit-btn { width: 100%; min-height: 44px; padding: 12px 4px 0; color: #475569; background: transparent; border: none; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#order-modal .checkout-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
#order-modal .checkout-section-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
#order-modal .confirm-bundle { min-height: 80px; border-radius: 12px; padding: 13px; }
#order-modal .confirm-bundle.selected { background: #f0f9ff; border-color: #0284c7; }
#order-modal .checkout-delivery { padding: 16px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; margin-bottom: 22px; }
#order-modal #edit-shipping-btn { display: flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; font-size: 13px; }
#order-modal :is(#confirm-ship-name, #confirm-ship-address, #confirm-ship-email, #confirm-bit-phone) { overflow-wrap: anywhere; }
#order-modal #confirm-ship-address { font-size: 14px; }
#order-modal #confirm-ship-email { font-size: 13px; }
#order-modal #apply-coupon-btn { background: #0369a1; border-radius: 10px; min-height: 48px; }
#order-modal #confirm-bit-lock { padding: 0 0 18px; border: 0; border-bottom: 1px solid #d9eaf3; border-radius: 0; background: transparent; margin-bottom: 18px; }
#order-modal #confirm-bit-lock > div:first-child { width: 44px; height: 44px; background: #0284c7; font-size: 22px; font-style: italic; letter-spacing: -1px; }
#order-modal #confirm-bit-phone { font-size: 13px; line-height: 1.5; margin-top: 3px; }
#order-modal .checkout-totals { background: transparent; border: 0; padding: 0; margin-bottom: 18px; font-size: 14px; }
#order-modal .checkout-totals > div { gap: 8px; }
#order-modal #sum-total { font-size: 32px; color: #0369a1; white-space: nowrap; }
#order-modal #agree-terms-label { font-size: 13px; line-height: 1.6; margin: 18px 0; }
#order-modal #agree-terms { width: 20px; height: 20px; margin-top: 3px; }
#order-modal #terms-panel { font-size: 13px; }
#order-modal #step-grow-payment,
#order-modal #step-success { padding: 28px; }
#order-modal #step-grow-payment > div:first-child { margin: 0 0 24px; border-radius: 14px; }
@media (max-width: 767px) {
  #order-modal { padding: 0; align-items: flex-end; }
  #order-modal .checkout-dialog { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: 0; }
  #order-modal .checkout-topbar { padding: 10px 20px; gap: 10px; }
  #order-modal .checkout-brand { font-size: 17px; gap: 8px; }
  #order-modal .checkout-secure { font-size: 11px; }
  #order-modal .checkout-secure span { display: none; }
  #order-modal .checkout-content { padding: 20px 20px max(24px, env(safe-area-inset-bottom)); }
  #order-modal .checkout-steps { margin-bottom: 20px; font-size: 12px; gap: 10px; }
  #order-modal .checkout-heading { margin-bottom: 20px; }
  #order-modal .checkout-heading h3 { font-size: 27px; }
  #order-modal .checkout-heading p { font-size: 14px; margin-top: 6px; }
  #order-modal .checkout-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "main"; gap: 24px; }
  #order-modal .checkout-summary { padding: 16px; border-radius: 16px; }
  #order-modal .checkout-shipping-summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
  #order-modal .checkout-shipping-summary .checkout-summary-title,
  #order-modal .checkout-shipping-summary .checkout-product-caption,
  #order-modal .checkout-shipping-summary .checkout-price-line > span { display: none; }
  #order-modal .checkout-product-image { width: 64px; height: 68px; margin: 0; grid-row: 1 / 3; border-radius: 10px; }
  #order-modal #modal-bundle-name { font-size: 14px; }
  #order-modal .checkout-price-line { padding: 0; margin: 0; border: 0; }
  #order-modal #modal-bundle-price { font-size: 22px; }
  #order-modal .checkout-benefits { display: block; padding: 0; margin: 0; border: 0; grid-column: 2 / -1; }
  #order-modal .checkout-benefit { font-size: 12px; }
  #order-modal .checkout-benefit + .checkout-benefit { display: none; }
  #order-modal .checkout-benefit svg { display: none; }
  #order-modal .checkout-fieldset { margin-bottom: 20px; }
  #order-modal .checkout-confirm-layout { grid-template-areas: "main" "summary"; gap: 4px; }
  #order-modal .checkout-section { padding-bottom: 18px; margin-bottom: 18px; }
  #order-modal .checkout-confirm-summary .checkout-summary-title { margin-bottom: 16px; }
  #order-modal .checkout-action-note { font-size: 12px; }
}
@media (max-width: 420px) {
  #order-modal .checkout-content { padding-inline: 16px; }
  #order-modal .checkout-topbar { padding-inline: 16px; }
  #order-modal .checkout-fields { grid-template-columns: minmax(0, 1fr); }
  #order-modal .checkout-shipping-summary { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px 9px; padding: 12px; }
  #order-modal .checkout-product-image { width: 52px; height: 60px; }
  #order-modal #modal-bundle-price { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  #order-modal * { transition: none !important; scroll-behavior: auto !important; }
}
