/**
 * AL NAQSHA premium RTL/LTR header.
 * Fully scoped: no global body, nav, typography or Elementor overrides.
 */
.rug-premium-header {
  --rug-header-navy: #09283a;
  --rug-header-navy-deep: #061d2a;
  --rug-header-cream: #fffaf2;
  --rug-header-gold: #c9a568;
  --rug-header-gold-strong: #e0bc78;
  --rug-header-line: rgba(222,189,129,.28);
  position: relative;
  isolation: isolate;
  z-index: 100;
  display: block;
  width: 100%;
  color: #fff7e6;
  background: var(--rug-header-navy);
  font-family: "Alexandria", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.4;
}
.rug-premium-header, .rug-premium-header * { box-sizing: border-box; }
.rug-premium-header [hidden] { display: none !important; }
.rug-premium-header a { text-decoration: none; }
.rug-premium-header button,
.rug-premium-header input { font-family: inherit; }
.rug-premium-header button:focus-visible,
.rug-premium-header input:focus-visible,
.rug-premium-header a:focus-visible { outline: 2px solid var(--rug-header-gold-strong); outline-offset: 3px; }
.rug-premium-header__container { max-width: 1440px; margin: 0 auto; padding-inline: clamp(16px,3vw,52px); }
.rug-premium-header__announcement {
  background: var(--rug-header-navy-deep);
  color: #f4e9d7;
  border-bottom: 1px solid var(--rug-header-line);
  font-size: 11px;
  font-weight: 500;
}
.rug-premium-header__announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  min-height: 33px;
}
.rug-premium-header__announcement-inner > span {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.rug-premium-header__announcement svg { width: 16px; height: 16px; color: var(--rug-header-gold-strong); }
.rug-premium-header__surface { position: relative; background: var(--rug-header-navy); }
.rug-premium-header__surface::before,
.rug-premium-header__surface::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 49px;
  background: url("rug-premium-ornament.svg") center top / 48px auto repeat-y;
  opacity: .47;
  pointer-events: none;
  z-index: 0;
}
.rug-premium-header__surface::before { inset-inline-start: 0; }
.rug-premium-header__surface::after { inset-inline-end: 0; transform: scaleX(-1); }
.rug-premium-header__main,
.rug-premium-header__desktop-nav { position: relative; z-index: 1; }
.rug-premium-header__main {
  display: flex;
  align-items: center;
  gap: clamp(12px,1.7vw,28px);
  min-height: 91px;
}
.rug-premium-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 162px;
  color: #fff;
}
.rug-premium-header__brand-copy { display: flex; flex-direction: column; gap: 0; text-align: start; }
.rug-premium-header__brand-copy strong { font-size: 27px; letter-spacing: -.04em; line-height: 1.2; font-weight: 700; white-space: nowrap; color: #fff; }
.rug-premium-header__brand-copy small { font-family: Georgia,serif; letter-spacing: .08em; color: #f2d6a2; font-size: 10px; white-space: nowrap; }
.rug-premium-header__brand-flower {
  color: var(--rug-header-gold-strong);
  font-family: Georgia,serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 12px rgba(220,166,65,.15);
}
.rug-premium-header__logo-image { width: auto; max-height: 60px; max-width: 220px; object-fit: contain; }
.rug-premium-header__desktop-search { flex: 1 1 390px; min-width: 190px; max-width: 475px; margin-inline: auto; }
.rug-premium-header__search { display: flex; align-items: stretch; height: 42px; border: 1px solid rgba(235,211,166,.42); border-radius: 30px; overflow: hidden; background: rgba(255,255,255,.085); box-shadow: inset 0 1px 3px rgba(0,0,0,.1); }
.rug-premium-header__search input[type=search] { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; border-radius: 0; padding: 0 17px; box-shadow: none; outline: 0; color: #fff !important; font-size: 12px; line-height: 42px; text-align: start; height: 42px; }
.rug-premium-header__search input[type=search]::placeholder { color: rgba(255,251,241,.68); opacity: 1; }
.rug-premium-header__search button { flex: 0 0 46px; display: grid; place-items: center; height: 100%; padding: 0; border: 0; border-radius: 0; background: var(--rug-header-gold); color: #122b34; cursor: pointer; }
.rug-premium-header__search button:hover { background: var(--rug-header-gold-strong); }
.rug-premium-header__search button svg { width: 19px; height: 19px; }
.rug-premium-header__actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.rug-premium-header__desktop-control { flex: 0 0 auto; }
.rug-premium-header__icon-button {
  display: inline-flex; position: relative; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px; border: 1px solid transparent; border-radius: 12px;
  color: #fff9ed; background: transparent; padding: 0; margin: 0; cursor: pointer;
}
.rug-premium-header__icon-button svg { width: 21px; height: 21px; }
.rug-premium-header__icon-button:hover { background: rgba(255,255,255,.11); color: #f9d69d; }
.rug-premium-header__cart-count {
  position: absolute; top: -2px; inset-inline-start: -4px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px;
  background: var(--rug-header-gold-strong); color: #122b34;
  font: 800 10px/17px "Segoe UI",Tahoma,sans-serif; text-align: center;
}
.rug-premium-header__cart-count.is-empty { display: none; }
.rug-premium-header__menu-toggle,
.rug-premium-header__mobile-search-button,
.rug-premium-header__mobile-search { display: none; }
.rug-premium-header__desktop-nav { border-top: 1px solid rgba(240,213,162,.19); min-height: 48px; }
.rug-premium-header__menu { display: flex; justify-content: center; align-items: stretch; gap: clamp(5px,1.45vw,23px); list-style: none; padding: 0; margin: 0; }
.rug-premium-header__menu > li { position: relative; margin: 0; padding: 0; list-style: none; }
.rug-premium-header__menu > li > a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 12px;
  color: #fff9ed; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.rug-premium-header__menu > li.current-menu-item > a,
.rug-premium-header__menu > li.current-menu-ancestor > a,
.rug-premium-header__menu > li > a:hover,
.rug-premium-header__menu > li > a:focus-visible { color: #f5d497; border-color: var(--rug-header-gold); }
.rug-premium-header__menu .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-inline-start: 9px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.rug-premium-header__desktop-nav .sub-menu {
  display: block; visibility: hidden; opacity: 0; transform: translateY(10px); pointer-events: none;
  position: absolute; inset-inline-start: 0; top: calc(100% - 2px);
  margin: 0; padding: 11px 9px; min-width: 220px; max-width: min(340px,90vw);
  border: 1px solid #e9dfcd; border-top: 2px solid var(--rug-header-gold);
  border-radius: 0 0 12px 12px; background: var(--rug-header-cream);
  list-style: none; color: #123042; box-shadow: 0 16px 34px rgba(7,28,40,.2);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 9;
}
.rug-premium-header__desktop-nav li:hover > .sub-menu,
.rug-premium-header__desktop-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.rug-premium-header__desktop-nav .sub-menu li { position: relative; margin: 0; list-style: none; }
.rug-premium-header__desktop-nav .sub-menu a { display: block; color: #133144; padding: 10px 12px; border-radius: 7px; font-size: 13px; line-height: 1.5; white-space: normal; }
.rug-premium-header__desktop-nav .sub-menu a:hover,
.rug-premium-header__desktop-nav .sub-menu a:focus-visible { color: #855a22; background: #f5ecde; }
.rug-premium-header__desktop-nav .sub-menu .sub-menu { inset-block-start: -11px; inset-inline-start: calc(100% - 1px); }
.rug-premium-header__mobile-drawer, .rug-premium-header__mobile-overlay { display: none; }
/* Lock page scrolling only while the accessible mobile menu is open. */
body.rug-premium-header--drawer-open { overflow: hidden; }
/* Existing shortcode UI: override only inside our header, not other page widgets. */
.rug-premium-header .rug-country-switcher .rug-country-button,
.rug-premium-header .rug-language-switcher .rug-language-button {
  height: 39px!important; min-height: 39px!important; min-width: auto!important;
  padding: 0 10px!important; border: 1px solid rgba(230,192,123,.5)!important;
  background: rgba(255,255,255,.06)!important; box-shadow: none!important;
  color: #fff5e2!important; border-radius: 22px!important;
}
.rug-premium-header .rug-language-switcher .rug-language-current-name,
.rug-premium-header .rug-language-switcher .rug-language-globe { color: #fff5e2!important; }
.rug-premium-header .rug-language-switcher .rug-language-globe svg { stroke: #fff5e2!important; }
.rug-premium-header .rug-language-switcher .rug-language-current-code { background: rgba(228,190,120,.2)!important; color: #fce3b8!important; }
.rug-premium-header .rug-country-switcher .rug-country-button:hover,
.rug-premium-header .rug-language-switcher .rug-language-button:hover { border-color: #f3d8aa!important; background: rgba(255,255,255,.14)!important; }
.rug-premium-header .rug-country-switcher .rug-country-menu,
.rug-premium-header .rug-language-switcher .rug-language-menu { color: #152e40!important; direction: inherit; }
/* Narrow desktop */
@media (max-width: 1150px) {
  .rug-premium-header__desktop-nav .rug-premium-header__menu { gap: 2px; }
  .rug-premium-header__menu > li > a { padding-inline: 7px; font-size: 12px; }
  .rug-premium-header__main { gap: 10px; }
  .rug-premium-header__desktop-search { max-width: 320px; }
  .rug-premium-header__actions { gap: 5px; }
  .rug-premium-header__brand { min-width: 135px; gap: 6px; }
  .rug-premium-header__brand-copy strong { font-size: 23px; }
}
@media (max-width: 1000px) {
  .rug-premium-header { z-index: 10001; }
  .rug-premium-header__announcement-inner { justify-content: center; min-height: 31px; }
  .rug-premium-header__announcement-inner > span:not(:first-child) { display: none; }
  .rug-premium-header__main { min-height: 68px; gap: 10px; }
  .rug-premium-header__surface::before, .rug-premium-header__surface::after { width: 24px; background-size: 26px auto; opacity: .4; }
  .rug-premium-header__menu-toggle { display: inline-flex; order: 0; }
  .rug-premium-header__brand { order: 1; margin-inline-end: auto; min-width: 0; }
  .rug-premium-header__brand-copy strong { font-size: 22px; }
  .rug-premium-header__brand-copy small { font-size: 9px; }
  .rug-premium-header__brand-flower { font-size: 32px; }
  .rug-premium-header__logo-image { max-width: min(36vw,165px); max-height: 51px; }
  .rug-premium-header__actions { order: 2; margin-inline-start: auto; }
  .rug-premium-header__desktop-control,
  .rug-premium-header__desktop-search,
  .rug-premium-header__desktop-nav { display: none; }
  .rug-premium-header__mobile-search-button { display: inline-flex; }
  .rug-premium-header__account { display: none; }
  .rug-premium-header__mobile-search:not([hidden]) { display: block; padding: 0 16px 14px; background: var(--rug-header-navy); }
  .rug-premium-header__mobile-search .rug-premium-header__search { width: 100%; max-width: 760px; margin: auto; }
  .rug-premium-header__mobile-overlay:not([hidden]) { position: fixed; inset: 0; display: block; background: rgba(4,20,30,.65); z-index: 10004; }
  .rug-premium-header__mobile-drawer:not([hidden]) {
    display: flex; flex-direction: column; position: fixed;
    top: 0; bottom: 0; inset-inline-start: 0; width: min(390px,89vw);
    z-index: 10005; background: #fffdf9; color: #122c3d;
    box-shadow: -12px 0 44px rgba(0,0,0,.25); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .rug-premium-header__drawer-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 20px 19px; min-height: 81px; border-bottom: 1px solid #eadfcb; }
  .rug-premium-header__drawer-brand { display: inline-flex; gap: 12px; align-items: center; }
  .rug-premium-header__drawer-brand .rug-premium-header__brand-copy strong { color: #09283a; }
  .rug-premium-header__drawer-brand .rug-premium-header__brand-copy small { color: #956e35; }
  .rug-premium-header__drawer-heading .rug-premium-header__icon-button { color: #143346; border-color: #e9dfd0; }
  .rug-premium-header__drawer-heading .rug-premium-header__icon-button:hover { background: #f8eedf; }
  .rug-premium-header__mobile-nav { display: block; padding: 15px 16px 10px; }
  .rug-premium-header__mobile-nav .rug-premium-header__menu { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .rug-premium-header__mobile-nav .rug-premium-header__menu > li { display: flex; flex-wrap: wrap; align-items: center; position: relative; border-bottom: 1px solid #eee5d9; }
  .rug-premium-header__mobile-nav .rug-premium-header__menu a {
    color: #1c3749; font-size: 14px; min-height: 49px;
    display: inline-flex; align-items: center; flex: 1 1 70%; padding: 12px;
    background: transparent; border-radius: 8px;
  }
  .rug-premium-header__mobile-nav .rug-premium-header__menu > li.current-menu-item > a,
  .rug-premium-header__mobile-nav .rug-premium-header__menu > li.current-menu-ancestor > a { background: #faf0df; color: #885d24; }
  .rug-premium-header__mobile-nav .menu-item-has-children > a::after { display: none; }
  .rug-premium-header__submenu-toggle { flex: 0 0 42px; min-width: 42px; min-height: 42px; border: 0; background: transparent; color: #85622e; cursor: pointer; }
  .rug-premium-header__submenu-toggle svg { transition: transform .2s ease; }
  .rug-premium-header__submenu-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
  .rug-premium-header__mobile-nav .sub-menu { position: static; display: none; flex: 0 0 100%; width: 100%; margin: 0 0 7px; padding: 0 12px; background: #faf6ef; border-radius: 8px; list-style: none; }
  .rug-premium-header__mobile-nav .sub-menu.is-open { display: block; }
  .rug-premium-header__mobile-nav .sub-menu li { list-style: none; margin: 0; }
  .rug-premium-header__mobile-nav .sub-menu a { font-size: 13px; min-height: 41px; }
  .rug-premium-header__drawer-selectors { display: flex; flex-wrap: wrap; gap: 11px; justify-content: flex-start; padding: 22px 18px; margin-top: auto; border-top: 1px solid #eee3d6; }
  .rug-premium-header__drawer-selectors .rug-country-switcher .rug-country-button,
  .rug-premium-header__drawer-selectors .rug-language-switcher .rug-language-button { background: #fff!important; border-color: #d9c9b2!important; color: #132f40!important; border-radius: 10px!important; }
  .rug-premium-header__drawer-selectors .rug-language-switcher .rug-language-current-name,
  .rug-premium-header__drawer-selectors .rug-language-switcher .rug-language-globe { color: #132f40!important; }
  .rug-premium-header__drawer-selectors .rug-language-switcher .rug-language-globe svg { stroke: #132f40!important; }
  .rug-premium-header__drawer-selectors .rug-language-switcher .rug-language-current-code { background: #f4ead9!important; color: #875f2b!important; }
  .rug-premium-header__drawer-account { display: flex; align-items: center; gap: 9px; padding: 17px 22px 25px; color: #153346!important; font-size: 13px; font-weight: 650; border-top: 1px solid #eee3d6; }
  .rug-premium-header__drawer-account svg { width: 20px; color: #b58e51; }
}
@media (max-width: 480px) {
  .rug-premium-header__container { padding-inline: 14px; }
  .rug-premium-header__main { min-height: 60px; gap: 4px; }
  .rug-premium-header__icon-button { min-width: 36px; width: 36px; height: 38px; }
  .rug-premium-header__brand-copy strong { font-size: 18px; }
  .rug-premium-header__brand-copy small { font-size: 8px; }
  .rug-premium-header__brand-flower { font-size: 26px; }
  .rug-premium-header__actions { gap: 2px; }
  .rug-premium-header__mobile-search:not([hidden]) { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rug-premium-header__desktop-nav .sub-menu,
  .rug-premium-header__submenu-toggle svg { transition: none; }
}


/* v0.25.31: make account/cart visible even under Elementor's inherited icon rules. */
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button,
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button:link,
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button:visited {
  color: #fff9ed !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #fff9ed;
}
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button svg,
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button svg * {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9px !important;
}
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button:hover,
.rug-premium-header .rug-premium-header__actions > .rug-premium-header__icon-button:focus-visible {
  color: #f5d192 !important;
  -webkit-text-fill-color: #f5d192;
  background: rgba(255,255,255,.12);
}
body.rug-premium-header--cart-open { overflow: hidden; }
/* Cart slides in from the physical RIGHT in Arabic AND English. */
.rug-premium-header__cart-overlay:not([hidden]) {
  display: block; position: fixed; inset: 0; z-index: 10010;
  background: rgba(3,16,26,.58); backdrop-filter: blur(2px);
}
.rug-premium-header__cart-panel:not([hidden]) {
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; right: 0; left: auto;
  width: min(450px,100vw); height: 100vh; height: 100dvh;
  z-index: 10011; background: #fffdf8; color: #173044;
  border-left: 1px solid #dbc49d;
  box-shadow: -18px 0 55px rgba(3,19,29,.25);
  font-size: 14px; text-align: start; overflow: hidden;
}
.rug-premium-header__cart-heading {
  flex: 0 0 auto; min-height: 98px; padding: 22px 25px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #0a2b3c; color: #fff8e9;
  border-bottom: 3px solid #c9a568;
  background-image: url("rug-premium-ornament.svg");
  background-position: right center; background-size: 32px auto;
  background-repeat: repeat-y;
}
.rug-premium-header__cart-eyebrow {
  display: block; color: #eacb98; font: 600 10px/1.2 Georgia,serif;
  letter-spacing: .15em; margin-bottom: 7px; direction: ltr;
  text-align: start;
}
.rug-premium-header__cart-heading h2 {
  margin: 0; font: 700 21px/1.5 "Alexandria","Noto Sans Arabic",sans-serif;
  color: #fff9ed;
}
.rug-premium-header__cart-close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px; width: 40px; height: 40px; color: #fff9ed; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(232,205,161,.48);
  border-radius: 12px; padding: 0;
}
.rug-premium-header__cart-close:hover { background: #bb985f; color: #082637; }
.rug-premium-header__cart-close svg { width: 20px; height: 20px; }
.rug-premium-header__cart-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  overscroll-behavior: contain; display: flex; flex-direction: column;
  scrollbar-color: #d8c6a9 #fffdf8;
}
.rug-premium-header__cart-body[aria-busy=true] { opacity: .68; }
.rug-header-cart__loading {
  text-align: center; color: #456173; margin: auto; padding: 38px 20px;
}
.rug-header-cart__items {
  list-style: none; margin: 0; padding: 12px 22px 0;
  display: flex; flex-direction: column; gap: 0;
}
.rug-header-cart__item {
  display: grid; grid-template-columns: 92px minmax(0,1fr);
  gap: 15px; padding: 17px 0; border-bottom: 1px solid #eee3d4;
  align-items: start;
}
.rug-header-cart__item-media { border: 1px solid #eadfce; border-radius: 11px; overflow: hidden; background: #f6f0e7; aspect-ratio: 1; }
.rug-header-cart__item-media a { display: block; height: 100%; }
.rug-header-cart__item-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rug-header-cart__item-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.rug-header-cart__item-name {
  color: #143246 !important; font-size: 13px; line-height: 1.65;
  font-weight: 700; text-align: start;
}
.rug-header-cart__item-name:hover { color: #9e703a !important; }
.rug-header-cart__quantity { font-size: 12px; color: #6f7d84; }
.rug-header-cart__line-price { font-size: 14px; color: #0e3143; font-weight: 700; }
.rug-header-cart__variation { color: #667b86; font-size: 11px; }
.rug-header-cart__variation dl.variation { display: flex; flex-wrap: wrap; margin: 0; gap: 2px 6px; }
.rug-header-cart__variation dt, .rug-header-cart__variation dd { font-size: 11px; margin: 0; }
.rug-header-cart__variation p { margin: 0; }
.rug-header-cart__footer {
  flex: 0 0 auto; display: flex; flex-direction: column;
  padding: 22px 23px calc(22px + env(safe-area-inset-bottom,0px));
  margin-top: auto; background: #f9f2e8; border-top: 1px solid #e4d5bf;
  gap: 11px;
}
.rug-header-cart__subtotal {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 9px; color: #344b58;
}
.rug-header-cart__subtotal strong { color: #082c3f; font-size: 17px; }
.rug-header-cart__checkout,
.rug-header-cart__view-cart,
.rug-header-cart__empty a {
  text-align: center; display: flex; align-items: center; justify-content: center;
  min-height: 46px; width: 100%; padding: 10px 14px;
  border-radius: 11px; font-size: 13px; line-height: 1.5; font-weight: 700;
  text-decoration: none !important;
}
.rug-header-cart__checkout,
.rug-header-cart__empty a {
  background: linear-gradient(125deg,#b88b46,#d2ae72); color: #092535 !important;
  box-shadow: 0 3px 8px rgba(107,75,38,.13);
}
.rug-header-cart__checkout:hover,
.rug-header-cart__empty a:hover { filter: brightness(1.06); }
.rug-header-cart__view-cart {
  border: 1px solid #bd9d6d; background: transparent; color: #4a3925 !important;
}
.rug-header-cart__view-cart:hover { background: #eee1cc; }
.rug-header-cart__empty {
  min-height: 300px; flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 35px 25px;
  gap: 12px; color: #344c5d;
}
.rug-header-cart__empty-icon {
  font: 90px/1 Georgia,serif; color: #b99a65; margin-bottom: 8px;
}
.rug-header-cart__empty strong { font-size: 17px; color: #163448; }
.rug-header-cart__empty p { font-size: 12px; line-height: 1.8; color: #627583; margin: 0 0 14px; }
.rug-header-cart__empty a { max-width: 205px; }
.rug-premium-header__cart-retry:not([hidden]) {
  display: flex; align-items: center; flex-direction: column;
  justify-content: center; gap: 12px; margin: auto; padding: 20px;
  color: #344b58; text-align: center;
}
.rug-premium-header__cart-retry button,
.rug-premium-header__cart-retry a {
  cursor: pointer; background: #c6a267; color: #122f41 !important;
  border-radius: 9px; border: 0; padding: 11px 19px;
}
.rug-premium-header__cart-retry a { background: transparent; text-decoration: underline; }
@media (max-width: 1000px) {
  /* Account now visible in the mobile header, alongside Search and Cart. */
  .rug-premium-header .rug-premium-header__actions .rug-premium-header__account {
    display: inline-flex;
  }
  .rug-premium-header__cart-panel:not([hidden]) {
    width: min(430px,100vw);
  }
}
@media (max-width: 480px) {
  .rug-premium-header__cart-panel:not([hidden]) { width: 100vw; }
  .rug-premium-header__cart-heading { padding: 17px 18px; min-height: 83px; }
  .rug-header-cart__items { padding-inline: 18px; }
  .rug-header-cart__item { grid-template-columns: 83px minmax(0,1fr); gap: 12px; }
  .rug-header-cart__footer { padding-inline: 18px; }
  .rug-premium-header__main { column-gap: 0; }
  .rug-premium-header__brand { gap: 3px; }
  .rug-premium-header__actions { gap: 0; }
}

/* While refreshing, never display outdated cart prices or items. */
.rug-premium-header__cart-body[aria-busy="true"] {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  color: #546b7b;
}

/* Hide the header cart icon on mobile; desktop cart remains available. */
@media (max-width: 1000px) {
  .rug-premium-header .rug-premium-header__actions > .rug-premium-header__cart {
    display: none !important;
  }
}
