/* Hidden header menus, removal states and transient collection notices. */
.site-header .header-action-popover {
  top: calc(100% - 1px);
  width: min(446px, calc(100vw - 24px));
}

.site-header [data-header-menu="cart"] .header-action-popover {
  display: flex;
  max-height: min(520px, calc(100dvh - 96px));
  overflow: hidden;
  box-sizing: border-box;
  flex-direction: column;
}

.site-header [data-header-menu="cart"] .header-action-popover__title,
.site-header [data-header-menu="cart"] .header-action-popover__footer {
  flex: 0 0 auto;
}

.site-header [data-header-menu="cart"] .header-action-popover__items {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.site-header [data-header-menu="cart"] .header-action__summary strong {
  min-width: 7.5ch;
  font-variant-numeric: tabular-nums;
}

.site-header .header-action-menu.is-open .header-action-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}


.site-header .header-action-product-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
  transition: opacity .12s ease, transform .12s ease;
}

.site-header .header-action-product-row:hover { background: #faf7f5; }
.site-header .header-action-product-row.is-removing { opacity: 0; transform: translateX(8px); }
.site-header .header-action-product-row .header-action-product:hover { background: transparent !important; }

.site-header .header-action-product > b .woocommerce-Price-amount,
.site-header .header-action-product > b .woocommerce-Price-currencySymbol {
  display: inline-flex !important;
  width: auto;
  height: auto;
  border-radius: 0;
  white-space: nowrap;
}

.site-header .header-action-product > b .woocommerce-Price-amount {
  align-items: baseline;
  gap: .18em;
}

.site-header [data-header-menu="cart"] .header-action-product > b {
  display: inline-flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
}

.site-header [data-header-menu="cart"] .header-action-product > b del {
  position: relative;
  color: #8b93a1;
  font-size: .69rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header [data-header-menu="cart"] .header-action-product > b del::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  pointer-events: none;
}

.site-header [data-header-menu="cart"] .header-action-product > b ins {
  color: var(--atlas-red, #e30613);
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}

.site-header .header-action-product__remove {
  display: inline-grid !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  place-items: center;
  align-self: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #7d8795 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
}

.site-header .header-action-product__remove:hover,
.site-header .header-action-product__remove:focus-visible {
  outline: none;
  background: #fff0f1 !important;
  color: var(--atlas-red, #e30613) !important;
  transform: scale(1.06);
}

.site-header .header-action-product__remove:disabled { cursor: wait; opacity: .45; }

/* WooCommerce gives generic `a.remove` links a red resting state. Collection
 * removals reuse the cart link markup, so keep their resting and hover colours
 * identical to the cart control as well. */
.site-header [data-header-products] a.header-action-product__remove.remove {
  background: transparent !important;
  color: #7d8795 !important;
}

.site-header [data-header-products] a.header-action-product__remove.remove:hover,
.site-header [data-header-products] a.header-action-product__remove.remove:focus-visible {
  background: #fff0f1 !important;
  color: var(--atlas-red, #e30613) !important;
}

.site-header .header-action-popover__footer .button {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--atlas-red, #e30613);
  border-radius: 9px;
  background-color: var(--atlas-red, #e30613) !important;
  background-image: linear-gradient(120deg, #f20b18 0%, #e30613 42%, #c8000b 72%, #ad0009 100%) !important;
  background-position: 0 50%;
  background-size: 180% 100%;
  box-shadow: 0 8px 18px rgba(227, 6, 19, .16);
  color: #fff !important;
  font-weight: 750;
  transition: color .18s ease, background-position .22s ease, box-shadow .18s ease, transform .18s ease;
}

.site-header .header-action-popover__footer .button::before {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -42%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
  transition: left .34s ease;
}

.site-header .header-action-popover__footer .button:hover,
.site-header .header-action-popover__footer .button:focus-visible {
  border-color: #bd0711;
  background-color: #bd0711 !important;
  background-image: linear-gradient(120deg, #df0714 0%, #cf0612 42%, #b9000a 72%, #950008 100%) !important;
  background-position: 100% 50%;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .12), 0 12px 26px rgba(227, 6, 19, .26);
  transform: translateY(-2px);
}

.site-header .header-action-popover__footer .button:hover::before,
.site-header .header-action-popover__footer .button:focus-visible::before { left: 114%; }

/* Cart removal is immediate; the WooCommerce undo notice is intentionally unavailable site-wide. */
.woocommerce-message:has(.restore-item) {
  display: none !important;
}
a.added_to_cart.wc-forward { display: none !important; }


.atlas-collection-toast {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 100200;
  display: grid;
  width: min(330px, calc(100vw - 32px));
  min-height: 126px;
  grid-template-columns: 76px minmax(0, 1fr) 26px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
  color: var(--atlas-ink, #111827);
  animation: atlas-collection-toast-in .2s ease both;
}
.admin-bar .atlas-collection-toast { top: 124px; }
.atlas-collection-toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; }
.atlas-collection-toast__media { display: grid; width: 76px; height: 98px; place-items: center; overflow: hidden; }
.atlas-collection-toast__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.atlas-collection-toast__content { display: grid; min-width: 0; gap: 6px; }
.atlas-collection-toast__content strong { font-size: .88rem; line-height: 1.25; }
.atlas-collection-toast__content > span { color: #536176; font-size: .78rem; }
.atlas-collection-toast__action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid var(--atlas-red, #e30613);
  border-radius: 9px;
  background: #fff;
  color: var(--atlas-red, #e30613);
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.atlas-collection-toast__action:hover,
.atlas-collection-toast__action:focus-visible { outline: 0; background: #fff3f4; color: #bd0711; }
.atlas-collection-toast__close {
  align-self: start;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c8494;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.atlas-collection-toast__close:hover { color: var(--atlas-red, #e30613); }
@keyframes atlas-collection-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 560px) {
  .atlas-collection-toast,
  .admin-bar .atlas-collection-toast { top: 74px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-collection-toast { animation: none; }
}

.header-compare-picker { position: relative; display: flex; align-items: center; }
.header-compare-picker__panel {
  position: absolute; top: 100%; right: 0; z-index: 1100;
  width: 270px; max-width: calc(100vw - 24px); padding: 16px;
  background: #fff; border: 1px solid #e3e7ed; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(9, 35, 65, .16); color: #092341;
}
.header-compare-picker__panel[hidden] { display: none; }
.header-compare-picker__panel > strong { display: block; margin-bottom: 8px; font-size: 15px; }
.header-actions .header-compare-picker__panel a {
  display: block; padding: 12px; border-radius: 7px; font-size: 14px;
  text-align: left; line-height: 1.4;
}
.header-actions .header-compare-picker__panel a:is(:hover, :focus-visible) { background: #fff1f2; color: #e30613; }

/* Soft input frames on Atlantic; range handles and checkboxes retain their UI. */
html body.theme-atlas-storefront :is(.header-search,.mobile-search) .atlas-search-form,
html body.theme-atlas-storefront .atlas-filter-panel :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),select,textarea){border:1px solid #f0f1f3!important;border-radius:14px!important;box-shadow:0 8px 30px rgba(25,39,56,.075)!important}
html body.theme-atlas-storefront .atlas-filter-panel :is(input,select,textarea):focus-visible{outline:2px solid #e30613!important;outline-offset:2px}
/* Matching outer frames for delivery, about, support, returns and parts help. */
html body.theme-atlas-storefront :is(.atlas-delivery-page .atlas-delivery-card,.atlas-about-value,.atlas-about-category,.atlas-about-contact,.atlas-warranty-cards>article,.atlas-warranty-prepare,.atlas-parts .atlas-parts-support){border:1px solid #f0f1f3!important;border-radius:14px!important;box-shadow:0 8px 30px rgba(25,39,56,.075)!important}
/* The search form owns the frame; its input stays visually seamless. */
html body.theme-atlas-storefront :is(.header-search,.mobile-search) .atlas-search-form input[type=search]{border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;background:transparent!important}
html body.theme-atlas-storefront :is(.header-search,.mobile-search) .atlas-search-form:focus-within{border-color:#e30613!important}
/* Category links: a clear frame on hover and keyboard focus. */
html body.theme-atlas-storefront .atlas-about-category{transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}
@media(hover:hover){html body.theme-atlas-storefront .atlas-about-category:hover{border-color:#e30613!important}}
html body.theme-atlas-storefront .atlas-about-category:focus-visible{border-color:#e30613!important;outline:2px solid #e30613;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html body.theme-atlas-storefront .atlas-about-category{transition:none}}

@media (hover: hover) {
  html body .site-header [data-header-menu="cart"] .header-action-product-row
  a.header-action-product__remove.remove:is(:hover, :focus-visible) {
    background: #ffe8ec !important;
    color: #b50924 !important;
  }

  html body .site-header [data-header-menu="cart"] .header-action-product-row
  a.header-action-product__remove.remove:focus-visible {
    outline: 2px solid #b50924;
    outline-offset: 2px;
  }
}
