/*
 * ERPcommerce — storefront chrome baseline (4.514.0)
 * ===================================================
 *
 * Baseline styling for the self-contained interactive widgets the plugin
 * renders into a site's chrome from its own markup:
 *
 *   1. Notifications bell    — wp:erpcommerce/storefront-notifications-bell
 *   2. Account menu          — wp:erpcommerce/storefront-account-menu
 *   3. Cart-count loading    — wp:erpcommerce/cart-count (`data-state="loading"`)
 *   4. Product-preview drawer — storefront-product-drawer.js (single posts + help)
 *
 * WHY THIS FILE EXISTS
 * Until 4.514.0 every rule for these four surfaces lived ONLY in the
 * companion theme (erpcommerce-storefront/style.css). The plugin emitted
 * the markup and enqueued the JS on every theme, but shipped no CSS for
 * it — so on a client's own theme (the Default storefront tier, which is
 * most clients) the bell rendered as a bare button, the account dropdown
 * as an unstyled list, the cart badge spinner as an empty span, and the
 * drawer as a block of text at the bottom of the article. That split was
 * my 4.246.0 decision ("plugin owns commerce bodies; theme keeps the
 * CSS") and it was wrong for widgets whose markup the plugin generates.
 *
 * OVERRIDE CONTRACT — read before editing either side
 * This sheet is the FLOOR, not the ceiling. A theme overrides it two ways,
 * and both are guaranteed by how it is enqueued (Frontend::enqueue_chrome_css,
 * `wp_enqueue_scripts` priority 5):
 *   (a) Specificity — the companion theme scopes its bell/menu rules under
 *       `.cart-login-group …` (0,2,0), which outranks every (0,1,0) rule
 *       here regardless of load order.
 *   (b) Source order — this sheet is enqueued at priority 5 so a theme
 *       stylesheet enqueued at WordPress's default priority 10 prints AFTER
 *       it and wins every equal-specificity tie (the drawer rules are bare
 *       `.erpc-pd-*` on both sides — that is the case (b) covers).
 * Deliberately NOT written with `:where()` (zero specificity): a client
 * theme's `button { … }` reset (0,0,1) would then beat the drawer's CTA and
 * we would be back to unstyled buy buttons on exactly the tier this file
 * exists for.
 *
 * WHAT IS DELIBERATELY LEFT OUT
 * Header LAYOUT is the theme's: the 1rem inter-widget margins, the
 * `.cart-login-group` link resets, the cart badge's absolute offset over
 * the theme's cart icon. This sheet styles each widget's own box only.
 * Chrome slot-fillers whose markup uses the theme's vocabulary (phones,
 * delivery-location, megamenu content, account quick-nav) are NOT here —
 * by design they render into a theme-owned header and take its classes.
 *
 * Colours ride the always-on tokens (storefront-tokens.css, a declared
 * dependency) with literal fallbacks so the widgets still paint if a
 * theme strips the tokens.
 */

/* ---------------------------------------------------------------------
   Shared: visually-hidden text. Block themes do not ship WP core's
   `.screen-reader-text`, so the three widgets carry their own copy.
   --------------------------------------------------------------------- */
.erpc-notifications-bell .screen-reader-text,
.erpc-notifications-bell__panel .screen-reader-text,
.erpc-account-menu .screen-reader-text,
.erpc-account-menu__panel .screen-reader-text,
.erpc-pd-drawer .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  word-wrap: normal !important;
}

/* =====================================================================
   1. Notifications bell
   ===================================================================== */
.erpc-notifications-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.erpc-notifications-bell__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary, #595959);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.erpc-notifications-bell__trigger:hover,
.erpc-notifications-bell__trigger[aria-expanded="true"] {
  background: var(--surface-sunken, #f2f2f2);
  color: var(--text-primary, #111);
}
.erpc-notifications-bell__trigger:focus-visible {
  outline: 2px solid var(--outline-color, #0a48a8);
  outline-offset: 2px;
  background: var(--surface-sunken, #f2f2f2);
  color: var(--text-primary, #111);
}
.erpc-notifications-bell__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.erpc-notifications-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--error-color, #dc2626);
  color: var(--text-inverse, #ffffff);
  border: 2px solid var(--border-inverse, #ffffff);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

/* Panel is `position: fixed` on purpose — chrome-account-menu.js writes
   `top`/`left` inline from the trigger's getBoundingClientRect() (viewport
   coordinates), and fixed is the only positioning those coordinates are
   correct for. It also escapes any overflow-clipping header container. */
.erpc-notifications-bell__panel {
  position: fixed;
  z-index: 45;
  width: 360px;
  max-width: calc(100vw - 1rem);
  background: var(--surface-base, #ffffff);
  border: 1px solid var(--border-strong, #d9d9d9);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  color: var(--text-primary, #111);
  text-align: left;
}
.erpc-notifications-bell__panel[hidden] {
  display: none;
}
.erpc-notifications-bell__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-default, #e5e7eb);
  background: var(--surface-subtle, #fafafa);
}
.erpc-notifications-bell__panel-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #111);
  letter-spacing: 0.01em;
}
.erpc-notifications-bell__mark-all {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--link-color, #0073e6);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.erpc-notifications-bell__mark-all:hover {
  color: var(--link-hover-color, #005bb5);
  text-decoration: underline;
}
.erpc-notifications-bell__mark-all:focus-visible {
  outline: 2px solid var(--outline-color, #0a48a8);
  outline-offset: 2px;
  border-radius: 3px;
}
.erpc-notifications-bell__mark-all:disabled {
  color: var(--text-subtle, #8c8c8c);
  cursor: default;
}
.erpc-notifications-bell__mark-all[hidden] {
  display: none;
}
.erpc-notifications-bell__panel-body {
  padding: 0;
  min-height: 80px;
  max-height: min(28rem, 60vh);
  overflow-y: auto;
}
.erpc-notifications-bell__empty {
  margin: 0;
  padding: 1.75rem 1rem;
  color: var(--text-muted, #737373);
  font-size: 0.875rem;
  text-align: center;
}
.erpc-notifications-bell__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.erpc-notifications-bell__item + .erpc-notifications-bell__item {
  border-top: 1px solid var(--gray-100, #f2f2f2);
}
.erpc-notifications-bell__item.is-unread {
  background: var(--surface-subtle, #fafafa);
}
.erpc-notifications-bell__item-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0;
  color: var(--text-primary, #111);
  font-size: 0.875rem;
  text-align: left;
  text-decoration: none;
}
a.erpc-notifications-bell__item-link:hover {
  background: var(--surface-subtle, #fafafa);
  outline: none;
}
.erpc-notifications-bell__item.is-unread a.erpc-notifications-bell__item-link:hover {
  background: var(--surface-sunken, #f2f2f2);
}
a.erpc-notifications-bell__item-link:focus {
  outline: none;
}
a.erpc-notifications-bell__item-link:focus-visible {
  outline: 2px solid var(--outline-color, #0a48a8);
  outline-offset: -2px;
}
.erpc-notifications-bell__item-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-sunken, #f2f2f2);
  color: var(--text-secondary, #595959);
}
.erpc-notifications-bell__item-icon--approved {
  background: var(--notif-approved-bg, #e7f4ec);
  color: var(--notif-approved-fg, #15803d);
}
.erpc-notifications-bell__item-icon--rejected {
  background: var(--notif-rejected-bg, #fbeaea);
  color: var(--notif-rejected-fg, #d63638);
}
.erpc-notifications-bell__item-icon--pending {
  background: var(--notif-pending-bg, #fdf3e1);
  color: var(--notif-pending-fg, #996a13);
}
.erpc-notifications-bell__item-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}
.erpc-notifications-bell__item-title {
  font-weight: 600;
  color: var(--text-primary, #111);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.erpc-notifications-bell__item-body {
  color: var(--text-secondary, #595959);
  font-size: 0.8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.erpc-notifications-bell__item-time {
  color: var(--text-muted, #737373);
  font-size: 0.75rem;
}
.erpc-notifications-bell__item-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--link-color, #0073e6);
}
.erpc-notifications-bell__panel-footer {
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--border-default, #e5e7eb);
  background: var(--surface-subtle, #fafafa);
}
.erpc-notifications-bell__view-all {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--link-color, #0073e6);
  text-decoration: none;
}
.erpc-notifications-bell__view-all:hover,
.erpc-notifications-bell__view-all:focus-visible {
  color: var(--link-hover-color, #005bb5);
  text-decoration: underline;
}
.erpc-notifications-bell__view-all:focus-visible {
  outline: 2px solid var(--outline-color, #0a48a8);
  outline-offset: 2px;
  border-radius: 3px;
}

/* =====================================================================
   2. Account menu
   ===================================================================== */
.erpc-account-menu {
  position: relative;
  padding: 0;
}
.erpc-account-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--gray-800, #404040);
  transition: background-color 120ms ease, color 120ms ease;
}
.erpc-account-menu__trigger:hover,
.erpc-account-menu__trigger[aria-expanded="true"] {
  background: var(--surface-sunken, #f2f2f2);
  color: var(--text-primary, #111);
}
.erpc-account-menu__trigger:focus-visible {
  outline: 2px solid var(--outline-color, #0a48a8);
  outline-offset: 2px;
  background: var(--surface-sunken, #f2f2f2);
  color: var(--text-primary, #111);
}
.erpc-account-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--blue-500, #0a48a8);
  color: var(--text-inverse, #ffffff);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  user-select: none;
}
.erpc-account-menu__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #737373);
  transition: transform 0.2s ease-in-out;
}
.erpc-account-menu__trigger[aria-expanded="true"] .erpc-account-menu__caret {
  transform: rotate(180deg);
}

/* Fixed for the same reason as the bell panel — the JS positions it in
   viewport coordinates. */
.erpc-account-menu__panel {
  position: fixed;
  z-index: 45;
  width: 240px;
  max-width: calc(100vw - 1rem);
  background: var(--surface-base, #ffffff);
  border: 1px solid var(--border-strong, #d9d9d9);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  padding: 0.375rem 0;
  overflow: hidden;
  white-space: normal;
  color: var(--text-primary, #111);
  text-align: left;
}
.erpc-account-menu__panel[hidden] {
  display: none;
}
.erpc-account-menu__identity {
  border-bottom: 1px solid var(--border-default, #e5e7eb);
}
.erpc-account-menu__identity-user {
  padding: 0.625rem 1rem 0.5rem;
}
.erpc-account-menu__identity-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #111);
  line-height: 1.3;
}
.erpc-account-menu__identity-email {
  font-size: 0.75rem;
  color: var(--text-muted, #737373);
  line-height: 1.3;
  margin-top: 2px;
  word-break: break-all;
}
.erpc-account-menu__identity-customer {
  padding: 0.5rem 1rem 0.625rem;
  border-top: 1px solid var(--gray-100, #f2f2f2);
}
.erpc-account-menu__identity-customer-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #737373);
  line-height: 1.2;
  margin-bottom: 2px;
}
.erpc-account-menu__identity-customer-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary, #111);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erpc-account-menu__identity-customer-number {
  font-size: 0.75rem;
  color: var(--text-muted, #737373);
  line-height: 1.2;
  margin-top: 1px;
}
.erpc-account-menu__items {
  display: block;
  gap: 0;
  align-items: normal;
  list-style: none;
  margin: 0;
  padding: 0;
}
.erpc-account-menu__items > li {
  display: list-item;
  margin: 0;
  padding: 0;
  width: 100%;
}
.erpc-account-menu__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text-primary, #111);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
/* Hover AND keyboard roving highlight share one look. chrome-account-menu.js
   moves `.is-active` with the arrow keys while DOM focus stays on the
   trigger (aria-activedescendant), so `.is-active` IS the keyboard focus
   indicator here — there is no :focus-visible fallback to lean on. */
.erpc-account-menu__item:hover,
.erpc-account-menu__item.is-active {
  background: var(--surface-sunken, #f2f2f2);
  color: var(--text-primary, #111);
  text-decoration: none;
  outline: none;
  border-radius: 0;
}
.erpc-account-menu__divider {
  list-style: none;
  height: 1px;
  margin: 0.375rem 0;
  background: var(--surface-sunken, #f2f2f2);
}
.erpc-account-menu__switcher-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.erpc-account-menu__leading-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary, #595959);
}
.erpc-account-menu__switcher-trigger-label {
  flex: 1 1 auto;
}
.erpc-account-menu__switcher-trigger-chevron {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  color: var(--text-subtle, #8c8c8c);
}
.erpc-account-menu__switcher-trigger-chevron svg {
  fill: currentColor;
}
.erpc-account-menu__back {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-default, #e5e7eb);
  border-radius: 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary, #111);
  text-align: left;
  cursor: pointer;
}
.erpc-account-menu__back:hover,
.erpc-account-menu__back.is-active {
  background: var(--surface-sunken, #f2f2f2);
  outline: none;
}
.erpc-account-menu__back-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary, #595959);
}
.erpc-account-menu__back-icon svg {
  fill: currentColor;
}
.erpc-account-menu__customer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
}
.erpc-account-menu__customer.is-current {
  cursor: default;
}
.erpc-account-menu__customer-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.erpc-account-menu__customer-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #111);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erpc-account-menu__customer-number {
  font-size: 0.75rem;
  color: var(--text-muted, #737373);
  line-height: 1.2;
}
.erpc-account-menu__customer-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  color: var(--text-primary, #111);
}
.erpc-account-menu__customer-check svg {
  fill: currentColor;
}
.erpc-account-menu__signout-form {
  margin: 0;
  padding: 0;
}
.erpc-account-menu__item--signout {
  color: var(--error-color, #dc2626);
  font-weight: 600;
}
.erpc-account-menu__item--signout:hover,
.erpc-account-menu__item--signout.is-active {
  color: var(--text-error-strong, #991b1b);
  background: var(--surface-sunken, #f2f2f2);
  outline: none;
}

/* =====================================================================
   3. Cart-count loading state
   The block emits `<span id="nav-cart-count" class="nav-cart-count …"
   data-state="loading">` (empty) for hydratable viewers and
   cart-count-hydrate.js swaps in the number. Baseline is an inline 16px
   chasing-arc ring; where the badge sits over the cart icon is the
   theme's layout (`#nav-cart-count` positioning, which outranks this).
   ===================================================================== */
.nav-cart-count[data-state="loading"] {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-primary, #111);
  border-radius: 50%;
  box-sizing: border-box;
  background: none;
  color: transparent;
  animation: erpc-cart-count-rotate 1s linear infinite;
}
.nav-cart-count[data-state="loading"]::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid;
  border-color: var(--blue-500, #0a48a8) transparent;
}
@keyframes erpc-cart-count-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =====================================================================
   4. Product-preview drawer
   DOM (built by storefront-product-drawer.js on first SKU click):
     .erpc-pd-drawer            (root, position:fixed inset:0)
       .erpc-pd-drawer__overlay (dark scrim, dismiss surface)
       .erpc-pd-drawer__panel   (the panel that slides in)
         .erpc-pd-drawer__header  (close button)
         .erpc-pd-drawer__body    (product content, fetch target)
   ===================================================================== */
.erpc-pd-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.erpc-pd-drawer.is-open {
  pointer-events: auto;
}
.erpc-pd-drawer[hidden] {
  display: none;
}
.erpc-pd-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.erpc-pd-drawer.is-open .erpc-pd-drawer__overlay {
  opacity: 1;
}
.erpc-pd-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 92vw);
  background: var(--surface-base, #ffffff);
  color: var(--text-primary, #111);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.erpc-pd-drawer.is-open .erpc-pd-drawer__panel {
  transform: translateX(0);
}
.admin-bar .erpc-pd-drawer__panel {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .erpc-pd-drawer__panel {
    top: 0;
  }
}
.erpc-pd-drawer__header {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-100, #f2f2f2);
}
.erpc-pd-drawer__close {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-700, #595959);
  transition: background 150ms ease, color 150ms ease;
}
.erpc-pd-drawer__close:hover,
.erpc-pd-drawer__close:focus-visible {
  background: var(--gray-100, #f2f2f2);
  color: var(--gray-900, #262626);
}
.erpc-pd-drawer__close:focus-visible,
.erpc-pd-drawer__add:focus-visible,
.erpc-pd-drawer__login-cta:focus-visible,
.erpc-pd-drawer__view-pdp:focus-visible,
.erpc-pd-drawer__brand a:focus-visible {
  outline: 2px solid var(--outline-color, var(--blue-500, #0a48a8));
  outline-offset: 2px;
}
.erpc-pd-drawer__qty input:focus-visible {
  outline: 2px solid var(--outline-color, var(--blue-500, #0a48a8));
  outline-offset: 2px;
  border-color: var(--outline-color, var(--blue-500, #0a48a8));
}
.erpc-pd-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.erpc-pd-drawer__skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.erpc-pd-drawer__skeleton-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--blue-100, #d0e3ff) 0%, var(--gray-100, #f2f2f2) 100%);
  border-radius: 0.5rem;
}
.erpc-pd-drawer__skeleton-line {
  height: 14px;
  background: var(--gray-100, #f2f2f2);
  border-radius: 4px;
}
.erpc-pd-drawer__skeleton-line--short { width: 40%; }
.erpc-pd-drawer__error {
  color: var(--red-500, #970100);
  padding: 1rem 0;
  font-size: 0.9375rem;
}
.erpc-pd-drawer__image {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--gray-100, #f2f2f2);
}
.erpc-pd-drawer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.erpc-pd-drawer__image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-100, #d0e3ff) 0%, var(--gray-100, #f2f2f2) 100%);
}
.erpc-pd-drawer__brand {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600, #737373);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.erpc-pd-drawer__brand a {
  color: inherit;
  text-decoration: none;
}
.erpc-pd-drawer__brand a:hover {
  color: var(--blue-500, #0a48a8);
}
.erpc-pd-drawer__sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  color: var(--gray-500, #8c8c8c);
}
.erpc-pd-drawer__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--gray-900, #262626);
  letter-spacing: -0.01em;
}
.erpc-pd-drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--gray-100, #f2f2f2);
  border-bottom: 1px solid var(--gray-100, #f2f2f2);
}
.erpc-pd-drawer__cta--restricted p {
  margin: 0;
  color: var(--gray-700, #595959);
  font-size: 0.9375rem;
}
.erpc-pd-drawer__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 2rem;
}
.erpc-pd-drawer__price-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900, #262626);
}
.erpc-pd-drawer__price-list {
  font-size: 0.9375rem;
  color: var(--gray-500, #8c8c8c);
  text-decoration: line-through;
}
.erpc-pd-drawer__price-unavail {
  font-size: 0.9375rem;
  color: var(--gray-500, #8c8c8c);
}
.erpc-pd-drawer__price-skeleton {
  display: inline-block;
  width: 100px;
  height: 20px;
  background: var(--gray-100, #f2f2f2);
  border-radius: 4px;
}
.erpc-pd-drawer__buy {
  display: flex !important;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}
.erpc-pd-drawer__qty {
  flex: 0 0 80px;
}
.erpc-pd-drawer__qty-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.erpc-pd-drawer__qty input {
  width: 100%;
  height: 44px;
  padding: 0 0.5rem;
  border: 1px solid var(--gray-200, #d9d9d9);
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
  box-sizing: border-box;
}
.erpc-pd-drawer__add {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 0.75rem;
  background: var(--btn-primary-bg, var(--blue-500, #0a48a8));
  color: var(--text-inverse, #ffffff);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, transform 100ms ease;
}
.erpc-pd-drawer__add:hover:not([disabled]),
.erpc-pd-drawer__add:focus-visible:not([disabled]) {
  background: var(--blue-700, #172e73);
}
.erpc-pd-drawer__add:active:not([disabled]) {
  transform: translateY(1px);
}
.erpc-pd-drawer__add[disabled] {
  opacity: 0.6;
  cursor: default;
}
.erpc-pd-drawer__login-cta {
  display: inline-block;
  padding: 0.625rem 1rem;
  background: var(--btn-primary-bg, var(--blue-500, #0a48a8));
  color: var(--text-inverse, #ffffff);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  text-align: center;
}
.erpc-pd-drawer__login-cta:hover,
.erpc-pd-drawer__login-cta:focus-visible {
  background: var(--blue-700, #172e73);
}
.erpc-pd-drawer__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700, #595959);
  margin-bottom: 1.25rem;
}
.erpc-pd-drawer__view-pdp {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-500, #0a48a8);
  text-decoration: none;
}
.erpc-pd-drawer__view-pdp:hover,
.erpc-pd-drawer__view-pdp:focus-visible {
  text-decoration: underline;
}
body.erpc-pd-drawer-open {
  overflow: hidden;
}
.erpc-pd-drawer__announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.erpc-pd-drawer__drag-handle {
  display: none;
}
/* Mobile bottom-sheet: under 768px the panel slides up from the bottom
   instead of in from the right; swipe-down handlers live in the JS. */
@media (max-width: 768px) {
  .erpc-pd-drawer__panel {
    top: auto !important;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 85vh;
    max-height: 85vh;
    transform: translateY(100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  }
  .erpc-pd-drawer.is-open .erpc-pd-drawer__panel {
    transform: translateY(0);
  }
  .admin-bar .erpc-pd-drawer__panel {
    top: auto !important;
  }
  .erpc-pd-drawer__drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0.5rem auto;
    border-radius: 2px;
    background: var(--gray-300, #bfbfbf);
    flex: 0 0 auto;
  }
  .erpc-pd-drawer__header {
    padding: 0.25rem 0.75rem 0.5rem;
  }
  .erpc-pd-drawer__body {
    padding: 1rem 1.25rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cart-count[data-state="loading"] {
    animation: none;
  }
  .erpc-pd-drawer__overlay,
  .erpc-pd-drawer__panel {
    transition: none;
  }
}
