/* Commerce Flow 0.0.30 — shared Cart/Checkout header.
   Single authoritative rule set. Handles the malformed shortcode page editor
   wrapper (<code dir="ltr">[shortcode]</code>) without changing other UI. */

/* The old Classic Editor content may wrap the entire shortcode rendering in
   a code element. Make only that outer wrapper layout-transparent. The site's
   source pages should also store bare shortcodes, without code tags. */
:is(.commerce-flow-cart,.checkout-flow) > code[dir="ltr"] {
  display: contents !important;
  font: inherit !important;
  direction: rtl !important;
  unicode-bidi: normal !important;
  white-space: normal !important;
}
:is(.commerce-flow-cart,.checkout-flow) {
  direction: rtl !important;
  text-align: right !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-page-topline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  direction: rtl !important;
  text-align: right !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-page-headline {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  direction: rtl !important;
  text-align: right !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-page-heading {
  margin: 0 0 4px !important;
  color: #182e47 !important;
  font-family: "header-font","body-font",Tahoma,sans-serif !important;
  font-size: clamp(23px,2.3vw,31px) !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  letter-spacing: normal !important;
  text-align: right !important;
  direction: rtl !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-page-lead {
  margin: 0 !important;
  color: #627186 !important;
  font-family: "lists-font","body-font",Tahoma,sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.95 !important;
  letter-spacing: normal !important;
  text-align: right !important;
  direction: rtl !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-page-topline .cf-page-action {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 1px solid #e9e3d9 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #182e47 !important;
  font: 400 12px/1.6 "lists-font",Tahoma,sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  direction: rtl !important;
  text-align: center !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-page-topline .cf-page-action:is(:hover,:focus-visible) {
  border-color: #c4a06a !important;
  background: #f7f3eb !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-back-arrow {
  display: inline-block !important;
  font-family: Arial,sans-serif !important;
  font-size: 14px !important;
  direction: rtl !important;
  transform: none !important;
}

/* Compact full-width support notice, always separated from the back button. */
:is(.commerce-flow-cart,.checkout-flow) .cf-helpbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 1px solid #e8e1d4 !important;
  border-radius: 11px !important;
  background: #fcfaf6 !important;
  box-shadow: none !important;
  direction: rtl !important;
  text-align: right !important;
  overflow: hidden !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-helpbar > .cf-support-compact {
  display: grid !important;
  grid-template-columns: 17px minmax(0,1fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 9px !important;
  flex: 1 1 330px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #536273 !important;
  font: 400 12px/1.85 "lists-font",Tahoma,sans-serif !important;
  white-space: normal !important;
  direction: rtl !important;
  text-align: right !important;
}
/* Defensive fallback for shortcode markup that still contains <code>. */
:is(.commerce-flow-cart,.checkout-flow) .cf-helpbar > .cf-support-compact > code[dir="ltr"] {
  display: contents !important;
  font: inherit !important;
  direction: rtl !important;
  unicode-bidi: normal !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-helpbar .cf-support-icon {
  display: block !important;
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  inset: auto !important;
  top: auto !important;
  transform: none !important;
  color: #9b7546 !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-helpbar .cf-support-copy {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #536273 !important;
  font: 400 12px/1.85 "lists-font",Tahoma,sans-serif !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  direction: rtl !important;
  unicode-bidi: normal !important;
  text-align: right !important;
}
:is(.commerce-flow-cart,.checkout-flow) .cf-helpbar .cf-support-phone {
  display: inline-block !important;
  color: #17645f !important;
  font-family: "body-font","lists-font",Tahoma,sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: inherit !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  direction: ltr !important; /* phone-number digits only */
  unicode-bidi: isolate !important;
  white-space: nowrap !important;
}
/* Keep the optional guest account shortcut, without squeezing the phone text. */
.checkout-flow .cf-helpbar > .cf-account-access {
  display: flex !important;
  flex: 0 1 auto !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: 8px 12px !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 0 !important;
  border-inline-start: 1px solid #e8e1d4 !important;
  background: transparent !important;
  direction: rtl !important;
  text-align: right !important;
}
.checkout-flow .cf-helpbar .cf-account-access-label {
  color: #182e47 !important;
  font: 400 12px/1.8 "lists-font",Tahoma,sans-serif !important;
}
.checkout-flow .cf-helpbar .cf-account-site-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 6px 11px !important;
  color: #182e47 !important;
  background: #fff !important;
  border: 1px solid #e2d0b4 !important;
  border-radius: 8px !important;
  font: 400 12px/1.6 "lists-font",Tahoma,sans-serif !important;
  text-decoration: none !important;
  direction: rtl !important;
}
@media (max-width:760px) {
  :is(.commerce-flow-cart,.checkout-flow) .cf-page-topline {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 0 18px !important;
  }
  :is(.commerce-flow-cart,.checkout-flow) .cf-page-headline {width:100% !important;}
  :is(.commerce-flow-cart,.checkout-flow) .cf-page-heading {font-size:24px !important;}
  :is(.commerce-flow-cart,.checkout-flow) .cf-page-topline .cf-page-action {
    align-self:flex-start !important;
  }
  :is(.commerce-flow-cart,.checkout-flow) .cf-helpbar > .cf-support-compact {
    padding: 10px 12px !important;
    flex-basis: 100% !important;
  }
  .checkout-flow .cf-helpbar > .cf-account-access {
    flex-basis: 100% !important;
    width: 100% !important;
    border-inline-start: 0 !important;
    border-top: 1px solid #e8e1d4 !important;
    justify-content: space-between !important;
  }
}


/* Commerce Flow 1.0.21 — Cart-only mobile continue-shopping alignment.
 * Header uses a column flex layout on small screens. In RTL, cross-end is
 * the visual left edge, matching the desktop button position. Checkout's
 * return-to-cart action is intentionally not affected.
 */


/* Commerce Flow 1.0.22 — keep Cart headline and continue-shopping action inline
 * on mobile, matching the desktop header. RTL places the headline on the right
 * and the action on the left. Checkout header remains unchanged.
 */
@media (max-width:760px) {
  .commerce-flow-cart .cf-page-topline.cfc-topline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
  .commerce-flow-cart .cf-page-topline.cfc-topline > .cf-page-headline {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .commerce-flow-cart .cf-page-topline.cfc-topline > .cf-page-action.cfc-continue-shopping {
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
  }
}
