/* Royal 1.0.25: one header on all public Astra pages, including account/cart/checkout.
   Every rule is scoped to #masthead. No content or payment/form styling. */
.rhc-header-enabled #masthead #ast-desktop-header .ast-primary-header-bar {
  background: #fff !important;
  border-bottom: 0 !important;
  padding-block: 0 !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .ast-primary-header-bar .ast-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  min-height: 98px;
  margin-inline: auto;
  padding: 18px 36px !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .ast-builder-grid-row {
  min-height: 0 !important;
  column-gap: 28px;
}
/* The live Astra builder puts logo AND menu in its left section. */
.rhc-header-enabled #masthead #ast-desktop-header .ast-builder-grid-row-no-center {
  grid-template-columns: minmax(0, 1fr) auto;
}
.rhc-header-enabled #masthead #ast-desktop-header .site-header-primary-section-left {
  min-width: 0;
  justify-content: space-between;
  gap: 28px;
}
.rhc-header-enabled #masthead #ast-desktop-header .site-header-primary-section-left > .ast-builder-menu {
  margin-left: auto;
}
.rhc-header-enabled #masthead #ast-desktop-header .site-header-primary-section-center,
.rhc-header-enabled #masthead #ast-desktop-header .site-header-primary-section-right {
  justify-content: flex-end;
  gap: 28px;
}
.rhc-header-enabled #masthead #ast-desktop-header .ast-builder-layout-element,
.rhc-header-enabled #masthead #ast-desktop-header .site-branding {
  padding: 0 !important;
  margin-block: 0 !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .site-logo-img {
  padding-right: 0 !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .custom-logo-link img {
  display: block;
  width: 230px !important;
  max-width: 230px !important;
  height: auto !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .menu-item {
  margin: 0 !important;
  padding: 0 !important;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  height: auto !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #10182e !important;
  /* The supplied preview renders the light system fallback. The live Astra
     font sheet only has Poppins 700, which makes a requested 500 too heavy. */
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 2px;
  background: #c9a247 !important;
  transform: none !important;
  opacity: 0;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .current-menu-item > .menu-link:not([href*="#"])::after,
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover::after,
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus-visible::after {
  opacity: 1;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu .sub-menu {
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 24px #10182e20;
}
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu .sub-menu .menu-link {
  color: #10182e;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}
.rhc-header-enabled #masthead .rhc-header-account-link {
  font-family: Arial, sans-serif;
  color: #4165e7 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  text-decoration: none;
}
.rhc-header-enabled #masthead a.rhc-header-cart-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #10182e !important;
  font-size: 0 !important;
  text-decoration: none !important;
}
.rhc-header-enabled #masthead a.rhc-header-cart-link > .ast-custom-button {
  display: none !important;
}
.rhc-header-enabled #masthead a.rhc-header-cart-link > .rhc-header-cart__icon {
  display: block;
  width: 20px;
  height: 20px;
  font-family: dashicons !important;
  font-size: 20px !important;
  line-height: 1;
}
.rhc-header-enabled #masthead :is(a, button):focus-visible {
  outline: 3px solid #0b5ddb !important;
  outline-offset: 4px;
}

@media (min-width: 922px) and (max-width: 1100px) {
  .rhc-header-enabled #masthead #ast-desktop-header .custom-logo-link img {
    width: 195px !important;
    max-width: 195px !important;
  }
  .rhc-header-enabled #masthead #ast-desktop-header .ast-builder-grid-row,
  .rhc-header-enabled #masthead #ast-desktop-header .site-header-primary-section-right {
    gap: 16px;
  }
  .rhc-header-enabled #masthead #ast-desktop-header .main-header-menu { gap: 18px; }
}
/* Keep Astra's own mobile breakpoint, toggle and off-canvas behavior.
   Unlike the prototype, the real account link stays available at narrow widths. */
.rhc-header-enabled #masthead #ast-mobile-header .custom-logo-link img {
  width: 190px !important;
  max-width: min(190px, 48vw) !important;
  height: auto !important;
}
.rhc-header-enabled #masthead #ast-mobile-header .main-header-menu .menu-link {
  min-height: 44px;
  font-size: 15px;
  line-height: 1.5;
  font-family: Arial, sans-serif;
  font-weight: 400;
  color: #10182e !important;
}
.rhc-header-enabled #masthead #ast-mobile-header .main-header-menu > .menu-item > .menu-link {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  text-align: left;
}
@media (max-width: 767px) {
  .rhc-header-enabled #masthead #ast-mobile-header .custom-logo-link img {
    width: 160px !important;
    max-width: min(160px, 48vw) !important;
  }
}
.rhc-header-enabled #masthead { background: #fff; }
.rhc-header-enabled #masthead .rhc-header-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #2949ba !important;
  white-space: nowrap;
}
.rhc-header-enabled #masthead .rhc-header-account-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rhc-header-enabled #masthead #ast-mobile-header .ast-primary-header-bar { background: #fff; }
.rhc-header-enabled #masthead #ast-mobile-header .main-header-menu {
  background: #fff;
}
.rhc-header-enabled.woocommerce-shop #masthead .menu-item-has-children > .menu-link::after {
  background: transparent !important;
}

/* 1.0.26: one interaction layer, shared by every public template. */
.rhc-header-enabled .rhc-h-sticky-slot { position: relative; }
.rhc-header-enabled #masthead { position: relative; z-index: 100; font-family: Arial, sans-serif; }
.rhc-header-enabled #masthead.rhc-h-compact { position: fixed; inset: var(--rhc-h-top, 0px) 0 auto; box-shadow: 0 5px 22px #10182e12; border-bottom: 1px solid #e6e9ef; }
.rhc-header-enabled #masthead #ast-desktop-header .ast-primary-header-bar .ast-container { padding: 16px 32px !important; }
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu { gap: 22px; }
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link { font-size: 14px !important; }
.rhc-header-enabled #masthead #ast-desktop-header .site-header-primary-section-right { gap: 14px; }
.rhc-header-enabled #masthead .rhc-header-account-link { gap: 7px; font-size: 14px !important; }
.rhc-header-enabled #masthead .dashicons { flex-shrink: 0; }
.rhc-header-enabled #masthead.rhc-h-compact #ast-desktop-header .ast-primary-header-bar .ast-container { min-height: 74px; padding-block: 5px !important; }
.rhc-header-enabled #masthead.rhc-h-compact #ast-desktop-header .custom-logo-link img { width: 195px !important; max-width: 195px !important; }
.rhc-header-enabled #masthead :is(.rhc-h-action, .rhc-header-cart-link) { position: relative; flex-shrink: 0; }
.rhc-header-enabled #masthead .rhc-h-action { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #10182e; cursor: pointer; box-shadow: none; }
.rhc-header-enabled #masthead .rhc-h-action:hover,
.rhc-header-enabled #masthead .rhc-h-action[aria-expanded="true"],
.rhc-header-enabled #masthead .rhc-header-cart-link:hover { background: #f3f5f9 !important; }
.rhc-header-enabled #masthead .rhc-h-count { position: absolute; right: -1px; top: -1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; background: #b89538; color: #10182e; font: 700 11px/18px Arial,sans-serif; text-align: center; }
.rhc-header-enabled #masthead [hidden] { display: none !important; }
.rhc-header-enabled #masthead .rhc-h-panel { box-sizing: border-box; position: absolute; top: 100%; z-index: 101; padding: 24px; border: 1px solid #e2e6ed; border-radius: 0 0 14px 14px; background: #fff; color: #10182e; box-shadow: 0 18px 38px #10182e18; max-height: calc(100dvh - 160px); overflow: auto; font: 15px/1.5 Arial,sans-serif; }
.rhc-header-enabled #masthead .rhc-h-search { width: min(720px, calc(100% - 32px)); right: max(16px, calc((100vw - 1256px) / 2)); }
.rhc-header-enabled #masthead .rhc-h-account { width: min(340px, calc(100% - 32px)); right: max(16px, calc((100vw - 1256px) / 2 + 54px)); }
.rhc-header-enabled #masthead .rhc-h-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rhc-header-enabled #masthead .rhc-h-panel-top h2 { margin: 0; color: #10182e; font: 700 22px/1.3 Arial,sans-serif; }
.rhc-header-enabled #masthead .rhc-h-search-form { display: flex; gap: 10px; border: 1px solid #aeb8ca; border-radius: 8px; padding: 3px; margin: 0; }
.rhc-header-enabled #masthead .rhc-h-search-form:focus-within { outline: 2px solid #2949ba; outline-offset: 2px; }
.rhc-header-enabled #masthead .rhc-h-search-form input[type="search"] { min-width: 0; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: #fff; color: #10182e; box-shadow: none; font: 16px/1.5 Arial,sans-serif; }
.rhc-header-enabled #masthead .rhc-h-search-form input[type="search"]:focus { outline: none !important; }
.rhc-header-enabled #masthead .rhc-h-status { color: #556174; font: 13px/1.5 Arial,sans-serif; margin: 14px 0 6px; }
.rhc-header-enabled #masthead :is(.rhc-h-results, .rhc-h-cart-items) { list-style: none; padding: 0; margin: 0; }
.rhc-header-enabled #masthead .rhc-h-results a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px; color: #10182e; text-decoration: none; border-radius: 8px; font: 15px/1.4 Arial,sans-serif; }
.rhc-header-enabled #masthead .rhc-h-results a:hover { background: #f3f5f9; }
.rhc-header-enabled #masthead .rhc-h-thumbnail { display: block; width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; background: #fff; }
.rhc-header-enabled #masthead .rhc-h-all-results { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: #2949ba; font-weight: 600; text-underline-offset: 4px; }
.rhc-header-enabled #masthead .rhc-h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rhc-header-enabled #masthead .rhc-h-account-body > a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px; color: #10182e; text-decoration: none; border-radius: 6px; }
.rhc-header-enabled #masthead .rhc-h-account-body > a:hover { background: #f3f5f9; }
.rhc-header-enabled #masthead .rhc-h-account-body p { margin: 0 0 16px; }
.rhc-header-enabled #masthead :is(.rhc-h-primary, .rhc-h-secondary) { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 7px; background: #2949ba; color: #fff !important; font: 600 15px/1.4 Arial,sans-serif; text-decoration: none; text-align: center; }
.rhc-header-enabled #masthead .rhc-h-primary:hover { background: #203d9e; }
.rhc-header-enabled #masthead .rhc-h-secondary { background: #f0f3f9; color: #2949ba !important; }
.rhc-header-enabled #masthead .rhc-h-drawer { box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px,100%); height: 100dvh; max-width: 100%; max-height: 100dvh; padding: 24px; border: 0; background: #fff; color: #10182e; box-shadow: -12px 0 40px #10182e20; font: 15px/1.5 Arial,sans-serif; }
.rhc-header-enabled #masthead .rhc-h-drawer[open] { display: flex; flex-direction: column; }
.rhc-header-enabled #masthead .rhc-h-drawer:not([open]) { display: none; }
.rhc-header-enabled #masthead .rhc-h-drawer::backdrop { background: #10182e66; }
.rhc-header-enabled #masthead .rhc-h-cart-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.rhc-header-enabled #masthead .rhc-h-cart-items > li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid #e7eaf0; }
.rhc-header-enabled #masthead .rhc-h-cart-items a { color: #10182e; text-decoration: none; font-weight: 600; }
.rhc-header-enabled #masthead .rhc-h-cart-items p { font-size: 14px; color: #556174; margin: 6px 0 0; }
.rhc-header-enabled #masthead .rhc-h-total { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 8px; }
.rhc-header-enabled #masthead .rhc-h-note { font-size: 13px; color: #556174; }
.rhc-header-enabled #masthead .rhc-h-cart-foot { padding-top: 16px; border-top: 1px solid #e7eaf0; }
.rhc-header-enabled #masthead .rhc-h-category-copy small { display: block; color: #667184; font-size: 12px; font-weight: 400; }
.rhc-header-enabled #masthead .sub-menu .menu-link { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu .sub-menu { width: 310px; max-width: calc(100vw - 32px); }
.rhc-header-enabled #masthead #ast-desktop-header .main-header-menu .sub-menu .menu-link { font-size: 14px; }
.rhc-header-enabled #masthead #ast-desktop-header .rhc-h-menu-open > .sub-menu { display: block; visibility: visible; opacity: 1; left: 0; right: auto; pointer-events: auto; }
.rhc-header-enabled #masthead #ast-mobile-header .rhc-h-menu-open > .sub-menu { display: block !important; }
.rhc-header-enabled #masthead .rhc-h-menu-closed > .sub-menu { display: none !important; visibility: hidden !important; }
html:has(.rhc-header-enabled #masthead .rhc-h-drawer[open]) { overflow: hidden; }
.rhc-header-enabled #masthead #ast-mobile-header .site-header-primary-section-right { gap: 2px; }
.rhc-header-enabled #masthead #ast-mobile-header .menu-toggle { min-height: 44px; min-width: 44px; padding: 10px; }
.rhc-header-enabled #masthead.rhc-h-compact #ast-mobile-header .ast-container { padding-block: 8px !important; }
.rhc-header-enabled #masthead.rhc-h-compact #ast-mobile-header .custom-logo-link img { width: 140px !important; max-width: min(140px, calc(100vw - 200px)) !important; }
.rhc-header-enabled #masthead #ast-mobile-header .ast-mobile-header-content { max-height: calc(100dvh - 145px); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 922px) and (max-width: 1200px) {
  .rhc-header-enabled #masthead #ast-desktop-header .custom-logo-link img { width: 185px !important; max-width: 185px !important; }
  .rhc-header-enabled #masthead #ast-desktop-header .ast-primary-header-bar .ast-container { padding-inline: 20px !important; }
  .rhc-header-enabled #masthead #ast-desktop-header :is(.ast-builder-grid-row, .site-header-primary-section-left, .site-header-primary-section-right) { gap: 12px; }
  .rhc-header-enabled #masthead #ast-desktop-header .main-header-menu { gap: 14px; }
  .rhc-header-enabled #masthead #ast-desktop-header .rhc-header-account-link { font-size: 0 !important; gap: 0; min-width: 44px; justify-content: center; }
  .rhc-header-enabled #masthead #ast-desktop-header .rhc-header-account-link .dashicons { font-size: 20px; }
  .rhc-header-enabled #masthead.rhc-h-compact #ast-desktop-header .custom-logo-link img { width: 170px !important; max-width: 170px !important; }
}
@media (max-width: 544px) {
  .rhc-header-enabled #masthead #ast-mobile-header .custom-logo-link img { width: 150px !important; max-width: calc(100vw - 200px) !important; }
  .rhc-header-enabled #masthead .rhc-h-panel { right: 8px; width: calc(100% - 16px); padding: 18px; max-height: calc(100dvh - 125px); }
  .rhc-header-enabled #masthead .rhc-h-drawer { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rhc-header-enabled #masthead :is(.rhc-h-action,a) { transition: color .16s ease, background-color .16s ease; }
  .rhc-header-enabled #masthead :is(.rhc-h-panel:not([hidden]),.rhc-h-drawer[open],.rhc-h-menu-open > .sub-menu) { animation: rhc-header-appear .15s ease-out; }
}
@keyframes rhc-header-appear { from { opacity: 0; } to { opacity: 1; } }
/* The offer band stays in page flow and is never part of the sticky header. */
.rhc-header-enabled .rhc-h-offers { --rhc-band-height: 41.4px; background: #10182e; color: #fff; border-bottom: 1.8px solid #c9a247; box-sizing: border-box; }
.rhc-header-enabled .rhc-h-offers .rhc-offer-bar__link { display: flex; align-items: center; justify-content: center; min-height: 39.6px; padding: 8px 20px; box-sizing: border-box; color: #fff; font: 13px/1.5 Arial,sans-serif; }
.rhc-header-enabled .rhc-h-offers .rhc-offer-bar__link { text-align: center; text-decoration: none; }
.rhc-header-enabled .rhc-h-offers .rhc-offer-bar__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rhc-header-enabled .rhc-h-offers.rhc-ticker { display: flex; height: var(--rhc-band-height); }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__track { display: flex; width: max-content; height: 100%; animation: rhc-header-offers 48s linear infinite; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__group { display: flex; align-items: center; justify-content: space-around; flex: 0 0 auto; min-width: calc(100vw - 100px); }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__item { display: flex; align-items: center; height: 100%; gap: 10px; padding: 0 80px; white-space: nowrap; color: #fff; font: 13px/1.5 Arial,sans-serif; text-decoration: none; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__crown { display: block; flex: 0 0 24px; width: 24px; height: 18px; margin: 0 40px; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__item:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__item:focus-visible { outline: 2px solid #ead18d; outline-offset: -3px; }
.rhc-header-enabled .rhc-h-offers :is(.rhc-ticker__tag,.dashicons) { color: #ead18d; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__pause { flex-shrink: 0; width: 100px; min-width: 100px; min-height: 0; border: 0; border-left: 1px solid #ffffff38; border-radius: 0; background: #10182e; color: #ead18d; padding: 0 10px; font: 13px/1.5 Arial,sans-serif; }
.rhc-header-enabled .rhc-h-offers.rhc-ticker--paused .rhc-ticker__track { animation-play-state: paused; }
/* Pointer focus freezes the current position; keyboard focus exposes every link. */
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport:focus-within { overflow: hidden; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport:is(:active, :focus-within) .rhc-ticker__track { animation-play-state: paused; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport:has(a:focus-visible) { overflow-x: auto; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport:has(a:focus-visible) .rhc-ticker__track { animation: none; transform: none; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport { scrollbar-width: none; }
.rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport::-webkit-scrollbar { display: none; }
@keyframes rhc-header-offers { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rhc-header-enabled .rhc-h-offers .rhc-ticker__track { animation: none !important; transform: none !important; }
  .rhc-header-enabled .rhc-h-offers .rhc-ticker__viewport { overflow-x: auto; }
  .rhc-header-enabled .rhc-h-offers :is(.rhc-ticker__group[aria-hidden],.rhc-ticker__pause) { display: none; }
}
