/*
 * GWD Live Commerce System CSS
 * Extracted & Isolated from monolith theme logic.
 */

:root {
  /* Localised Component Variables */
  --gwd-radius-md: 12px;
  --gwd-radius-sm: 6px;
  --gwd-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --gwd-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --gwd-color-success: #27AE60;
  --gwd-color-error: #D32F2F;
  --gwd-color-warning: #E67E22;
  --gwd-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  
}

/* ==========================================================================
   1. STRUCTURAL WRAPPERS & GRIDS
   ========================================================================== */
.gwd-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.gwd-product-slider {
  display: flex; gap: 1.5rem; padding-bottom: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none; 
}
.gwd-product-slider::-webkit-scrollbar { display: none; }
.gwd-product-slider > article { scroll-snap-align: start; min-width: 300px; }

.gwd-card {
  background-color: var(--theme-palette-color-5); 
  border: 1px solid var(--theme-palette-color-6);
  border-radius: var(--gwd-radius-md);
  box-shadow: var(--gwd-shadow);
  box-sizing: border-box;
}

.gwd-card-flush {
  margin: 0;
  position: relative;
  padding: 0 !important;
  overflow: hidden;
}

/* ==========================================================================
   2. BUTTONS & INPUTS
   ========================================================================== */
.gwd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  border-radius: 50px; 
  font-weight: 700;
  font-family: var(--gwd-font-primary);
  transition: var(--gwd-transition);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.gwd-btn-primary {
  background-color: var(--theme-palette-color-1);
  color: #FFFFFF !important;
}

.gwd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(124, 2, 54, 0.3);
}

.gwd-btn-full { width: 100%; }

.gwd-btn-micro { 
  padding: 0 0.8rem !important; 
  font-size: 0.75rem !important; 
  height: 32px !important; 
  line-height: 32px !important; 
}

.gwd-btn-shadow {
  box-shadow: 0 8px 15px -3px rgba(124,2,54,0.3);
}

.gwd-product-card .gwd-btn {
  padding: 0 1rem;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem; 
  height: 48px;
  line-height: 48px;
}

/* ==========================================================================
   3. PRODUCT CARD INTERNALS
   ========================================================================== */
.gwd-product-card { display: flex; flex-direction: column; }
.gwd-pc-image-wrap { position: relative; background: var(--theme-palette-color-4); border-bottom: 1px solid var(--theme-palette-color-6); }
.gwd-pc-hero-img { 
  width: 100%; aspect-ratio: 1 / 1; height: auto; 
  display: flex; align-items: center; justify-content: center; 
  color: var(--theme-palette-color-7); 
}
.gwd-pc-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.gwd-pc-brand-logo {
  position: absolute; bottom: 15px; left: 15px; width: 45px; height: 45px;
  background: var(--theme-palette-color-5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-weight: 800; font-size: 0.9rem;
}

.gwd-pc-trust-badge {
  position: absolute; top: 15px; right: 15px; z-index: 2;
  box-shadow: 0 6px 15px rgba(160, 28, 93, 0.25); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; text-align: center;
}

.gwd-badge-top { 
  background-color: #121815; color: #FFFFFF; font-size: 0.75rem; 
  font-weight: 800; padding: 4px 8px; letter-spacing: 0.02em; 
}
.gwd-badge-bottom { 
  background-color: #A01C5D; color: #FFFFFF; font-family: 'Manrope', var(--gwd-font-primary);
  font-size: 0.85rem; font-weight: 700; padding: 6px 10px; 
}

.gwd-pc-content { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.gwd-pc-brand { font-size: 0.85rem; font-weight: 700; color: var(--theme-palette-color-7); text-transform: uppercase; letter-spacing: 0.05em; }
.gwd-pc-title { font-size: 1.6rem; font-weight: 800; color: var(--theme-palette-color-8); margin: 0.25rem 0 1rem 0; line-height: 1.2; }
.gwd-pc-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.gwd-pc-footer { margin-top: auto; border-top: 1px solid var(--theme-palette-color-6); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.gwd-pc-price { font-size: 1.8rem; font-weight: 800; color: var(--theme-palette-color-8); margin-bottom: 1rem; display: flex; align-items: baseline; gap: 0.75rem; }
.gwd-price-inline { margin-bottom: 0; }
.gwd-price-from { font-size: 1rem; font-weight: 600; color: var(--theme-palette-color-7); }

.gwd-pc-footer .discfinder-alerts__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--gwd-font-primary);
  font-size: 1rem;
  background-color: var(--theme-palette-color-1);
  color: #FFFFFF !important;
  border: none;
  cursor: pointer;
  transition: var(--gwd-transition);
  text-decoration: none !important;
  margin: 0;
}

.gwd-pc-footer .discfinder-alerts__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(124, 2, 54, 0.3);
}

/* Tags */
.gwd-tag {
  display: inline-block; padding: 0.35rem 0.85rem;
  border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.gwd-tag-category { background-color: rgba(124, 2, 54, 0.1); color: var(--theme-palette-color-1); border: 1px solid var(--theme-palette-color-1); }
.gwd-tag-numbers { background-color: var(--theme-palette-color-6); color: var(--theme-palette-color-3); }

/* Global Hooks */
.gwd-global-hook { position: absolute; top: 15px; left: 15px; z-index: 2; }
.gwd-hook-pill {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.4rem 0.8rem;
  border-radius: 50px; background-color: var(--theme-palette-color-5); box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: inline-flex; align-items: center; color: var(--theme-palette-color-8);
}
.gwd-hook-pill.highlight-glow { color: var(--gwd-color-success); border: 1px solid var(--gwd-color-success); }

/* Labels & Alignment */
.gwd-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--theme-palette-color-7); text-transform: uppercase;}
.gwd-drawer-label { font-size: 0.75rem; margin: 0; }

.gwd-shipping-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.gwd-shipping-label { font-size: 0.8rem; font-weight: 600; white-space: nowrap; margin-right: 8px; color: var(--theme-palette-color-7); }

.gwd-price-stock-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

/* Currency Selector */
.gwd-currency-select {
  background-color: var(--theme-palette-color-4);
  border: 1px solid var(--theme-palette-color-6);
  color: var(--theme-palette-color-8);
  font-family: var(--gwd-font-primary);
  font-size: 0.8rem; font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: var(--gwd-radius-sm);
  cursor: pointer;
  height: auto;
  max-width: 100%; 
}

/* ==========================================================================
   4. STOCK & UI BADGES
   ========================================================================== */
.gwd-stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background-color: rgba(39, 174, 96, 0.12); color: var(--gwd-color-success);
  padding: 0.35rem 0.75rem; border-radius: 50px; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid rgba(39, 174, 96, 0.2);
}

.gwd-stock-dot {
  width: 6px; height: 6px; background-color: var(--gwd-color-success); border-radius: 50%;
  box-shadow: 0 0 0 rgba(39, 174, 96, 0.4); animation: gwd-pulse 2s infinite;
}

@keyframes gwd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(39, 174, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

/* ==========================================================================
   5. DRAWER SYSTEM
   ========================================================================== */
.gwd-retailer-drawer {
  background-color: var(--theme-palette-color-4); 
  border-top: 2px solid var(--theme-palette-color-6); 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  opacity: 0;
}

.gwd-retailer-drawer.is-open { 
  max-height: 800px; 
  opacity: 1; 
}

.gwd-drawer-header { padding: 1rem 1.5rem 0.5rem 1.5rem; background-color: var(--theme-palette-color-5); }
.gwd-drawer-fallbacks { padding: 1rem 1.5rem 1.5rem 1.5rem; background-color: var(--theme-palette-color-5); }

.gwd-retailer-list { display: flex; flex-direction: column; }

.gwd-retailer-row {
  display: flex; align-items: center; gap: 0.75rem; 
  padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--theme-palette-color-6);
  background-color: var(--theme-palette-color-5); transition: var(--gwd-transition);
  cursor: pointer;
}

.gwd-retailer-row:hover { background-color: var(--theme-palette-color-4); }

.gwd-retailer-row.gwd-sponsored {
  background-color: rgba(230, 126, 34, 0.05); /* Highlight sponsors lightly */
}

.gwd-row-retailer { display: flex; align-items: center; gap: 8px; flex: 0 0 170px; min-width: 0; }

.gwd-iso-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--theme-palette-color-6); color: var(--theme-palette-color-7);
  font-size: 0.65rem; font-weight: 800; padding: 0.15rem 0.4rem; border-radius: 4px; line-height: 1; flex-shrink: 0;
}

.gwd-retailer-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.gwd-retailer-name-text { font-weight: 800; font-size: 0.85rem; color: var(--theme-palette-color-8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gwd-promo-badge,
.gwd-perk-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  white-space: nowrap;
}

.gwd-promo-badge {
  background-color: rgba(39, 174, 96, 0.12);
  color: #1e824c;
  border: 1px dashed rgba(39, 174, 96, 0.4);
}

.gwd-perk-badge {
  background-color: rgba(52, 152, 219, 0.1);
  color: #2980b9;
}

.gwd-btn.gwd-btn-copied {
  background-color: #27ae60 !important;
  color: #ffffff !important;
  border-color: #27ae60 !important;
}

.gwd-copied-text {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.gwd-row-plastic { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--theme-palette-color-7); flex: 1; }

.gwd-row-price { font-weight: 800; font-size: 0.95rem; color: var(--theme-palette-color-3); text-align: right; flex: 0 0 55px; }

.gwd-price-estimated {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-style: normal;
}

.gwd-est-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gwd-est-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--theme-palette-color-7);
}

.gwd-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--theme-palette-color-7);
  background: transparent;
  color: var(--theme-palette-color-7);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.gwd-info-btn:hover,
.gwd-info-btn:focus {
  opacity: 1;
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-1);
  outline: none;
}

.gwd-info-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  opacity: 0.78;
}

.gwd-row-colours { flex: 0 0 50px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.gwd-row-weight { font-size: 0.7rem; font-weight: 700; color: var(--theme-palette-color-7); }

.gwd-swatches-wrap { display: flex; gap: 4px; align-items: center; }
.gwd-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }

.gwd-row-action { flex: 0 0 auto; }

/* Responsive Rows */
@media (max-width: 600px) {
  .gwd-retailer-row { flex-wrap: wrap; padding: 1rem 1.5rem; }
  .gwd-row-retailer { flex: 0 0 100%; margin-bottom: 4px; font-size: 0.95rem; }
  .gwd-row-plastic { flex: 1; }
  .gwd-row-price { flex: 0 0 auto; margin-right: auto; }
  .gwd-row-colours { flex: 0 0 auto; margin-right: auto; justify-content: flex-start; }
  .gwd-row-action { flex: 0 0 100%; margin-top: 8px; }
  .gwd-row-action .gwd-btn-micro { width: 100%; }
}

/* ==========================================================================
   6. FALLBACK SEARCH 
   ========================================================================== */
.gwd-fallback-divider {
  display: flex; align-items: center; text-align: center; margin: 0.5rem 0 1.25rem 0;
}

.gwd-fallback-divider::before,
.gwd-fallback-divider::after {
  content: ''; flex: 1; border-bottom: 1px solid var(--theme-palette-color-6);
}

.gwd-fallback-divider span {
  padding: 0 0.85rem; font-size: 0.65rem; font-weight: 800; color: var(--theme-palette-color-7);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.gwd-fallback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.gwd-marketplace-btn {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--theme-palette-color-5); border: 1px solid var(--theme-palette-color-6);
  border-radius: var(--gwd-radius-sm); padding: 0.6rem 1rem; color: var(--theme-palette-color-3);
  font-family: var(--gwd-font-primary); font-weight: 700; font-size: 0.85rem;
  text-decoration: none !important; transition: var(--gwd-transition); box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.gwd-marketplace-btn:hover {
  border-color: var(--theme-palette-color-1); color: var(--theme-palette-color-1);
  transform: translateY(-2px); box-shadow: 0 4px 8px rgba(124, 2, 54, 0.1);
}

/* ==========================================================================
   7. AFFILIATE MODAL (JS INJECTED)
   ========================================================================== */
.gwd-handoff-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
  z-index: 99999; display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}

.gwd-handoff-overlay.is-active { opacity: 1; }

.gwd-handoff-dialog {
  background-color: var(--theme-palette-color-5); padding: 3rem 2rem;
  border-radius: var(--gwd-radius-md); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center; max-width: 400px; width: 90%; transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gwd-handoff-overlay.is-active .gwd-handoff-dialog { transform: scale(1); }

.gwd-handoff-text { font-family: var(--gwd-font-primary); color: var(--theme-palette-color-8); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3;}
#gwd-handoff-retailer { color: var(--theme-palette-color-1); }
.gwd-handoff-sub { font-size: 0.9rem; color: var(--theme-palette-color-7); margin: 0; }

.gwd-handoff-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 1rem;
    padding: 0.7rem 1.1rem;
    background: var(--theme-palette-color-1);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.gwd-handoff-link[hidden] {
    display: none;
}

.gwd-handoff-loader {
  border: 4px solid var(--theme-palette-color-6);
  border-top: 4px solid var(--theme-palette-color-1);
  border-radius: 50%; width: 50px; height: 50px; margin: 0 auto 1.5rem auto;
  animation: gwd-spin 1s linear infinite;
}

@keyframes gwd-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Belt-and-suspenders dark mode for the handoff dialog, covering all three dark-mode signals
   the site uses: data-theme attribute (custom toggle), data-color-mode attribute (Blocksy native),
   and the OS-level prefers-color-scheme (for users who haven't interacted with the toggle yet). */
:root[data-theme="dark"] .gwd-handoff-dialog,
:root[data-color-mode="dark"] .gwd-handoff-dialog { background-color: #1E1E1E; }

:root[data-theme="dark"] .gwd-handoff-text,
:root[data-color-mode="dark"] .gwd-handoff-text { color: #FFF4E7; }

:root[data-theme="dark"] .gwd-handoff-sub,
:root[data-color-mode="dark"] .gwd-handoff-sub { color: #A0A0A0; }

:root[data-theme="dark"] .gwd-handoff-loader,
:root[data-color-mode="dark"] .gwd-handoff-loader { border-color: #333333; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-color-mode="light"]) .gwd-handoff-dialog { background-color: #1E1E1E; }
  :root:not([data-theme="light"]):not([data-color-mode="light"]) .gwd-handoff-text { color: #FFF4E7; }
  :root:not([data-theme="light"]):not([data-color-mode="light"]) .gwd-handoff-sub { color: #A0A0A0; }
  :root:not([data-theme="light"]):not([data-color-mode="light"]) .gwd-handoff-loader { border-color: #333333; }
}

/* ==========================================================================
   6. VERDICT LIVE STOCK SECTION (Inline Editorial Engine)
   ========================================================================== */
.gwd-verdict-stock-section {
  position: static !important;
  margin: 3.5rem 0 2rem 0 !important;
  clear: both !important;
  display: block !important;
}

.gwd-verdict-stock-card {
  position: relative !important;
  background-color: var(--theme-palette-color-5);
  border: 1px solid var(--theme-palette-color-6);
  border-radius: var(--gwd-radius-md);
  box-shadow: var(--gwd-shadow);
  overflow: hidden;
}

.gwd-verdict-stock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--theme-palette-color-4);
  border-bottom: 1px solid var(--theme-palette-color-6);
}

.gwd-verdict-title-wrap {
  display: flex;
  flex-direction: column;
}

.gwd-verdict-heading {
  margin: 0.2rem 0 0 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--theme-palette-color-8) !important;
  line-height: 1.3 !important;
}

.gwd-verdict-market-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gwd-verdict-fallbacks {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  background-color: var(--theme-palette-color-4);
  border-top: 1px solid var(--theme-palette-color-6);
}

.gwd-scroll-to-stock {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 600px) {
  .gwd-verdict-stock-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .gwd-verdict-market-wrap {
    width: 100%;
    justify-content: space-between;
  }
}

/* Canonical Disc Page PDP Layout */
.gwd-canonical-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .gwd-canonical-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.gwd-canonical-left {
  display: flex;
  flex-direction: column;
}

.gwd-canonical-stock-section {
  margin-top: 1rem;
  border: 1px solid var(--theme-palette-color-6);
  border-radius: var(--gwd-radius-md);
  overflow: hidden;
  background-color: var(--theme-palette-color-5);
}

.gwd-canonical-stock-section .gwd-retailer-list {
  display: flex;
  flex-direction: column;
}

.gwd-canonical-fallbacks {
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
  background-color: var(--theme-palette-color-4);
  border-top: 1px solid var(--theme-palette-color-6);
}

.gwd-canonical-action-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Market Selector Pill & Controls */
.gwd-market-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--theme-palette-color-4);
  border: 1px solid var(--theme-palette-color-6);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.gwd-market-selector-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-palette-color-7);
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.gwd-market-globe {
  font-size: 1rem;
  line-height: 1;
}

.gwd-market-select-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gwd-market-select-pill .gwd-currency-select {
  border: none !important;
  background: transparent !important;
  padding: 0.1rem 1.4rem 0.1rem 0.25rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--theme-palette-color-8) !important;
  max-width: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
}

.gwd-select-chevron {
  position: absolute;
  right: 0.2rem;
  font-size: 0.75rem;
  color: var(--theme-palette-color-7);
  pointer-events: none;
}

/* Offer Summary Card */
.gwd-offer-summary-card {
  margin: 1rem 0;
  padding: 0.85rem 1.15rem;
  background-color: var(--theme-palette-color-4);
  border: 1px solid var(--theme-palette-color-6);
  border-radius: var(--gwd-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gwd-offer-summary-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-palette-color-8);
}

.gwd-summary-stat strong {
  color: var(--theme-palette-color-1);
}

.gwd-converted-stat {
  cursor: help;
  border-bottom: 1px dotted var(--theme-palette-color-7);
}

.gwd-summary-sep {
  color: var(--theme-palette-color-6);
  font-size: 0.8rem;
}

.gwd-offer-summary-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--theme-palette-color-7);
  line-height: 1.45;
}

.gwd-last-updated {
  margin: 0.15rem 0 0 0;
  font-size: 0.72rem;
  color: var(--theme-palette-color-7);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Region Segmented Filter Bar */
.gwd-region-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--theme-palette-color-4);
  border-bottom: 1px solid var(--theme-palette-color-6);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gwd-region-filter-bar::-webkit-scrollbar {
  display: none;
}

.gwd-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: var(--theme-palette-color-5);
  border: 1px solid var(--theme-palette-color-6);
  color: var(--theme-palette-color-7);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--gwd-font-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--gwd-transition);
}

.gwd-region-pill:hover {
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-8);
}

.gwd-region-pill.is-active {
  background-color: var(--theme-palette-color-1);
  border-color: var(--theme-palette-color-1);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(124, 2, 54, 0.25);
}

.gwd-region-pill.is-active .gwd-pill-count {
  color: rgba(255, 255, 255, 0.85);
}

.gwd-pill-count {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Disc Specifications Card (Left Column) */
.gwd-disc-specs-card {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--theme-palette-color-4);
  border: 1px solid var(--theme-palette-color-6);
  border-radius: var(--gwd-radius-md);
}

.gwd-specs-heading {
  margin: 0 0 0.75rem 0 !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-palette-color-7) !important;
}

.gwd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
}

.gwd-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gwd-spec-item dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-palette-color-7);
  margin: 0;
}

.gwd-spec-item dd {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--theme-palette-color-8);
  margin: 0;
}

/* Similar Discs Card Link */
.gwd-similar-img-link {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.gwd-similar-img-link:hover {
  transform: scale(1.03);
}

/* Popover Tooltip for Converted Prices */
.gwd-popover-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background-color: #222222;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: normal;
  width: max-content;
  max-width: 240px;
  z-index: 1000;
  text-align: left;
  pointer-events: none;
  animation: gwdTooltipFadeIn 0.15s ease-out;
}

.gwd-popover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 6px;
  border: 5px solid transparent;
  border-top-color: #222222;
}

@keyframes gwdTooltipFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

:root[data-theme="dark"] .gwd-popover-tooltip,
:root[data-color-mode="dark"] .gwd-popover-tooltip {
  background-color: #333333;
  color: #F5F5F5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .gwd-popover-tooltip::after,
:root[data-color-mode="dark"] .gwd-popover-tooltip::after {
  border-top-color: #333333;
}

/* Floating Toast Notification */
.gwd-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  padding: 0.85rem 1.4rem;
  border-radius: var(--gwd-radius-md, 8px);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.3) !important;
  z-index: 2147483647 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.gwd-toast.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.gwd-toast strong {
  color: #38bdf8 !important;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.gwd-promo-badge {
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.gwd-promo-badge:hover {
  background-color: rgba(39, 174, 96, 0.2);
  border-color: rgba(39, 174, 96, 0.7);
  transform: translateY(-1px);
}

.gwd-promo-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: rgba(30, 130, 76, 0.18);
  color: #166534;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 2px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gwd-promo-badge:hover .gwd-promo-copy-chip {
  background-color: #166534;
  color: #ffffff;
}

/* Local Price Hydration Spinner (prevents base-currency flash on canonical pages) */
.gwd-price-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 24px;
  vertical-align: middle;
}

.gwd-price-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(138, 26, 64, 0.2);
  border-top-color: var(--df-maroon, var(--theme-palette-color-1, #8a1a40));
  border-radius: 50%;
  animation: gwdPriceSpin 0.7s linear infinite;
}

@keyframes gwdPriceSpin {
  to { transform: rotate(360deg); }
}

.gwd-product-card:not(.gwd-hydrated) .gwd-offer-summary-badge,
.gwd-product-card:not(.gwd-hydrated) .gwd-offer-summary-text {
  opacity: 0;
}

.gwd-product-card.gwd-hydrated .gwd-offer-summary-badge,
.gwd-product-card.gwd-hydrated .gwd-offer-summary-text {
  opacity: 1;
  transition: opacity 0.15s ease-in;
}
