/* ============================================================
   EV Parts UK — Storefront CSS v0.2.0
   "SALVAGE REGISTER" — dark, technical, automotive
   ============================================================ */

html,
body {
  overflow-x: clip;
}

/* ----------------------------------------------------------
   1. PARTS REGISTER (Shop archive — list layout)
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   1. PARTS REGISTER (Shop archive — responsive modern grid)
   ---------------------------------------------------------- */

.parts-register .wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.parts-register .wc-block-product-template.is-flex-container {
  flex-wrap: wrap !important;
}

.parts-register li.wc-block-product {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  list-style: none !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.parts-register li.wc-block-product:hover {
  border-color: var(--wp--preset--color--accent) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Stock status indicator badge (top left of card) */
.parts-register li.wc-block-product::before {
  content: "IN STOCK";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(18, 24, 32, 0.96);
  border: 1px solid var(--wp--preset--color--success);
  color: var(--wp--preset--color--success);
  pointer-events: none;
}

.parts-register li.wc-block-product.outofstock::before {
  content: "OUT OF STOCK";
  border-color: var(--wp--preset--color--danger);
  color: var(--wp--preset--color--danger);
}

html[lang^="pl"] .parts-register li.wc-block-product::before {
  content: "W MAGAZYNIE";
}

html[lang^="pl"] .parts-register li.wc-block-product.outofstock::before {
  content: "WYPRZEDANE";
}

/* Thumbnail / Image container */
.parts-register li.wc-block-product .wc-block-components-product-image,
.wc-block-components-product-image {
  order: 1 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  background-color: #1a222d !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
}

.parts-register li.wc-block-product .wc-block-components-product-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.parts-register li.wc-block-product .wc-block-components-product-image img,
.woocommerce-placeholder {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  border: none !important;
  display: block !important;
  background-color: #1a222d !important;
  transition: transform 0.3s ease !important;
}

.parts-register li.wc-block-product:hover .wc-block-components-product-image img {
  transform: scale(1.03) !important;
}

/* Title */
.parts-register li.wc-block-product .wp-block-post-title {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1rem 1rem 0.35rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  font-family: var(--wp--preset--font-family--body) !important;
}

.parts-register li.wc-block-product .wp-block-post-title a {
  color: var(--wp--preset--color--text) !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.15s ease !important;
}

.parts-register li.wc-block-product .wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* Inner stock indicator block if present */
.parts-register li.wc-block-product .wc-block-components-product-stock-indicator {
  order: 3 !important;
  padding: 0 1rem 0.25rem 1rem !important;
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--wp--preset--color--text-dim) !important;
}

.parts-register li.wc-block-product .wc-block-components-product-stock-indicator--in-stock {
  color: var(--wp--preset--color--success) !important;
}

.parts-register li.wc-block-product .wc-block-components-product-stock-indicator--out-of-stock {
  color: var(--wp--preset--color--danger) !important;
}

/* The eBay-source badge has no scoped rule for this card context, so as a
   flex-column child it falls back to the container's default
   align-items: stretch and balloons to the card's full width - a wide,
   mostly-empty bordered box with the text hugging the left edge, instead
   of a tight pill. It also had no explicit `order`, which put it before
   the image (order: 1) instead of near the title/stock line where it
   reads sensibly. */
.parts-register li.wc-block-product .evparts-source-badge {
  order: 2 !important;
  align-self: flex-start !important;
  margin: 0 1rem 0.35rem !important;
}

/* Price */
.parts-register li.wc-block-product .wp-block-woocommerce-product-price,
.parts-register li.wc-block-product .wc-block-components-product-price {
  order: 4 !important;
  flex: 0 0 auto !important;
  padding: 0.25rem 1rem 0.75rem 1rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  color: var(--wp--preset--color--accent) !important;
  white-space: nowrap !important;
}

.parts-register li.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount {
  color: var(--wp--preset--color--accent) !important;
}

/* Action button */
.parts-register li.wc-block-product .wc-block-components-product-button {
  order: 5 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 1rem 1rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.parts-register li.wc-block-product .wc-block-components-product-button .wp-block-button__link {
  width: 100% !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 2px !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 0.6rem 1rem !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.parts-register li.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover,
.parts-register li.wc-block-product .wc-block-components-product-button .wp-block-button__link:focus-visible {
  background: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--accent-ink) !important;
}

@media (max-width: 960px) {
  .parts-register .wc-block-product-template {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 600px) {
  .parts-register .wc-block-product-template {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ----------------------------------------------------------
   2. SHOP LAYOUT — sidebar + toolbar
   ---------------------------------------------------------- */

.ev-shop-layout,
main.wp-block-group > .ev-shop-layout,
.is-layout-constrained > .ev-shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 2rem;
  align-items: start;
  max-width: 1360px !important;
  width: 100% !important;
}

.ev-shop-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 1rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ev-shop-main {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
}

.ev-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--text-dim);
}

.ev-shop-toolbar .woocommerce-result-count { margin: 0; }
.ev-shop-toolbar .woocommerce-ordering select {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--text);
  border-radius: 2px;
  padding: 0.35rem 0.6rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Sidebar filter panel */
/* Sidebar filter panel — High-contrast dark industrial */
.ev-filter-panel {
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(18, 24, 32, 0.98) 100%);
  border: 1px solid var(--wp--preset--color--border);
  border-top: 2px solid var(--wp--preset--color--accent);
  border-radius: 6px;
  padding: 1.35rem 1.25rem;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ev-filter-panel__title {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--accent);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* WooCommerce product filters native blocks styling */
.wc-block-product-filter-taxonomy,
.wc-block-product-filter-status {
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-product-filter-taxonomy fieldset,
.wc-block-product-filter-status fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Make filter section legends visible and styled technical headers */
.ev-filter-panel .wc-block-product-filter-taxonomy legend.screen-reader-text,
.ev-filter-panel .wc-block-product-filter-status legend.screen-reader-text {
  clip: auto !important;
  clip-path: none !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 0 0.75rem 0 !important;
  padding: 0 0 0.45rem 0 !important;
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #e6edf3 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

.ev-filter-panel .wc-block-product-filter-taxonomy legend.screen-reader-text::before,
.ev-filter-panel .wc-block-product-filter-status legend.screen-reader-text::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--wp--preset--color--accent);
  border-radius: 1px;
}

.wc-block-product-filter-checkbox-list__items {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wc-block-product-filter-checkbox-list__item {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0.35rem 0.5rem !important;
  border-radius: 3px !important;
  transition: background 0.15s ease !important;
}

.wc-block-product-filter-checkbox-list__item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.wc-block-product-filter-checkbox-list__label {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  width: 100% !important;
  cursor: pointer !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.84rem !important;
  color: var(--wp--preset--color--text-dim) !important;
  transition: color 0.15s ease !important;
}

.wc-block-product-filter-checkbox-list__label:hover {
  color: #f0f6fc !important;
}

.wc-block-product-filter-checkbox-list__input {
  /* accent-color only themes the *checked* indicator - the unchecked box
     still falls back to the OS's native light/white checkbox chrome,
     which is how these ended up as pale boxes on an otherwise dark page.
     appearance: none removes native rendering entirely so both states can
     be drawn explicitly below. */
  appearance: none !important;
  -webkit-appearance: none !important;
  accent-color: var(--wp--preset--color--accent) !important;
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

.wc-block-product-filter-checkbox-list__input:hover {
  border-color: #484f58 !important;
}

.wc-block-product-filter-checkbox-list__input:checked {
  background-color: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231b222b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") !important;
  background-size: 11px 11px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.wc-block-product-filter-checkbox-list__text-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
}

.wc-block-product-filter-checkbox-list__text {
  font-family: var(--wp--preset--font-family--data) !important;
}

.wc-block-product-filter-checkbox-list__count {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  background: rgba(245, 166, 35, 0.12) !important;
  color: var(--wp--preset--color--accent) !important;
  border: 1px solid rgba(245, 166, 35, 0.25) !important;
  padding: 1px 7px !important;
  border-radius: 10px !important;
  font-family: var(--wp--preset--font-family--data) !important;
}

/* Price Slider & Filter Overflow Hardening */
.wc-block-product-filter-price {
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.wc-block-product-filter-price::before {
  content: "PRICE RANGE";
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--text-dim);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

html[lang^="pl"] .wc-block-product-filter-price::before {
  content: "ZAKRES CEN";
}

.wc-block-product-filter-price-slider {
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-product-filter-price-slider__content {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 0.5rem 0 !important;
}

.wc-block-product-filter-price-slider__range {
  order: 1 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 10px 0 !important;
  box-sizing: border-box !important;
  --range-color: var(--wp--preset--color--accent) !important;
  height: 4px !important;
  position: relative !important;
}

.wc-block-product-filter-price-slider__range .range-bar {
  background: var(--track-background) !important;
  height: 4px !important;
  border-radius: 2px !important;
}

.wc-block-product-filter-price-slider__range::before {
  background: rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
  border-radius: 2px !important;
  height: 100% !important;
}

.wc-block-product-filter-price-slider__range input[type=range]::-webkit-slider-thumb {
  background: var(--wp--preset--color--accent) !important;
  border: 2px solid #121820 !important;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5) !important;
  width: 14px !important;
  height: 14px !important;
  cursor: pointer !important;
}

.wc-block-product-filter-price-slider__range input[type=range]::-moz-range-thumb {
  background: var(--wp--preset--color--accent) !important;
  border: 2px solid #121820 !important;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5) !important;
  width: 14px !important;
  height: 14px !important;
  cursor: pointer !important;
}

.wc-block-product-filter-price-slider__left {
  order: 2 !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.wc-block-product-filter-price-slider__right {
  order: 3 !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* The block's actual outer wrapper class is
   `wp-block-woocommerce-product-filter-price-slider` (WC Blocks gives the
   outermost element the Gutenberg "wp-block-*" class, inner parts keep the
   "wc-block-*" BEM naming) - `.wc-block-product-filter-price-slider` as an
   ancestor never existed, so this rule never matched and the min/max price
   inputs rendered with the browser's native white text-input chrome. */
.wp-block-woocommerce-product-filter-price-slider input[type=text] {
  background: var(--wp--preset--color--base) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 2px !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.5rem !important;
  width: 70px !important;
  max-width: 70px !important;
  min-width: 50px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease !important;
}

.wp-block-woocommerce-product-filter-price-slider input[type=text]:focus {
  border-color: var(--wp--preset--color--accent) !important;
  box-shadow: 0 0 0 1px var(--wp--preset--color--accent) !important;
  outline: none !important;
}

/* WooCommerce 11.1.0 product filters native overlay styling */
.wc-block-product-filters__open-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(18, 24, 32, 0.98) 100%);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 4px;
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wc-block-product-filters__open-overlay:hover,
.wc-block-product-filters__open-overlay:focus-visible {
  border-color: var(--wp--preset--color--accent);
  background: rgba(245, 166, 35, 0.12);
  color: var(--wp--preset--color--accent);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.35);
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

.wc-block-product-filters__open-overlay svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (min-width: 601px) {
  .wc-block-product-filters__open-overlay {
    display: none !important;
  }
}

.wc-block-product-filters__overlay,
.wc-block-product-filters__overlay-wrapper,
.wc-block-product-filters__overlay-dialog,
.wc-block-product-filters__overlay-content,
.wc-block-product-filters__overlay-header,
.wc-block-product-filters__overlay-footer {
  max-width: 100vw !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.wc-block-product-filters__overlay-dialog {
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--text);
  border-top: 3px solid var(--wp--preset--color--accent);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  /* On a narrow viewport the filter list can run taller than the
     screen. Cap the whole sheet and let only the middle section scroll,
     so the close button and Apply stay reachable without hunting for
     them below the fold. */
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.wc-block-product-filters__overlay-header,
.wc-block-product-filters__overlay-footer {
  flex-shrink: 0;
}

.wc-block-product-filters__overlay-content {
  overflow-y: auto;
}

/* Every filter widget (checkbox list, price range, stock status) groups
   its controls in a bare, class-less <fieldset> - browsers draw that with
   a default light "groove" border and min-width, which is what actually
   produced the pale boxes around each filter, not the checkboxes. */
.wc-block-product-filters__overlay-content fieldset,
.wp-block-woocommerce-product-filters fieldset {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.wc-block-product-filters__overlay-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: rgba(22, 27, 34, 0.9);
}

.wc-block-product-filters__close-overlay {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--text-dim);
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}

.wc-block-product-filters__close-overlay:hover,
.wc-block-product-filters__close-overlay:focus-visible {
  color: var(--wp--preset--color--accent);
  border-color: rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.08);
}

.wc-block-product-filters__overlay-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--wp--preset--color--border);
  background: rgba(22, 27, 34, 0.98);
}

.wc-block-product-filters__apply {
  min-height: 44px;
  width: 100%;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  /* Matches the weight of the rest of the site's buttons (e.g. Add to
     cart) instead of the heavier glow this had, which made the filter
     panel feel like a different, more insistent UI than the page
     around it. */
  box-shadow: none;
  transition: background 0.15s ease;
}

.wc-block-product-filters__apply:hover,
.wc-block-product-filters__apply:focus-visible {
  background: #ffb732;
}

@media (max-width: 782px) {
  .ev-shop-layout,
  main.wp-block-group > .ev-shop-layout,
  .is-layout-constrained > .ev-shop-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .ev-shop-sidebar {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 1.5rem;
    position: static;
  }
  .ev-filter-panel {
    background: transparent;
    border: none;
    padding: 0;
  }
  .ev-filter-panel__title {
    display: none;
  }
  .ev-shop-main {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
  }
}

/* ----------------------------------------------------------
   3. CATEGORY CARDS — Browse by Component
   ---------------------------------------------------------- */

.ev-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ev-category-card {
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: #e6edf3;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.ev-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wp--preset--color--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.ev-category-card:hover {
  border-color: var(--wp--preset--color--accent);
  background: rgba(36, 45, 56, 0.9);
}

.ev-category-card:hover::before { transform: scaleX(1); }

.ev-category-card__icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #e6edf3;
  transition: color 0.15s ease;
}

.ev-category-card:hover .ev-category-card__icon {
  color: var(--wp--preset--color--accent);
}

.ev-category-card__name {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  color: #e6edf3;
}

.ev-category-card__count {
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e6edf3;
}

@media (max-width: 1024px) {
  .ev-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .ev-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .ev-category-card { padding: 1rem; }
}

/* ----------------------------------------------------------
   4. HOW BUYING WORKS — 4-step process
   ---------------------------------------------------------- */

.ev-how-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ev-how-works__step {
  position: relative;
  padding-top: 1.25rem;
}

.ev-how-works__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--wp--preset--color--accent);
}

.ev-how-works__number {
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--accent);
  margin-bottom: 0.5rem;
}

.ev-how-works__title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--text);
  margin: 0 0 0.5rem;
}

.ev-how-works__desc {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.85rem;
  color: var(--wp--preset--color--text-dim);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ev-how-works { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 480px) {
  .ev-how-works { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   5. SECTION LABELS
   ---------------------------------------------------------- */

.ev-section-label {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--accent);
  margin: 0 0 0.75rem;
  display: block;
}

/* ----------------------------------------------------------
   6. BREADCRUMBS
   ---------------------------------------------------------- */

.wc-block-breadcrumbs {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--text-dim);
}
.wc-block-breadcrumbs a { color: var(--wp--preset--color--text-dim); }
.wc-block-breadcrumbs a:hover { color: var(--wp--preset--color--accent); }

/* ----------------------------------------------------------
   7. PRODUCT GALLERY (single product)
   ---------------------------------------------------------- */

.woocommerce-product-gallery {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
}
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }
.woocommerce-product-gallery__trigger {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
}

ol.flex-control-nav.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
ol.flex-control-nav.flex-control-thumbs li { margin: 0; }
ol.flex-control-nav.flex-control-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease;
  border-radius: 0;
}
ol.flex-control-nav.flex-control-thumbs img.flex-active {
  opacity: 1;
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: -2px;
}

/* ----------------------------------------------------------
   8. PURCHASE PANEL (single product — right column)
   ---------------------------------------------------------- */

.ev-purchase-panel {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}

.ev-purchase-panel__part-no {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--text-dim);
  margin-bottom: 0.35rem;
}

.ev-purchase-panel__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.85rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.ev-purchase-panel__price {
  font-family: var(--wp--preset--font-family--data);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  line-height: 1;
}

.ev-purchase-panel__collection-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 2px;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--accent);
}

.wc-block-add-to-cart-form p.stock {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wc-block-add-to-cart-form p.stock.in-stock { color: var(--wp--preset--color--success); }
.wc-block-add-to-cart-form p.stock.out-of-stock { color: var(--wp--preset--color--danger); }
.wc-block-add-to-cart-form p.stock.on-backorder { color: var(--wp--preset--color--accent); }

/* Spokojniejsze odstępy dla opisu, dostępności i kategorii produktu. */
.ev-purchase-panel .wp-block-post-excerpt {
  margin: 0.75rem 0 0.5rem;
  color: var(--wp--preset--color--text-dim);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ev-purchase-panel .wc-block-add-to-cart-form {
  margin-block: 0.25rem 0.35rem;
}

.ev-purchase-panel .wc-block-add-to-cart-form p.stock {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0.3rem 0.6rem;
  background: var(--wp--preset--color--base);
  font-size: 0.72rem;
  line-height: 1.25;
}

.ev-purchase-panel .wc-block-add-to-cart-form p.stock.out-of-stock {
  border-color: var(--wp--preset--color--danger);
}

.ev-purchase-panel .wp-block-woocommerce-product-meta {
  margin-block: 0.55rem 0;
  padding-block-start: 0.65rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.ev-purchase-panel .wp-block-woocommerce-product-meta .wp-block-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
}

.ev-purchase-panel .wp-block-post-terms {
  margin: 0;
  color: var(--wp--preset--color--text-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ev-purchase-panel .wp-block-post-terms a {
  color: var(--wp--preset--color--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.wc-block-add-to-cart-form .quantity .qty {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--text);
  border-radius: 2px;
}

/* ----------------------------------------------------------
   9. PRODUCT SKU / META
   ---------------------------------------------------------- */

.wc-block-components-product-sku {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  color: var(--wp--preset--color--text-dim);
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
}
.wc-block-components-product-sku .wp-block-post-terms__prefix {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wc-block-components-product-sku .sku { color: var(--wp--preset--color--text); font-weight: 600; }

/* ----------------------------------------------------------
   10. SPEC LEDGER (product details tabs & OEM spec sheet)
   ---------------------------------------------------------- */

.spec-ledger {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.spec-ledger .woocommerce-tabs {
  border-top: none;
  margin-top: 2rem;
  position: relative;
}

/* --- TAB BAR HEADER (OVERRIDING WOOCOMMERCE DEFAULTS) --- */
.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs li::after,
.spec-ledger ul.tabs.wc-tabs::before,
.spec-ledger ul.tabs.wc-tabs::after,
.spec-ledger ul.tabs.wc-tabs li::before,
.spec-ledger ul.tabs.wc-tabs li::after {
  content: none !important;
  display: none !important;
  border: none !important;
  box-shadow: none !important;
}

.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs,
.spec-ledger ul.tabs.wc-tabs {
  display: flex !important;
  gap: 0.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0 0.5rem !important;
  border: none !important;
  border-bottom: 2px solid #30363d !important;
  background: transparent !important;
  overflow: visible !important;
}

.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs li,
.spec-ledger ul.tabs.wc-tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: inline-flex !important;
}

.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs li a,
.spec-ledger ul.tabs.wc-tabs li a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.85rem 1.4rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #8b949e !important;
  text-decoration: none !important;
  background: #11161d !important;
  border: 1px solid #30363d !important;
  border-bottom: none !important;
  border-radius: 6px 6px 0 0 !important;
  margin-bottom: -2px !important;
  position: relative !important;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
}

.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs li a:hover,
.spec-ledger ul.tabs.wc-tabs li a:hover {
  color: #f0f6fc !important;
  background: #161b22 !important;
  border-color: #484f58 !important;
}

.woocommerce div.product .spec-ledger .woocommerce-tabs ul.tabs li.active a,
.spec-ledger ul.tabs.wc-tabs li.active a {
  color: #ffffff !important;
  background: #161b22 !important;
  border-color: #30363d !important;
  border-top: 3px solid #f5a623 !important;
  padding-top: calc(0.85rem - 2px) !important;
  z-index: 2 !important;
  box-shadow: 0 -4px 12px rgba(245, 166, 35, 0.08) !important;
}

/* --- ACTIVE TAB PANEL CONTAINER --- */
.spec-ledger .woocommerce-Tabs-panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 0 8px 8px 8px;
  padding: 2.5rem;
  margin-top: 0;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.spec-ledger .woocommerce-Tabs-panel > h2 {
  display: none;
}

/* --- HEADINGS (PRODUCT OVERVIEW / TECHNICAL SPECIFICATIONS) --- */
.spec-ledger .woocommerce-Tabs-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f0f6fc;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #21262d;
}

.spec-ledger .woocommerce-Tabs-panel h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: #f5a623;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.45);
}

.spec-ledger .woocommerce-Tabs-panel h3:not(:first-child) {
  margin-top: 2.75rem;
}

/* --- OVERVIEW PARAGRAPHS --- */
.spec-ledger .woocommerce-Tabs-panel--description p:nth-of-type(1) {
  font-family: var(--wp--preset--font-family--data);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.spec-ledger .woocommerce-Tabs-panel--description p:nth-of-type(2) {
  font-size: 0.95rem;
  color: #8b949e;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 900px;
}

/* --- TECHNICAL SPECIFICATIONS GRID --- */
.spec-ledger ul.ev-part-specs {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.25rem 0 2rem !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem;
}

.spec-ledger ul.ev-part-specs li {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.82rem;
  color: #f0f6fc;
  overflow-wrap: break-word;
}

.spec-ledger ul.ev-part-specs li:hover {
  border-color: rgba(245, 166, 35, 0.45);
  background: #12171f;
  transform: translateY(-1px);
}

.spec-ledger ul.ev-part-specs li strong {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
}

/* Full width for wide info items (e.g. Fulfillment address) */
.spec-ledger ul.ev-part-specs li:nth-child(4) {
  grid-column: 1 / -1;
}

/* --- PICKUP & SAFETY NOTICE --- */
.spec-ledger .ev-pickup-notice {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: rgba(245, 166, 35, 0.05);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-left: 4px solid #f5a623;
  border-radius: 6px;
  position: relative;
}

.spec-ledger .ev-pickup-notice::before {
  content: "⚡ HIGH-VOLTAGE DISPATCH & SAFETY NOTICE";
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5a623;
  margin-bottom: 0.6rem;
}

.spec-ledger .ev-pickup-notice p {
  margin: 0;
  color: #c9d1d9;
  font-size: 0.9rem;
  line-height: 1.65;
}

.spec-ledger .ev-pickup-notice p strong {
  color: #f0f6fc;
  font-weight: 700;
}

/* --- ADDITIONAL INFORMATION TABLE --- */
.spec-ledger table.woocommerce-product-attributes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.88rem;
  margin-top: 1.5rem;
  border: 1px solid #30363d;
  border-radius: 6px;
  overflow: hidden;
  background: #0d1117;
}

.spec-ledger table.woocommerce-product-attributes tr:not(:last-child) th,
.spec-ledger table.woocommerce-product-attributes tr:not(:last-child) td {
  border-bottom: 1px solid #21262d;
}

.spec-ledger table.woocommerce-product-attributes th {
  width: 240px;
  text-align: left;
  padding: 1rem 1.25rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 0.78rem;
  vertical-align: middle;
  background: #11161d;
  border-right: 1px solid #21262d;
}

.spec-ledger table.woocommerce-product-attributes td {
  padding: 1rem 1.25rem;
  color: #f0f6fc;
  vertical-align: middle;
}

.spec-ledger table.woocommerce-product-attributes td p {
  margin: 0;
}

.spec-ledger table.woocommerce-product-attributes td a {
  color: #f5a623;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.spec-ledger table.woocommerce-product-attributes td a:hover {
  color: #ffc043;
  text-decoration: underline;
}

/* --- REVIEWS TAB --- */
.spec-ledger #reviews {
  color: #c9d1d9;
}

.spec-ledger #reviews h2.woocommerce-Reviews-title {
  display: block !important;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f0f6fc;
  margin-bottom: 1rem;
}

.spec-ledger #reviews .woocommerce-noreviews {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  color: #8b949e;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.88rem;
}

/* Review submission form - native WP comment_form() markup, never themed
   before, so it was rendering with plain white browser-default fields on
   an otherwise all-dark page. */
.spec-ledger #reviews #respond,
.spec-ledger #reviews .comment-respond {
  margin-top: 1.5rem;
}

.spec-ledger #reviews #reply-title,
.spec-ledger #reviews .comment-reply-title {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 1rem;
}

.spec-ledger #reviews .comment-form-rating label,
.spec-ledger #reviews .comment-form-comment label,
.spec-ledger #reviews .comment-form-author label,
.spec-ledger #reviews .comment-form-email label {
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
  margin-bottom: 0.4rem;
}

.spec-ledger #reviews #commentform textarea,
.spec-ledger #reviews #commentform input[type="text"],
.spec-ledger #reviews #commentform input[type="email"] {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  color: #f0f6fc !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.88rem !important;
  padding: 0.7rem 0.9rem !important;
  width: 100% !important;
  max-width: 480px;
  box-sizing: border-box !important;
}

.spec-ledger #reviews #commentform textarea {
  max-width: 100%;
  resize: vertical;
}

.spec-ledger #reviews #commentform textarea:focus,
.spec-ledger #reviews #commentform input[type="text"]:focus,
.spec-ledger #reviews #commentform input[type="email"]:focus {
  border-color: #f5a623 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15) !important;
}

.spec-ledger #reviews #commentform p.comment-form-author,
.spec-ledger #reviews #commentform p.comment-form-email,
.spec-ledger #reviews #commentform p.comment-form-comment {
  margin: 0 0 1.1rem !important;
}

.spec-ledger #reviews #commentform .comment-form-cookies-consent {
  color: #8b949e;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

/* --- RESPONSIVE SPEC LEDGER --- */
@media (max-width: 768px) {
  .spec-ledger .woocommerce-Tabs-panel {
    padding: 1.5rem 1rem;
    border-radius: 0 0 6px 6px;
  }

  .spec-ledger ul.ev-part-specs {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .spec-ledger table.woocommerce-product-attributes th {
    width: auto;
    display: block;
    border-right: none;
    padding-bottom: 0.5rem;
  }

  .spec-ledger table.woocommerce-product-attributes td {
    display: block;
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .spec-ledger ul.tabs.wc-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    padding-left: 0;
  }

  .spec-ledger ul.tabs.wc-tabs li {
    flex: 0 0 auto;
  }

  .spec-ledger ul.tabs.wc-tabs li a {
    white-space: nowrap;
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
  }
}

/* ----------------------------------------------------------
   11. CART / CHECKOUT
   ---------------------------------------------------------- */

.wc-block-cart-items__header th span {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-dim);
  font-weight: 600;
}
.wc-block-cart-items__row { border-bottom: 1px solid var(--wp--preset--color--border); }
.wc-block-formatted-money-amount { font-family: var(--wp--preset--font-family--data); font-variant-numeric: tabular-nums; }
.wc-block-cart-item__remove-link { color: var(--wp--preset--color--text-dim); }
.wc-block-cart-item__remove-link:hover { color: var(--wp--preset--color--danger); }
.wc-block-components-quantity-selector { border-color: var(--wp--preset--color--border); }

.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 1.5rem;
}

.wc-block-components-totals-item__label {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--text-dim);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--wp--preset--color--text);
  font-weight: 600;
}

.wc-block-components-panel__button {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  color: var(--wp--preset--color--text-dim);
}

/* Notices */
.wc-block-components-notice-banner.is-error {
  background: rgba(217,105,90,0.12);
  border-color: var(--wp--preset--color--danger);
  color: var(--wp--preset--color--text);
}
.wc-block-components-notice-banner.is-error svg { fill: var(--wp--preset--color--danger); }
.wc-block-components-checkout-step__title { margin-bottom: 0.5rem; }
.wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-checkout__contact-fields input { border-radius: 2px; }
.wc-block-components-checkout-order-summary__title-text {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--text);
}

.wc-block-components-notice-banner.is-info {
  background: rgba(245,166,35,0.1);
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text);
}
.wc-block-components-notice-banner.is-info svg { fill: var(--wp--preset--color--accent); }
.wc-block-components-notice-banner.is-success {
  background: rgba(76,173,125,0.12);
  border-color: var(--wp--preset--color--success);
  color: var(--wp--preset--color--text);
}
.wc-block-components-notice-banner.is-success svg { fill: var(--wp--preset--color--success); }
.wc-block-components-notice-banner a { color: var(--wp--preset--color--accent); }

/* ----------------------------------------------------------
   12. MY ACCOUNT & CUSTOMER AUTH (LOGIN / REGISTER)
   ---------------------------------------------------------- */

.woocommerce-account .entry-content,
.woocommerce-account .wp-block-post-content {
  max-width: 1040px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Dual card grid layout */
.woocommerce-account .u-columns.col2-set#customer_login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 1.5rem auto 3rem;
  width: 100%;
  float: none !important;
}

.woocommerce-account .u-columns.col2-set#customer_login::before,
.woocommerce-account .u-columns.col2-set#customer_login::after {
  display: none !important;
  content: none !important;
}

/* Single card fallback when registration is disabled */
.woocommerce-account form.woocommerce-form-login:only-child,
.woocommerce-account #customer_login:not(.col2-set) {
  max-width: 480px;
  margin: 1.5rem auto 3rem;
}

/* Card surfaces */
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce-account form.woocommerce-form-login:only-child {
  float: none !important;
  width: 100% !important;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
}

.woocommerce-account #customer_login .u-column1 {
  border-top: 3px solid var(--wp--preset--color--border);
}

.woocommerce-account #customer_login .u-column2 {
  border-top: 3px solid var(--wp--preset--color--accent);
}

/* Pre-header badge/context indicator */
.woocommerce-account #customer_login .u-column1::before {
  content: "RETURNING CUSTOMER";
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--text-dim);
  margin-bottom: 0.35rem;
}

.woocommerce-account #customer_login .u-column2::before {
  content: "NEW CUSTOMER";
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--accent);
  margin-bottom: 0.35rem;
}

/* Polish translations for badge */
html[lang^="pl"] .woocommerce-account #customer_login .u-column1::before {
  content: "POWRACAJĄCY KLIENT";
}

html[lang^="pl"] .woocommerce-account #customer_login .u-column2::before {
  content: "NOWY KLIENT";
}

/* Headings */
.woocommerce-account #customer_login h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text);
  margin: 0 0 1.25rem 0;
  line-height: 1.1;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Forms layout */
.woocommerce-account form.login,
.woocommerce-account form.register {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.woocommerce-account form .form-row {
  margin: 0 0 1.25rem 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

/* Form labels */
.woocommerce-account form .form-row label {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-dim);
  margin-bottom: 0.45rem;
  display: block;
}

.woocommerce-account form .form-row label .required {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
}

/* Form inputs */
.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .form-row input[type="text"],
.woocommerce-account form .form-row input[type="email"],
.woocommerce-account form .form-row input[type="password"] {
  background: var(--wp--preset--color--base) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  color: var(--wp--preset--color--text) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 0.95rem !important;
  border-radius: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.woocommerce-account form .form-row input.input-text:focus,
.woocommerce-account form .form-row input[type="text"]:focus,
.woocommerce-account form .form-row input[type="email"]:focus,
.woocommerce-account form .form-row input[type="password"]:focus {
  border-color: var(--wp--preset--color--accent) !important;
  box-shadow: 0 0 0 1px var(--wp--preset--color--accent) !important;
  outline: none !important;
}

/* Submit buttons */
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit,
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-button.button[name="login"],
form.login .button[type="submit"] {
  background: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--accent-ink) !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 0.75rem 1.5rem !important;
  min-height: 48px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.05s ease !important;
  margin-top: 0.75rem !important;
}

.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce-form-register__submit:hover,
.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover,
.woocommerce-button.button[name="login"]:hover,
form.login .button[type="submit"]:hover {
  background: #ffb84d !important;
}

.woocommerce-account .woocommerce-form-login__submit:active,
.woocommerce-account .woocommerce-form-register__submit:active,
.woocommerce-form-login__submit:active,
.woocommerce-form-register__submit:active,
.woocommerce-button.button[name="login"]:active,
form.login .button[type="submit"]:active {
  transform: scale(0.99) !important;
}

/* Password toggle eye hit area (WCAG 2.5.5 >= 44x44px) */
.woocommerce form .form-row .password-input,
.password-input {
  position: relative !important;
  display: block !important;
}

.woocommerce .show-password-input,
.show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
}

/* Remember me checkbox row */
.woocommerce-account .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.woocommerce-account .woocommerce-form-login__rememberme,
.woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  color: var(--wp--preset--color--text-dim);
  cursor: pointer;
  margin-bottom: 0.5rem;
  position: relative;
}

.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"],
.woocommerce-form-login__rememberme input[type="checkbox"] {
  accent-color: var(--wp--preset--color--accent);
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"]::after,
.woocommerce-form-login__rememberme input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
}

/* Lost password link */
.woocommerce-account .lost_password {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.woocommerce-account .lost_password a,
.lost_password a {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.woocommerce-account .lost_password a:hover,
.lost_password a:hover {
  color: var(--wp--preset--color--accent);
}

/* Privacy policy banner in register card */
.woocommerce-account .woocommerce-privacy-policy-text {
  font-size: 0.82rem;
  color: var(--wp--preset--color--text-dim);
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--wp--preset--color--accent);
  border-radius: 0 2px 2px 0;
}

.woocommerce-account .woocommerce-privacy-policy-text:empty {
  display: none !important;
}

/* Benefits list in register card */
.woocommerce-account .evparts-register-benefits {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.woocommerce-account .evparts-register-benefits__title {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--accent);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.woocommerce-account .evparts-register-benefits__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.woocommerce-account .evparts-register-benefits__list li {
  font-size: 0.82rem;
  color: var(--wp--preset--color--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.35;
  margin: 0 !important;
}

.woocommerce-account .evparts-register-benefits__list .bullet {
  color: var(--wp--preset--color--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.woocommerce-account .woocommerce-privacy-policy-text p {
  margin: 0;
}

.woocommerce-account .woocommerce-privacy-policy-text a {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Password strength meter */
.woocommerce-account .woocommerce-password-strength {
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  border-radius: 2px;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-align: center;
}

.woocommerce-account .woocommerce-password-strength.short,
.woocommerce-account .woocommerce-password-strength.bad {
  background: rgba(217, 105, 90, 0.15);
  color: var(--wp--preset--color--danger);
  border: 1px solid var(--wp--preset--color--danger);
}

.woocommerce-account .woocommerce-password-strength.good {
  background: rgba(245, 166, 35, 0.15);
  color: var(--wp--preset--color--accent);
  border: 1px solid var(--wp--preset--color--accent);
}

.woocommerce-account .woocommerce-password-strength.strong {
  background: rgba(76, 173, 125, 0.15);
  color: var(--wp--preset--color--success);
  border: 1px solid var(--wp--preset--color--success);
}

.woocommerce-account .woocommerce-password-hint {
  font-size: 0.78rem;
  color: var(--wp--preset--color--text-dim);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ==========================================================
   MY ACCOUNT HUB & CUSTOMER PORTAL
   ========================================================== */

.woocommerce-account .woocommerce {
  display: block;
  width: 100%;
}

.logged-in.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  align-items: flex-start !important;
  margin-top: 1.5rem !important;
  margin-bottom: 3.5rem !important;
  width: 100% !important;
}

/* Neutralize legacy clearfix pseudo-elements */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  content: none !important;
  display: none !important;
}

/* Notices wrapper spanning full width */
.woocommerce-account .woocommerce-notices-wrapper {
  width: 100% !important;
  flex: 0 0 100% !important;
}

.woocommerce-account .woocommerce-notices-wrapper:empty {
  display: none !important;
}

/* Explicit width & sizing for sidebar and content */
.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* --- SIDEBAR NAVIGATION --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 8px !important;
  padding: 1.25rem 1rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  padding: 0.85rem 1.15rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #8b949e !important;
  text-decoration: none !important;
  background: #0d1117 !important;
  border: 1px solid #21262d !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover {
  color: #f0f6fc !important;
  background: #11161d !important;
  border-color: #484f58 !important;
  transform: translateX(2px) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
  color: #ffffff !important;
  background: #11161d !important;
  border-color: #f5a623 !important;
  border-left: 4px solid #f5a623 !important;
  box-shadow: inset 0 0 12px rgba(245, 166, 35, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Staff Panel (Dispatch) - a restricted, worker/admin-only section mixed in
   among the ordinary customer account links, so it needs to read as
   distinct at a glance rather than blend in as just another menu item. */
.woocommerce-account .woocommerce-MyAccount-navigation-link--dispatch a {
  color: #f5a623 !important;
  background: rgba(245, 166, 35, 0.08) !important;
  border-color: rgba(245, 166, 35, 0.35) !important;
  border-left: 3px solid #f5a623 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dispatch a:hover {
  color: #ffffff !important;
  background: rgba(245, 166, 35, 0.16) !important;
  border-color: #f5a623 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dispatch.is-active a {
  box-shadow: inset 0 0 12px rgba(245, 166, 35, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Logout link subtle red / warning highlight */
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: #ff7b72 !important;
  border-color: rgba(248, 81, 73, 0.4) !important;
}

/* --- ACCOUNT CONTENT CONTAINER --- */
.woocommerce-account .woocommerce-MyAccount-content {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 8px !important;
  padding: 2.25rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
  color: #e6edf3 !important;
}

.woocommerce-account .woocommerce-MyAccount-content p {
  color: #c9d1d9 !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  margin-bottom: 1.25rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: #f5a623 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: #ffbe4d !important;
}

/* --- DASHBOARD WELCOME NOTICE --- */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #f0f6fc !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid #21262d !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child strong {
  color: #f5a623 !important;
}

/* --- ACCOUNT NOTICES (ORDERS / INFO / ALERTS) --- */
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .wc-block-components-notice-banner {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-left: 4px solid #f5a623 !important;
  border-radius: 6px !important;
  padding: 1.25rem 1.5rem !important;
  color: #e6edf3 !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.88rem !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

.woocommerce-account .wc-block-components-notice-banner svg {
  fill: #f5a623 !important;
  flex-shrink: 0 !important;
}

.woocommerce-account .wc-block-components-notice-banner__content {
  color: #e6edf3 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before {
  color: #f5a623 !important;
}

.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button,
.woocommerce-account .wc-block-components-notice-banner .button,
.woocommerce-account .wc-block-components-notice-banner .woocommerce-Button {
  background: #21262d !important;
  color: #f0f6fc !important;
  border: 1px solid #484f58 !important;
  border-radius: 4px !important;
  padding: 0.5rem 1.25rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-info .button:hover,
.woocommerce-account .woocommerce-message .button:hover,
.woocommerce-account .wc-block-components-notice-banner .button:hover,
.woocommerce-account .wc-block-components-notice-banner .woocommerce-Button:hover {
  background: #f5a623 !important;
  color: #0d1117 !important;
  border-color: #f5a623 !important;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.3) !important;
}

/* --- ACCOUNT DETAILS FORM (edit-account) --- */
.woocommerce-account .woocommerce-EditAccountForm {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.25rem 1.5rem !important;
}

.woocommerce-account .woocommerce-EditAccountForm .clear {
  display: none !important;
}

.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row--first,
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row--last,
.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
  flex: 1 1 calc(50% - 0.75rem) !important;
  min-width: 220px !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row--wide,
.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
.woocommerce-account .woocommerce-EditAccountForm fieldset,
.woocommerce-account .woocommerce-EditAccountForm > p:not(.form-row-first):not(.form-row-last),
.woocommerce-account .woocommerce-EditAccountForm > div:not(.clear) {
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-account #account_display_name_description {
  display: block !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.78rem !important;
  font-style: normal !important;
  color: #8b949e !important;
  margin-top: 0.35rem !important;
}

.woocommerce-account #account_display_name_description em {
  font-style: normal !important;
}

.woocommerce-account .woocommerce-form-row {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-form-row label {
  display: block !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #8b949e !important;
  margin-bottom: 0.45rem !important;
}

.woocommerce-account .woocommerce-form-row .required {
  color: #f5a623 !important;
}

.woocommerce-account .woocommerce-Input,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"] {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  color: #f0f6fc !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.92rem !important;
  padding: 0.85rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-account input:focus {
  border-color: #f5a623 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15) !important;
}

.woocommerce-account fieldset {
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  background: #11161d !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 0 !important;
}

.woocommerce-account fieldset legend {
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #f0f6fc !important;
  padding: 0 0.5rem !important;
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account .button[type="submit"] {
  background: #f5a623 !important;
  color: #0d1117 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.85rem 2rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  align-self: flex-start !important;
  margin-top: 1rem !important;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button[type="submit"]:hover {
  background: #ffbe4d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3) !important;
}

/* --- ADDRESSES LIST & CARDS (edit-address) --- */
.woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  margin-top: 1.5rem !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
  content: none !important;
  display: none !important;
}

.woocommerce-account .woocommerce-Addresses .u-column1 {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.woocommerce-account .woocommerce-Addresses .u-column2 {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.woocommerce-account .woocommerce-Address {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid #21262d !important;
}

.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #f0f6fc !important;
}

.woocommerce-account .woocommerce-Address-title a.edit {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.4rem 0.85rem !important;
  background: #21262d !important;
  border: 1px solid #484f58 !important;
  border-radius: 4px !important;
  color: #f5a623 !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-Address-title a.edit:hover {
  background: #f5a623 !important;
  color: #0d1117 !important;
  border-color: #f5a623 !important;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.3) !important;
}

.woocommerce-account .woocommerce-Address address {
  font-style: normal !important;
  color: #8b949e !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Address form editing */
.woocommerce-account .woocommerce-address-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

.woocommerce-account .woocommerce-address-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem 1.5rem !important;
}

.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-first {
  grid-column: 1 !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-last {
  grid-column: 2 !important;
  width: 100% !important;
}

.woocommerce-account .select2-container--default .select2-selection--single {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f0f6fc !important;
  line-height: 46px !important;
  padding-left: 1rem !important;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

/* Orders table */
.woocommerce-account table.woocommerce-orders-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.woocommerce-account table.woocommerce-orders-table th {
  background: #11161d !important;
  color: #8b949e !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid #21262d !important;
}

.woocommerce-account table.woocommerce-orders-table td {
  padding: 0.85rem 1rem !important;
  color: #f0f6fc !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.85rem !important;
  border-bottom: 1px solid #21262d !important;
  vertical-align: middle !important;
}

/* Responsive */
@media (max-width: 850px) {
  .logged-in.woocommerce-account .woocommerce,
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    flex-direction: column !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .woocommerce-account .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-first,
  .woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-last {
    grid-column: 1 !important;
  }
}

/* Pickup status badge */
.woocommerce-order-status.status-ready-collection {
  background: rgba(245,166,35,0.12);
  color: var(--wp--preset--color--accent);
  border-color: rgba(245,166,35,0.4);
}
.mark.status-ready-collection {
  background: rgba(245,166,35,0.12);
  color: var(--wp--preset--color--accent);
}
.wc-block-components-order-summary__actions .woocommerce-order-status {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive collapse on tablets & mobile */
@media (max-width: 768px) {
  .woocommerce-account .u-columns.col2-set#customer_login {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
  }
  .woocommerce-account #customer_login .u-column1,
  .woocommerce-account #customer_login .u-column2 {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================
   WORKER DISPATCH TAB (My Account "Dispatch" endpoint)
   Same GitHub-dark palette as the rest of the My Account hub above:
     surface #161b22 / #0d1117 · border #30363d / #21262d
     text #f0f6fc / #c9d1d9 · text-dim #8b949e
     accent #f5a623 · accent-hover #ffbe4d · danger #ff7b72
   ========================================================== */

.evparts-worker-dispatch {
  color: #e6edf3;
}

.evparts-worker-dispatch a {
  text-decoration: none;
}

.evparts-wd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #21262d;
}

.evparts-wd-badge {
  display: inline-block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d1117;
  background: #f5a623;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.evparts-wd-header h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #f0f6fc;
  margin: 0 0 0.4rem;
}

.evparts-wd-sub {
  font-size: 0.85rem !important;
  color: #8b949e !important;
  margin: 0 !important;
}

.evparts-wd-operator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
}

.evparts-wd-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2);
  flex-shrink: 0;
}

.evparts-wd-operator-title {
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
}

.evparts-wd-operator-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0f6fc;
}

.evparts-wd-alert {
  background: rgba(63, 185, 80, 0.1) !important;
  border: 1px solid #3fb950 !important;
  border-radius: 6px !important;
  padding: 0.85rem 1.25rem !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #e6edf3 !important;
}

/* KPI grid */

.evparts-wd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/*
 * The generic `.woocommerce-account .woocommerce-MyAccount-content a` rule
 * (amber + underline, !important) outranks a plain `.evparts-wd-kpi` selector
 * on specificity alone, and an ancestor's painted underline shows through
 * child text that never sets its own text-decoration. Every rule below that
 * needs to win is prefixed with both ancestor classes to out-specificity it,
 * and explicitly resets text-decoration rather than relying on inheritance.
 */
.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.evparts-wd-kpi:hover {
  border-color: #f5a623;
  transform: translateY(-1px);
}

.evparts-wd-kpi.active {
  border-color: #f5a623;
  box-shadow: inset 0 0 0 1px #f5a623;
}

.evparts-wd-kpi.alert {
  border-color: #ff7b72;
}

.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-label {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b949e !important;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #f0f6fc !important;
  line-height: 1.2;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-value.kpi-prep { color: #f5a623 !important; }
.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-value.kpi-ready { color: #3fb950 !important; }
.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-value.kpi-completed { color: #8b949e !important; }
.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-value.kpi-unread { color: #ff7b72 !important; }

.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-kpi .kpi-hint {
  font-size: 0.72rem;
  color: #8b949e !important;
  text-decoration: none !important;
}

/* Filter tabs + search */

.evparts-wd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.evparts-wd-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-tabs .tab-btn {
  display: inline-block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b949e !important;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  text-decoration: none !important;
}

.evparts-wd-tabs .tab-btn.active {
  color: #0d1117 !important;
  background: #f5a623;
  border-color: #f5a623;
}

.evparts-wd-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
}

.evparts-wd-search input[type="text"] {
  min-width: 220px !important;
  padding: 0.55rem 0.85rem !important;
}

.evparts-wd-search .button {
  padding: 0.55rem 1.1rem !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .evparts-wd-search a.button {
  color: #f0f6fc !important;
  background: #21262d !important;
  text-decoration: none !important;
}

/* Queue + empty state */

.evparts-wd-queue {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evparts-wd-empty {
  text-align: center;
  background: #0d1117;
  border: 1px dashed #30363d;
  border-radius: 8px;
  padding: 3rem 1.5rem;
  color: #8b949e;
}

.evparts-wd-empty .empty-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
}

.evparts-wd-empty h3 {
  color: #f0f6fc;
  margin: 0 0 0.4rem;
}

/* Order cards */

.evparts-wd-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-left: 4px solid #30363d;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
}

.evparts-wd-card.status-on-hold,
.evparts-wd-card.status-processing,
.evparts-wd-card.status-pending {
  border-left-color: #f5a623;
}

.evparts-wd-card.status-ready-collection {
  border-left-color: #3fb950;
}

.evparts-wd-card.status-completed {
  border-left-color: #30363d;
  opacity: 0.75;
}

.wd-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #21262d;
}

.wd-id-group {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.wd-order-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f6fc;
}

.wd-order-time {
  font-size: 0.72rem;
  color: #8b949e;
}

.wd-status-badge {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: #161b22;
  color: #8b949e;
  border: 1px solid #30363d;
}

.wd-status-badge.status-on-hold,
.wd-status-badge.status-processing,
.wd-status-badge.status-pending {
  color: #f5a623;
  border-color: #f5a623;
}

.wd-status-badge.status-ready-collection {
  color: #3fb950;
  border-color: #3fb950;
}

.wd-total-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.wd-total-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f6fc;
}

.wd-total-method {
  font-size: 0.68rem;
  color: #8b949e;
}

.wd-card-body {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.wd-customer-info .wd-info-row {
  font-size: 0.82rem !important;
  color: #c9d1d9 !important;
  margin-bottom: 0.4rem !important;
}

.wd-customer-info .wd-info-label {
  color: #8b949e;
  margin-right: 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-content .wd-customer-info a {
  color: #f5a623 !important;
  text-decoration: none !important;
}

.wd-customer-info a:hover {
  color: #ffbe4d !important;
}

.wd-info-note {
  margin-top: 0.6rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
}

.wd-info-note .wd-note-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8b949e;
  margin-bottom: 0.25rem;
}

.wd-info-note p {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: #e6edf3 !important;
}

.wd-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.wd-items-table th {
  text-align: left;
  color: #8b949e;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid #21262d;
}

.wd-items-table td {
  padding: 0.4rem 0;
  border-bottom: 1px solid #161b22;
  color: #e6edf3;
}

.wd-items-table code {
  background: #161b22;
  color: #8b949e;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-size: 0.72rem;
}

.wd-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid #21262d;
}

.wd-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wd-status-form {
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wd-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.9rem !important;
  border: 1px solid #30363d !important;
  background: #161b22 !important;
  color: #f0f6fc !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.wd-btn.wd-btn-ready {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #0d1117 !important;
}

.wd-btn.wd-btn-complete {
  background: #3fb950 !important;
  border-color: #3fb950 !important;
  color: #0d1117 !important;
}

.wd-btn.wd-btn-revert,
.wd-btn.wd-btn-chat {
  background: transparent !important;
}

.wd-btn.wd-btn-revert:hover,
.wd-btn.wd-btn-chat:hover {
  border-color: #f5a623 !important;
  color: #f5a623 !important;
}

.wd-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7b72;
  box-shadow: 0 0 0 2px rgba(255, 123, 114, 0.25);
}

.wd-collected-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3fb950;
}

/* View toggle (Dispatch Queue / Add Product) */

.evparts-wd-view-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

/* Add Product form */

.evparts-wd-alert-error {
  background: rgba(255, 123, 114, 0.1) !important;
  border-color: #ff7b72 !important;
}

.evparts-wd-sync-note {
  font-size: 0.82rem !important;
  color: #8b949e !important;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.5rem !important;
}

.evparts-wd-add-product {
  max-width: 640px;
}

.evparts-wd-product-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.evparts-wd-product-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
}

.evparts-wd-product-form input[type="text"],
.evparts-wd-product-form input[type="number"],
.evparts-wd-product-form input[type="file"],
.evparts-wd-product-form select,
.evparts-wd-product-form textarea {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #f0f6fc;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.88rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.7rem 0.9rem;
}

.evparts-wd-product-form textarea {
  resize: vertical;
}

.evparts-wd-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #8b949e !important;
}

.evparts-wd-product-form input:focus,
.evparts-wd-product-form select:focus,
.evparts-wd-product-form textarea:focus {
  border-color: #f5a623;
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* --- Manage Products (delete panel) --- */

.wd-btn.wd-btn-delete {
  background: transparent !important;
  border-color: rgba(248, 81, 73, 0.4) !important;
  color: #ff7b72 !important;
}

.wd-btn.wd-btn-delete:hover {
  background: rgba(248, 81, 73, 0.12) !important;
  border-color: #ff7b72 !important;
}

.evparts-wd-manage-products {
  max-width: 760px;
}

.evparts-wd-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.evparts-wd-product-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

.evparts-wd-product-row:hover {
  border-color: #484f58;
}

.evparts-wd-product-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #30363d;
  background: #161b22;
}

.evparts-wd-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evparts-wd-product-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.evparts-wd-product-title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #f0f6fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evparts-wd-product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.76rem;
  color: #8b949e;
}

.evparts-wd-product-meta .woocommerce-Price-amount {
  color: #8b949e;
}

.evparts-wd-ebay-badge {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid;
}

.evparts-wd-ebay-badge.ebay-live {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.4);
  background: rgba(63, 185, 80, 0.08);
}

.evparts-wd-ebay-badge.ebay-review {
  color: #f5a623;
  border-color: rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.08);
}

.evparts-wd-ebay-badge.ebay-sold,
.evparts-wd-ebay-badge.ebay-pending {
  color: #8b949e;
  border-color: #30363d;
  background: #161b22;
}

/* --- Delete confirmation modal --- */

.evparts-wd-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}

.evparts-wd-modal.is-open {
  display: flex;
}

.evparts-wd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 9, 0.72);
}

.evparts-wd-modal-box {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 2.5rem);
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.evparts-wd-modal-box h3 {
  margin: 0 0 0.6rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.15rem;
  color: #f0f6fc;
}

.evparts-wd-modal-box p {
  margin: 0 0 1.3rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #8b949e;
}

.evparts-wd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.evparts-wd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.evparts-wd-product-form .wd-btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.85rem !important;
}

@media (max-width: 900px) {
  .evparts-wd-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wd-card-body {
    grid-template-columns: 1fr;
  }

  .evparts-wd-form-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   13. TABLES (shop_table)
   ---------------------------------------------------------- */

table.shop_table { background: var(--wp--preset--color--surface) !important; border: 1px solid var(--wp--preset--color--border) !important; border-collapse: collapse; width: 100%; }
table.shop_table thead th {
  background: transparent !important;
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
  color: var(--wp--preset--color--text-dim) !important;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
}
table.shop_table td {
  background: transparent !important;
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
  color: var(--wp--preset--color--text) !important;
  padding: 0.85rem 0.75rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.9rem;
}
table.shop_table tr:last-child td { border-bottom: none !important; }

/* ----------------------------------------------------------
   14. FOCUS / ACCESSIBILITY
   ---------------------------------------------------------- */

:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Minimum touch targets (WCAG 2.5.5) */
.wp-block-navigation .wp-block-navigation-item__content {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

/* Specific mobile drawer touch targets - minimum 44x44px for all links */
.wp-block-navigation__responsive-container .wp-block-navigation-item__content {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wc-block-mini-cart__button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wp-block-search__button {
  min-height: 44px;
  min-width: 44px;
}
.wc-block-components-quantity-selector__button { min-width: 44px; min-height: 44px; }
.wc-block-cart-item__remove-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Active filters & Clear button */
.wc-block-product-filter-active {
  margin-bottom: 1.25rem;
  padding: 0.85rem;
  background: rgba(245, 166, 35, 0.05);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 6px;
}

.wc-block-product-filter-removable-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}

.wc-block-components-chip,
.wc-block-product-filter-removable-chips__chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: var(--wp--preset--color--base) !important;
  border: 1px solid var(--wp--preset--color--accent) !important;
  border-radius: 3px !important;
  padding: 0.3rem 0.6rem !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  min-height: 36px !important;
}

.wc-block-product-filter-clear-button {
  background: transparent;
  border: 1px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.1);
}

.wc-block-product-filter-clear-button:hover,
.wc-block-product-filter-clear-button:focus-visible {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--accent);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

.wc-block-product-filter-taxonomy {
  margin-bottom: 1.5rem;
}

.wp-block-navigation .wp-block-polylang-navigation-language-switcher a {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-dim);
}
.wp-block-navigation .wp-block-polylang-navigation-language-switcher a:hover {
  color: var(--wp--preset--color--text);
}
.wp-block-navigation .wp-block-polylang-navigation-language-switcher.current-lang a {
  color: var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------
   15. POLYLANG SWITCHER
   ---------------------------------------------------------- */

.wp-block-polylang-language-switcher {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wp-block-polylang-language-switcher li { margin: 0; }
.wp-block-polylang-language-switcher a { color: var(--wp--preset--color--text-dim); text-decoration: none; }
.wp-block-polylang-language-switcher a:hover { color: var(--wp--preset--color--text); }
.wp-block-polylang-language-switcher li.current-lang a { color: var(--wp--preset--color--accent); }

/* ----------------------------------------------------------
   16. PAGINATION
   ---------------------------------------------------------- */

.wp-block-query-pagination { font-family: var(--wp--preset--font-family--data); font-size: 0.85rem; }
.wp-block-query-pagination .page-numbers { padding: 0.35rem 0.15rem; }

/* ----------------------------------------------------------
   17. PICKUP THREAD (high-voltage dispatch messaging terminal)
   ---------------------------------------------------------- */

.woocommerce-order-details + h2,
h2:has(+ .evparts-pickup-thread) {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #f0f6fc !important;
  margin: 2.5rem 0 1.25rem !important;
}

h2:has(+ .evparts-pickup-thread)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: #f5a623;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.45);
}

.evparts-pickup-thread {
  margin: 1rem 0 1.75rem !important;
  padding: 1.75rem !important;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  max-height: 550px !important;
  overflow-y: auto !important;
}

.evparts-pickup-message {
  max-width: 78% !important;
  padding: 1rem 1.35rem !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  transition: transform 0.15s ease !important;
}

.evparts-pickup-message:hover {
  transform: translateY(-1px) !important;
}

.evparts-pickup-message p {
  margin: 0 !important;
}

.evparts-pickup-message__meta {
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #8b949e !important;
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.evparts-pickup-message p:last-child {
  color: #f0f6fc !important;
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  line-height: 1.6 !important;
  font-size: 0.92rem !important;
}

/* Shop / Dispatch message bubble */
.evparts-pickup-message--shop {
  align-self: flex-start !important;
  background: #161b22 !important;
  border: 1px solid rgba(245, 166, 35, 0.35) !important;
  border-left: 4px solid #f5a623 !important;
}

.evparts-pickup-message--shop .evparts-pickup-message__meta strong {
  color: #f5a623 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.evparts-pickup-message--shop .evparts-pickup-message__meta strong::before {
  content: "⚡";
  font-size: 0.85em;
}

/* Customer / Client message bubble */
.evparts-pickup-message--customer {
  align-self: flex-end !important;
  background: #1c2128 !important;
  border: 1px solid #444c56 !important;
  border-right: 4px solid #58a6ff !important;
}

.evparts-pickup-message--customer .evparts-pickup-message__meta strong {
  color: #58a6ff !important;
  font-weight: 700 !important;
}

/* Reply form box */
.evparts-pickup-reply-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
  padding: 1.5rem !important;
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.evparts-pickup-reply-form::before {
  content: "💬 PICKUP COMMUNICATIONS CHANNEL";
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b949e;
}

.evparts-pickup-reply-form textarea {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  color: #f0f6fc !important;
  padding: 1rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.evparts-pickup-reply-form textarea:focus {
  border-color: #f5a623 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15) !important;
}

.evparts-pickup-reply-form button#evparts_pickup_send,
.evparts-pickup-reply-form button {
  align-self: flex-end !important;
  min-height: 44px !important;
  padding: 0.75rem 2.25rem !important;
  background: #f5a623 !important;
  color: #0d1117 !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.evparts-pickup-reply-form button:hover {
  background: #ffbe4d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3) !important;
}

@media (max-width: 600px) {
  .evparts-pickup-message {
    max-width: 100% !important;
  }
  .evparts-pickup-reply-form button {
    align-self: stretch !important;
    width: 100% !important;
  }
}

/* ----------------------------------------------------------
   18. CATEGORY CHIPS (hero — legacy, keep for compat)
   ---------------------------------------------------------- */

.evparts-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e6edf3;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.evparts-category-chip:hover { color: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }
.evparts-category-chip:focus-visible,
.ev-category-card:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}
.evparts-category-chip--static { cursor: default; pointer-events: none; }

.evparts-category-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 600px) {
  .ev-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evparts-category-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.65rem;
  }

  .evparts-category-chip {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   19. HEADER & BRAND LOGO
   ---------------------------------------------------------- */

.ev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.ev-header__logo {
  flex-shrink: 0;
  margin: 0 !important;
}

/* Brand Logo */
.ev-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
}

.ev-brand-logo:hover .ev-brand-logo__mark {
  border-color: #ffb84d;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

.ev-brand-logo__mark {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2733 0%, #0d1217 100%);
  border: 1.5px solid var(--wp--preset--color--accent);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.22);
  transition: all 0.2s ease;
}

.ev-brand-logo__mark svg {
  display: block;
}

.ev-brand-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.ev-brand-logo__title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ev-brand-logo__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text);
  text-transform: uppercase;
  line-height: 1;
}

.ev-brand-logo__badge {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-ink);
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.ev-brand-logo__tagline {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.58rem;
  color: var(--wp--preset--color--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1;
}

.ev-header__utils {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ----------------------------------------------------------
   20. NAVIGATION & MOBILE DRAWER
   ---------------------------------------------------------- */

/* Header desktop navigation links */
.ev-header__nav .wp-block-navigation-item a {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.ev-header__nav .wp-block-navigation-item a:hover {
  color: var(--wp--preset--color--accent);
  background: rgba(255, 255, 255, 0.04);
}

.ev-header__nav .wp-block-navigation-item.current-menu-item a {
  color: var(--wp--preset--color--accent);
}

/* Mobile menu toggle hamburger */
.wp-block-navigation__responsive-container-open {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px;
  color: var(--wp--preset--color--text);
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.wp-block-navigation__responsive-container-open:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}

@media (min-width: 600px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }
}

/* Mobile drawer full overlay */
.wp-block-navigation__responsive-container.is-menu-open {
  background: #121820 !important;
  color: var(--wp--preset--color--text) !important;
  padding: 2rem 1.5rem !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
  background: transparent !important;
}

/* Close button inside drawer - only visible when drawer is open */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
  display: none !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--accent) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  transition: all 0.15s ease !important;
}

.wp-block-navigation__responsive-container-close:hover {
  background: rgba(245, 166, 35, 0.15) !important;
  border-color: var(--wp--preset--color--accent) !important;
  transform: rotate(90deg);
}

.wp-block-navigation__responsive-container-close svg {
  fill: currentColor !important;
  width: 20px !important;
  height: 20px !important;
}

/* Content layout inside mobile drawer */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1.5rem !important;
  padding-top: 3.5rem !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 auto !important;
}

/* Top brand badge in drawer */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::before {
  content: "⚡ EV PARTS UK";
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--accent);
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  width: 100% !important;
  justify-content: space-between !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.lang-item) {
  width: 100% !important;
  display: block !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.lang-item) a {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding: 0.9rem 1.25rem !important;
  font-size: 1.5rem !important;
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-left: 3px solid transparent !important;
  border-radius: 4px !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.lang-item) a::after {
  content: "→";
  font-family: var(--wp--preset--font-family--data);
  font-size: 1.2rem;
  color: var(--wp--preset--color--accent);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.lang-item) a:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.lang-item).current-menu-item a {
  color: var(--wp--preset--color--accent) !important;
  background: rgba(245, 166, 35, 0.08) !important;
  border-color: var(--wp--preset--color--accent) !important;
  border-left: 3px solid var(--wp--preset--color--accent) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.lang-item {
  width: calc(50% - 0.35rem) !important;
  display: block !important;
  margin-top: 0.75rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.lang-item a {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding: 0.75rem 0.5rem !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  background: var(--wp--preset--color--base) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 3px !important;
  color: var(--wp--preset--color--text-dim) !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.lang-item a:hover {
  color: var(--wp--preset--color--text) !important;
  border-color: var(--wp--preset--color--text-dim) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.lang-item.current-lang a {
  border-color: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--accent) !important;
  background: rgba(245, 166, 35, 0.12) !important;
}

@media (max-width: 480px) {
  .ev-brand-logo {
    gap: 0.6rem;
  }
  .ev-brand-logo__mark {
    width: 32px;
    height: 32px;
  }
  .ev-brand-logo__mark svg {
    width: 18px;
    height: 18px;
  }
  .ev-brand-logo__name {
    font-size: 1.35rem;
  }
  .ev-brand-logo__tagline {
    display: none;
  }
}

/* ----------------------------------------------------------
   21. HERO SECTION
   ---------------------------------------------------------- */

.ev-hero {
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.ev-hero h1 {
  margin-bottom: var(--wp--preset--spacing--30);
}

@media (max-width: 600px) {
  .ev-hero { padding-top: var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--30); }
}

/* ----------------------------------------------------------
   22. FOUR-COLUMN SITE FOOTER (MODERN INDUSTRIAL)
   ---------------------------------------------------------- */

.ev-site-footer {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #0d1117 !important;
  border-top: 1px solid #21262d !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 3rem 1.5rem 2rem 1.5rem !important;
}

.ev-site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.7) 30%, rgba(245, 166, 35, 0.9) 50%, rgba(245, 166, 35, 0.7) 70%, transparent 100%);
  pointer-events: none;
}

/* Constrained inner width: exactly 1200px matching the shop grid */
.ev-footer__grid {
  display: grid !important;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr !important;
  align-items: start !important;
  gap: 2.5rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ev-footer__column {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Brand Column */
.ev-footer__brand .ev-footer__heading {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #f0f6fc !important;
  margin: 0 0 0.5rem 0 !important;
  text-transform: uppercase !important;
}

.ev-footer__brand .ev-footer__heading::after {
  display: none !important;
}

.ev-footer__description {
  margin: 0 0 0.9rem 0 !important;
  color: #8b949e !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

.ev-footer__badge {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0.25rem 0 0 0 !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 4px !important;
  background: rgba(245, 166, 35, 0.08) !important;
  border: 1px solid rgba(245, 166, 35, 0.3) !important;
  color: var(--wp--preset--color--accent) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

/* Section Headings */
.ev-footer__heading {
  margin: 0 0 1rem 0 !important;
  color: #c9d1d9 !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.ev-footer__heading::after {
  content: '';
  height: 2px;
  width: 14px;
  background: var(--wp--preset--color--accent);
  border-radius: 1px;
  display: inline-block;
}

/* Nav Links */
.ev-footer__nav .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ev-footer__nav .wp-block-navigation-item {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ev-footer__nav .wp-block-navigation-item__content {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  box-sizing: border-box !important;
  padding: 0.2rem 0 !important;
  color: #8b949e !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.ev-footer__nav .wp-block-navigation-item__content::before {
  content: '›';
  color: #484f58;
  font-size: 1rem;
  line-height: 1;
  margin-right: 0.45rem;
  transition: all 0.15s ease;
}

.ev-footer__nav .wp-block-navigation-item__content:hover,
.ev-footer__nav .wp-block-navigation-item__content:focus-visible {
  color: var(--wp--preset--color--accent) !important;
  transform: translateX(3px) !important;
}

.ev-footer__nav .wp-block-navigation-item__content:hover::before,
.ev-footer__nav .wp-block-navigation-item__content:focus-visible::before {
  color: var(--wp--preset--color--accent);
}

/* Warehouse Card */
.ev-footer__warehouse {
  background: rgba(22, 27, 34, 0.7) !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  padding: 1.15rem 1.25rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.ev-footer__warehouse .ev-footer__heading {
  margin-bottom: 0.75rem !important;
}

.ev-footer__warehouse-note {
  margin: 0 0 0.5rem 0 !important;
  color: #8b949e !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

.ev-footer__warehouse-note:first-of-type {
  color: #f0f6fc !important;
  font-weight: 500 !important;
}

.ev-footer__warehouse-note.has-data-font-family {
  color: var(--wp--preset--color--accent) !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  word-spacing: normal !important;
  white-space: normal !important;
  padding: 0.4rem 0.6rem !important;
  background: rgba(245, 166, 35, 0.08) !important;
  border-left: 3px solid var(--wp--preset--color--accent) !important;
  border-radius: 0 4px 4px 0 !important;
  margin: 0.6rem 0 !important;
}

.ev-footer__warehouse-note:last-of-type {
  margin-bottom: 0 !important;
  font-size: 0.8rem !important;
  color: #6e7681 !important;
}

/* Horizontal Divider */
.ev-site-footer .wp-block-separator,
.ev-site-footer hr {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 2.25rem auto 1.25rem auto !important;
  border: 0 !important;
  border-top: 1px solid #21262d !important;
  height: 0 !important;
  background: none !important;
  display: block !important;
  clear: both !important;
}

/* Bottom Bar */
.ev-footer__bottom {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1.5rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.ev-footer__legal {
  margin: 0 !important;
  padding: 0 !important;
  color: #8b949e !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
  letter-spacing: 0.01em !important;
  flex: 1 1 auto !important;
  font-family: var(--wp--preset--font-family--body) !important;
}

.ev-footer__credit {
  margin: 0 !important;
  padding: 0.12rem 0.35rem !important;
  color: var(--wp--preset--color--accent) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  background: rgba(245, 166, 35, 0.07) !important;
  border: 1px solid rgba(245, 166, 35, 0.2) !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  opacity: 0.85 !important;
}

.ev-footer__credit::before {
  content: '⚡';
  font-size: 0.6rem;
}

@media (max-width: 860px) {
  .ev-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem 1.5rem !important;
  }
  .ev-footer__bottom {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 0.85rem !important;
  }
  .ev-footer__legal {
    text-align: center !important;
  }
}

@media (max-width: 520px) {
  /* Keep Catalogue and Support side by side while the identity and address span both columns. */
  .ev-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.75rem 1rem !important;
  }
  .ev-footer__brand,
  .ev-footer__warehouse {
    grid-column: 1 / -1 !important;
  }
  .ev-site-footer {
    padding: 2.25rem 1rem 1.75rem 1rem !important;
  }
}

/* ----------------------------------------------------------
   23. SHARED CATALOG / CHECKOUT SHELL
   ---------------------------------------------------------- */

.wp-block-search,
.evparts-search-form {
  position: relative;
}

.wp-block-search__inside-wrapper {
  /* Core's default block style puts its own light grey border around
     this wrapper, on top of the (correctly dark-themed) border already on
     the input and button inside it - swapped for the theme's accent
     color instead of core's pale default. overflow: hidden clips the
     input/button's own square corners to this wrapper's rounded shape. */
  border: 1px solid var(--wp--preset--color--accent) !important;
  border-radius: 10px !important;
  background: none !important;
  overflow: hidden !important;
}

.wp-block-search__inside-wrapper .wp-block-search__input,
.wp-block-search__inside-wrapper .wp-block-search__button {
  border: none !important;
  border-radius: 0 !important;
}

.wp-block-search__inside-wrapper .wp-block-search__button {
  /* The divider between the input and the button, matching the
     wrapper's own accent border. */
  border-left: 1px solid var(--wp--preset--color--accent) !important;
}

.wp-block-search__input {
  min-height: 52px !important;
  box-sizing: border-box !important;
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 2px !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

.wp-block-search__input::placeholder,
.wc-block-checkout input::placeholder,
.wc-block-checkout textarea::placeholder {
  color: var(--wp--preset--color--text-dim) !important;
  opacity: 1;
}

.wp-block-search__input:focus,
.wc-block-checkout input:focus,
.wc-block-checkout select:focus,
.wc-block-checkout textarea:focus,
.woocommerce-account input:focus,
.woocommerce-account select:focus,
.woocommerce-account textarea:focus {
  border-color: var(--wp--preset--color--accent) !important;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.28) !important;
  outline: none !important;
}

.wp-block-search__button {
  min-height: 44px !important;
  border-radius: 2px !important;
  background: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--accent-ink) !important;
  font-family: var(--wp--preset--font-family--data) !important;
  font-weight: 600 !important;
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-checkout,
.woocommerce-account .wp-block-post-content {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* WooCommerce Blocks ship bright defaults; keep the replacement scoped
 * to storefront form controls so editor/admin controls remain untouched. */
.wc-block-checkout input:not([type="checkbox"]):not([type="radio"]),
.wc-block-checkout select,
.wc-block-checkout textarea,
.wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-components-textarea textarea,
.wc-block-components-select select,
.wc-block-components-combobox .components-combobox-control__input {
  min-height: 44px !important;
  box-sizing: border-box !important;
  width: 100%;
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 2px !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

.wc-block-checkout textarea,
.wc-block-components-textarea textarea {
  min-height: 104px !important;
  resize: vertical;
}

.wc-block-checkout input[aria-invalid="true"],
.wc-block-checkout select[aria-invalid="true"],
.wc-block-checkout textarea[aria-invalid="true"],
.wc-block-checkout .has-error input,
.wc-block-checkout .has-error select,
.wc-block-checkout .has-error textarea,
.wc-block-checkout .is-invalid input {
  border-color: var(--wp--preset--color--danger) !important;
}

.wc-block-checkout .wc-block-components-validation-error {
  color: var(--wp--preset--color--danger) !important;
}

.wc-block-checkout input[type="checkbox"],
.wc-block-checkout input[type="radio"],
.wc-block-components-checkbox__input,
.wc-block-components-radio-control__input {
  min-width: 22px !important;
  min-height: 22px !important;
  accent-color: var(--wp--preset--color--accent);
}

.wc-block-components-radio-control__option,
.wc-block-components-checkbox {
  min-height: 44px;
  color: var(--wp--preset--color--text);
}

.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-order-summary__title-text {
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--display) !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wc-block-checkout .wc-block-components-checkout-step__description,
.wc-block-checkout .wc-block-components-checkout-step__content,
.wc-block-checkout .wc-block-components-address-form {
  color: var(--wp--preset--color--text-dim);
}

.wc-block-checkout .wc-block-checkout__sidebar,
.wc-block-checkout .wc-block-components-order-summary,
.wc-block-woocommerce-checkout-order-summary-block {
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 2px !important;
  color: var(--wp--preset--color--text) !important;
}

.wc-block-checkout .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-order-summary-item__description {
  color: var(--wp--preset--color--text-dim) !important;
  font-family: var(--wp--preset--font-family--data) !important;
}

.wc-block-checkout .wc-block-components-totals-footer-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item__value {
  color: var(--wp--preset--color--text) !important;
}

.wc-block-checkout .wc-block-components-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
  min-height: 48px !important;
  border-radius: 2px !important;
  background: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--accent-ink) !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 800 !important;
}

/* Polylang keeps the real translated links; the CSS presents compact
 * tokens while storefront.js adds explicit accessible names and SVG flags. */
.evparts-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.evparts-flag-icon {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  vertical-align: middle;
}

.ev-header__nav .lang-item-en,
.ev-header__nav .lang-item-pl {
  min-width: 44px;
  min-height: 44px;
}

.ev-header__nav .lang-item-en > a,
.ev-header__nav .lang-item-pl > a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: 0.6rem !important;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.ev-header__nav .lang-item-en:hover > a,
.ev-header__nav .lang-item-pl:hover > a {
  background: rgba(255, 255, 255, 0.05);
}

.ev-header__nav .lang-item-en .wp-block-navigation-item__label,
.ev-header__nav .lang-item-pl .wp-block-navigation-item__label {
  font-size: 0 !important;
}

.ev-header__nav .lang-item-en .wp-block-navigation-item__label::before,
.ev-header__nav .lang-item-pl .wp-block-navigation-item__label::before {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ev-header__nav .lang-item-en .wp-block-navigation-item__label::before { content: "EN"; }
.ev-header__nav .lang-item-pl .wp-block-navigation-item__label::before { content: "PL"; }

.ev-header__nav .lang-item-en.current-lang > a,
.ev-header__nav .lang-item-pl.current-lang > a,
.ev-header__nav .lang-item-en > a[aria-current="page"],
.ev-header__nav .lang-item-pl > a[aria-current="page"] {
  color: var(--wp--preset--color--accent) !important;
  border-bottom: 2px solid var(--wp--preset--color--accent);
}

/* Fallback CSS flags when JS is delayed or disabled */
.ev-header__nav .lang-item-en:not(:has(.evparts-flag-badge)) > a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 0.35rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='m30 15 30 15v15H30zM0 15 30 0v-15H0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='m0 0 60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='m0 0 60 30m0-30L0 30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / cover;
}

.ev-header__nav .lang-item-pl:not(:has(.evparts-flag-badge)) > a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 0.35rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23fff' d='M0 0h640v240H0z'/%3E%3Cpath fill='%23dc143c' d='M0 240h640v240H0z'/%3E%3C/svg%3E") no-repeat center / cover;
}

/* Local catalog autocomplete — Ultra modern dark industrial design */
@keyframes evpartsSuggestFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.evparts-search-suggestions {
  position: absolute;
  z-index: 1000;
  inset-inline: 0;
  top: calc(100% + 0.35rem);
  max-height: min(22rem, 50vh);
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: rgba(18, 24, 32, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: evpartsSuggestFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 166, 35, 0.4) transparent;
}

.evparts-search-suggestions::-webkit-scrollbar {
  width: 6px;
}
.evparts-search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}
.evparts-search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(245, 166, 35, 0.4);
  border-radius: 3px;
}

.evparts-search-suggestions__item {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.evparts-search-suggestions__item:last-child {
  border-bottom: none;
}

.evparts-search-suggestions__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
  color: var(--wp--preset--color--text) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.evparts-search-suggestions__link:hover,
.evparts-search-suggestions__item.is-active .evparts-search-suggestions__link,
.evparts-search-suggestions__link:focus-visible {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.16) 0%, rgba(245, 166, 35, 0.03) 100%);
  border-left-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text) !important;
  outline: none;
}

/* Product thumbnail */
.evparts-search-suggestions__thumb-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid var(--wp--preset--color--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.evparts-search-suggestions__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evparts-search-suggestions__thumb-placeholder {
  color: var(--wp--preset--color--text-dim);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content */
.evparts-search-suggestions__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.evparts-search-suggestions__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #f0f6fc;
}

.evparts-search-suggestions__meta {
  color: var(--wp--preset--color--text-dim);
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* Aside: Price and badge */
.evparts-search-suggestions__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.evparts-search-suggestions__price {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--wp--preset--color--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.evparts-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--wp--preset--color--accent);
  border-radius: 2px;
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(245, 166, 35, 0.08);
}

.evparts-source-badge--suggestion {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 781px) {
  .wc-block-checkout .wc-block-checkout__sidebar {
    margin-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout,
  .wc-block-checkout,
  .woocommerce-account .wp-block-post-content {
    padding-inline: 0;
  }

  .evparts-search-suggestions__link {
    padding: 0.6rem 0.5rem;
    gap: 0.65rem;
  }

  .evparts-search-suggestions__thumb-box {
    width: 38px;
    height: 38px;
  }

  .evparts-search-suggestions__title {
    font-size: 0.82rem;
  }

  .evparts-search-suggestions__price {
    font-size: 0.88rem;
  }

  .evparts-source-badge--suggestion {
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
  }
}
