.rx-cart-draft-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.rx-cart-detach-button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff4f3;
  color: #9f2d38;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rx-cart-detach-button:hover {
  background: #fee7e5;
  color: #84232d;
}

.rx-cart-detach-button:focus-visible,
.rx-cart-detach-toast__undo:focus-visible {
  outline: 3px solid rgba(13, 38, 71, 0.28);
  outline-offset: 3px;
}

.rx-cart-detach-button .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.rx-cart-detach-toast {
  position: fixed;
  z-index: 1300;
  inset-inline-start: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 52px;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #0d2647;
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(13, 38, 71, 0.58);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rx-cart-detach-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rx-cart-detach-toast__undo {
  min-width: 64px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0d2647;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 360px) {
  .rx-cart-detach-toast {
    width: calc(100vw - 24px);
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-cart-detach-button,
  .rx-cart-detach-toast {
    transition: none;
  }
}

/*
 * Approved storefront header palette.
 * The primary bar uses five vertically blended blue levels: darkest at the
 * top and progressively lighter toward the category bar. The secondary bar
 * stays warm cream/gold rather than returning to plain white.
 */
body.customer-storefront-v3 .header {
  background:
    linear-gradient(
      to bottom,
      rgba(18, 57, 105, 0.90) 0%,
      rgba(49, 91, 143, 0.82) 22%,
      rgba(94, 133, 179, 0.68) 46%,
      rgba(160, 187, 216, 0.56) 72%,
      rgba(236, 243, 250, 0.96) 100%
    ) !important;
  border-bottom-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body.customer-storefront-v3 .header-search {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.66) !important;
  box-shadow: 0 8px 22px rgba(7, 29, 56, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.customer-storefront-v3 .cart-btn--shopping,
body.customer-storefront-v3 .header-cta {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 8px 20px rgba(7, 29, 56, 0.07);
}

body.customer-storefront-v3 .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

body.customer-storefront-v3 .smart-nav-shell,
body.customer-storefront-v3 .smart-nav-shell.is-stuck {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 251, 242, 0.98) 0%,
      rgba(250, 239, 216, 0.98) 52%,
      rgba(244, 225, 190, 0.98) 100%
    ) !important;
  border-bottom-color: rgba(197, 161, 90, 0.30) !important;
  box-shadow: 0 8px 24px rgba(94, 67, 23, 0.055) !important;
}

body.customer-storefront-v3 [data-smart-nav-category]:hover {
  background: rgba(255, 255, 255, 0.54) !important;
}

body.customer-storefront-v3 [data-smart-nav-category][aria-current="page"] {
  background: rgba(255, 255, 255, 0.68) !important;
  border-color: rgba(23, 123, 104, 0.20) !important;
  box-shadow: 0 6px 18px rgba(94, 67, 23, 0.06) !important;
}
