/* ================================================================
   Wheel Supplier Search — Plugin-specific styles
   Shared styles (cart panel, qty, WhatsApp, status badges) are in
   shared-cart-assets/shared-cart.css
   ================================================================ */

/* --- Search Form Container --- */
.wheel-search-banner-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-image: url("/wp-content/uploads/wheel-search-background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
}

#wheel-search-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

#wss-title {
    text-align: center;
    font-size: 26px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 20px;
}

.wss-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
#wss-model select,
#wss-size select {
    margin-right: 0;
}

#wheel-search-container select,
#wheel-search-container button {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#wheel-search-container select:disabled {
    opacity: 0.5;
}

/* --- Search Button --- */
#wss-search-btn {
    background: #ccc;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    padding: 10px 20px !important;
    width: auto;
    min-width: 120px;
    text-align: center;
    font-size: 16px;
    display: block;
    margin: 10px auto;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}
#wss-search-btn:disabled {
    background: #ccc;
    color: #aaa;
    cursor: not-allowed;
}
#wss-search-btn.enabled {
    background: #4CAF50;
    color: #fff;
    cursor: pointer;
}
#wss-search-btn.enabled:hover {
    background: #45a049;
    transform: scale(1.02);
}

/* --- Tire size quick search buttons --- */
.wss-tire-size-button {
  background-color: #007cba;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 0.95em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transform: scale(1);
}
.wss-tire-size-button:hover {
  background-color: #005fa3;
  border-color: #004f8a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
  text-decoration: none;
}

.wss-recommended-sizes {
  margin-bottom: 12px;
  text-align: center;
}
.wss-recommended-sizes p {
  margin-bottom: 4px;
}

.wss-season-radios label {
  margin: 0 10px;
  font-weight: 500;
  cursor: pointer;
}
.wss-season-radios input[type="radio"] {
  margin-right: 4px;
  cursor: pointer;
}

/* ================================================================
   TOOLBAR — matches tire search layout exactly
   ================================================================ */
.wss-results-header {
  margin-bottom: 8px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.wss-results-header h3 {
  margin-bottom: 8px;
}
.wss-header-meta {
  font-size: 0.55em;
  font-weight: 400;
  color: #666;
  vertical-align: middle;
}
.wss-results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.wss-range-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.wss-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wss-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.wss-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #999;
  pointer-events: none;
  z-index: 1;
}
input[type="text"].wss-text-filter {
  padding: 7px 24px 7px 30px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 0.85em !important;
  width: 160px !important;
  background: #fafafa !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, width 0.25s;
  outline: none !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: normal !important;
  box-shadow: none !important;
  margin: 0 !important;
}
input[type="text"].wss-text-filter:focus {
  border-color: #007cba !important;
  box-shadow: 0 0 0 3px rgba(0,124,186,0.08) !important;
  background: #fff !important;
  width: 220px !important;
}
input[type="text"].wss-text-filter::placeholder {
  color: #bbb;
}
.wss-text-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 5px;
  line-height: 1;
  display: none;
  z-index: 1;
}
.wss-text-clear:hover {
  color: #333;
}
.wss-text-clear.visible {
  display: block;
}
.wss-price-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wss-price-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wss-price-input {
  width: 62px !important;
  padding: 7px 8px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 0.85em !important;
  background: #fafafa !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -moz-appearance: textfield !important;
}
.wss-price-input::-webkit-outer-spin-button,
.wss-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.wss-price-input:focus {
  border-color: #007cba !important;
  box-shadow: 0 0 0 3px rgba(0,124,186,0.08) !important;
  background: #fff !important;
}
.wss-price-sep {
  color: #999;
  font-size: 0.85em;
}
/* Sort — inline trigger + dropdown (matches tire search) */
.wss-sort-wrap {
  position: relative;
  display: inline;
}
.wss-sort-trigger {
  cursor: pointer;
  color: #0073aa;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  font-size: 0.55em;
  font-weight: 400;
}
.wss-sort-trigger:hover {
  color: #005177;
}
.wss-sort-dropdown {
  position: absolute;
  top: 1.6em;
  left: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 4px 0;
  min-width: 180px;
  white-space: nowrap;
  display: none;
}
.wss-sort-dropdown.open {
  display: block;
}
.wss-sort-option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.9em;
  color: #333;
}
.wss-sort-option:hover {
  background: #f5f5f5;
}
.wss-sort-option.active {
  font-weight: 600;
  color: #0073aa;
}
.wss-view-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.wss-view-btn {
  background: #fafafa;
  border: none;
  border-right: 1px solid #ddd;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 1;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.wss-view-btn:last-child { border-right: none; }
.wss-view-btn:hover { background: #f0f0f0; color: #555; }
.wss-view-btn.active {
  background: #333;
  color: #fff;
}
.wss-view-btn svg { display: block; }

/* ================================================================
   GRID VIEW
   ================================================================ */
.wss-wheel-container {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Show/hide based on active view */
.wss-view-grid .wss-wheel-container { display: grid; }
.wss-view-grid .wss-list-container { display: none; }
.wss-view-list .wss-wheel-container { display: none; }
.wss-view-list .wss-list-container { display: block; }

#wss-results-header {
    text-align: center;
    margin-bottom: 20px;
}
#wss-results-header h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #333;
}
#wss-results-header .wss-additional {
    max-width: 600px;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
    line-height: 1.5;
}

.wss-wheel {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.wss-wheel:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}


.wss-grid-image-wrap {
    position: relative;
    background: #fff;
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}
.wss-grid-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.wss-card-body {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.wss-price {
    font-size: 1.3em;
    font-weight: 800;
    margin: 0 0 2px;
    color: #111;
}
.wss-subtext {
    font-size: 0.78em;
    color: #999;
    margin: 0 0 8px;
}
.wss-info {
    margin-top: 0;
}
.wss-manuf-model {
    font-size: 0.95em;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.25;
}
.wss-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 6px 0;
}
.wss-tech {
    font-size: 0.82em;
    color: #555;
    margin: 0;
}
.wss-tech span {
    margin-right: 12px;
}
.wss-tech span.wss-bolt {
    margin-right: 0;
}

/* Grid view actions */
.wss-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    width: 100%;
}
.wss-actions .wss-cart-form {
    display: flex;
    align-items: center;
    gap: 0;
}
.wss-wheel .wss-whatsapp-button {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}
.wss-wheel .wss-whatsapp-text {
    display: none !important;
}
.wss-wheel .wss-whatsapp-icon {
    position: static !important;
    transform: none !important;
    width: 32px !important;
    height: 32px !important;
}
.wss-wheel .wss-whatsapp-icon img {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
}

/* ================================================================
   LIST VIEW — matches tire search styling
   ================================================================ */
.wss-list-container {
  display: none;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.wss-list-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 72px;
  padding: 10px 0;
  max-width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.1s;
}
.wss-list-row:first-child {
  border-top: 1px solid #e8e8e8;
}
.wss-list-row:hover {
  background: #fafbfc;
}

.wl-img {
  flex: 0 0 76px;
  padding: 0 6px;
}
.wl-img img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  cursor: pointer;
}
.wl-img-preview {
  position: fixed;
  width: 260px;
  height: 260px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 100000;
  pointer-events: none;
  padding: 10px;
}

.wl-brand {
  flex: 0 0 110px;
  font-size: 0.88em;
  line-height: 1.3;
  padding: 0 6px 0 12px;
}
.wl-brand strong { font-weight: 600; }

.wl-model {
  flex: 0 0 110px;
  min-width: 0;
  font-size: 0.85em;
  line-height: 1.3;
  color: #555;
  padding: 0 6px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.wl-specs {
  flex: 0 0 155px;
  display: flex;
  flex-direction: column;
  font-size: 0.82em;
  gap: 3px;
  padding: 0 8px;
  color: #444;
}
.wl-specs span {
  margin-right: 12px;
}
.wl-specs span:last-child {
  margin-right: 0;
}

.wl-price {
  flex: 0 0 110px;
  text-align: right;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wl-price strong {
  font-size: 1em;
  color: #111;
}
.wl-total {
  font-size: 0.75em;
  color: #999;
  line-height: 1.3;
}

.wl-delivery {
  flex: 0 0 130px;
  min-width: 130px;
  max-width: 130px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 6px;
  overflow: hidden;
}
.wl-delivery .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none !important;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  box-shadow: none;
}

.wl-buy {
  flex: 0 0 auto;
  padding: 0 8px;
}
.wl-buy .wss-cart-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.wl-wa {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 4px;
  overflow: visible;
  position: relative;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet — icon-only WhatsApp, no hover animation */
@media (max-width: 965px) {
  .wl-brand { flex: 0 0 100px; font-size: 0.85em; }
  .wl-model { flex: 0 0 80px; font-size: 0.8em; }
  .wl-specs { flex: 0 0 160px; font-size: 0.78em; }
  .wl-price { flex: 0 0 85px; padding: 0 6px; }
  .wl-delivery { flex: 0 0 70px; }

  .wl-wa .wss-whatsapp-text { display: none !important; }
  .wl-wa .wss-whatsapp-button {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
  }
  .wl-wa .wss-whatsapp-icon img {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
  }
}

/* Narrow tablet — shrink columns to prevent overflow */
@media (max-width: 845px) and (min-width: 769px) {
  .wss-list-row {
    padding: 10px 4px;
  }
  .wl-img { flex: 0 0 52px; padding: 0 4px; }
  .wl-img img { width: 46px; height: 46px; }
  .wl-brand { flex: 0 1 80px; font-size: 0.82em; padding: 0 4px; }
  .wl-model { flex: 0 1 70px; font-size: 0.78em; padding: 0 4px; }
  .wl-specs { flex: 0 1 120px; font-size: 0.75em; padding: 0 4px; }
  .wl-price { flex: 0 0 75px; padding: 0 4px; font-size: 0.88em; }
  .wl-delivery { flex: 0 0 60px; min-width: 60px; max-width: 60px; padding: 0 2px; }
  .wl-buy { padding: 0 4px; }
  .wl-wa { padding: 0 2px; }
}

/* Mobile */
@media (max-width: 768px) {
  #wheel-search-container {
    max-width: 90%;
    margin: 20px auto;
  }

  /* Grid: horizontal card layout on mobile (matches tire search) */
  .wss-wheel-container {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .wss-wheel {
    display: grid;
    grid-template-columns: 40% 60%;
    text-align: left;
  }
  .wss-grid-image-wrap {
    height: auto;
    border-radius: 12px 0 0 12px;
    padding: 12px;
  }
  .wss-card-body {
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    align-items: flex-start;
  }
  .wss-price { font-size: 1em; }
  .wss-subtext { font-size: 0.72em; margin-bottom: 4px; }
  .wss-manuf-model { font-size: 0.82em; text-align: left; }
  .wss-tech { font-size: 0.72em; }
  .wss-tech span { margin-right: 6px; }
  .wss-actions { gap: 4px; margin-top: 6px; }
  .wss-wheel .wss-whatsapp-button {
    width: 28px !important;
    height: 28px !important;
  }
  .wss-wheel .wss-whatsapp-icon img {
    width: 24px !important;
    height: 24px !important;
  }

  /* Toolbar stacks */
  .wss-results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .wss-text-filter {
    width: 100% !important;
  }
  .wss-range-filters {
    width: 100%;
  }
  .wss-price-filter {
    width: 100%;
  }
  .wss-toolbar-right {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }
  .wss-search-wrap {
    flex: 1;
    min-width: 120px;
  }

  /* ── Mobile list: CSS Grid card ── */
  .wss-list-row {
    display: grid !important;
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "img brand price"
      "img model price"
      "specs specs specs"
      "actions actions actions";
    gap: 0;
    padding: 12px 14px;
    align-items: center;
  }

  .wl-img {
    grid-area: img;
    padding: 0 10px 0 0;
    align-self: start;
    padding-top: 2px;
  }
  .wl-img img { width: 42px; height: 42px; }

  .wl-brand {
    grid-area: brand;
    padding: 0;
    font-size: 0.9em;
    line-height: 1.3;
  }

  .wl-model {
    grid-area: model;
    padding: 0;
    font-size: 0.82em;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word;
    line-height: 1.3;
    color: #555;
  }

  .wl-price {
    grid-area: price;
    text-align: right;
    padding: 0 0 0 8px;
    align-self: start;
  }
  .wl-price strong { font-size: 1em; }
  .wl-total { display: none; }

  .wl-specs {
    grid-area: specs;
    padding: 6px 0 0 0;
    font-size: 0.75em;
    display: inline;
  }
  .wl-delivery {
    grid-area: specs;
    justify-self: end;
    padding: 6px 0 0 0;
  }
  .wl-delivery .status-badge {
    font-size: 0.73em !important;
    padding: 2px 8px;
  }

  .wl-buy {
    grid-area: actions;
    padding: 10px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .wl-wa {
    grid-area: actions;
    justify-self: end;
    align-self: end;
    padding: 10px 0 0 0;
  }
  .wl-wa .wss-whatsapp-button {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
  }
  .wl-wa .wss-whatsapp-text { display: none !important; }
  .wl-wa .wss-whatsapp-icon img {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
  }
}

/* ── Product detail modal ── */
.wss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.wss-modal-overlay.active {
  opacity: 1;
}
.wss-modal-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.wss-modal-overlay.active .wss-modal-panel {
  transform: translateY(0);
}
.wss-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.wss-modal-close:hover { background: rgba(0,0,0,0.1); color: #333; }
/* Modal hero: image left, info right */
.wss-modal-hero {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
}
.wss-modal-img {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #fff;
}
.wss-modal-img img {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}
.wss-modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 28px 0;
  gap: 10px;
}
.wss-modal-title {
  font-size: 1.25em;
  font-weight: 800;
  color: #111;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.wss-modal-tech {
  font-size: 0.9em;
  color: #888;
  margin: 0;
  font-weight: 500;
}
.wss-modal-tech span {
  margin-right: 12px;
}
.wss-modal-specs {
  display: flex;
  gap: 6px;
  margin: 0;
}
.wss-modal-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 58px;
}
.wss-modal-spec-val {
  font-size: 1em;
  font-weight: 700;
  color: #222;
}
.wss-modal-spec-label {
  font-size: 0.62em;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Modal purchase row */
.wss-modal-purchase {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.wss-modal-price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wss-modal-price {
  font-size: 1.5em;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
}
.wss-modal-total {
  font-size: 0.8em;
  color: #999;
}
.wss-modal-delivery {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wss-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.wss-modal-actions .wss-cart-form {
  display: flex;
  align-items: center;
  gap: 0;
}
.wss-modal-actions .wss-cart-form .sp-quantity {
  margin-right: 0;
}
.wss-modal-actions .sp-add-to-cart-button {
  margin-left: 8px !important;
}
.wss-modal-wa {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  width: 34px !important;
  height: 34px !important;
  flex-shrink: 0 !important;
}
.wss-modal-wa .wss-whatsapp-text {
  display: none !important;
}
.wss-modal-wa .wss-whatsapp-icon {
  position: static !important;
  transform: none !important;
  width: 32px !important;
  height: 32px !important;
}
.wss-modal-wa .wss-whatsapp-icon img {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}

/* Modal responsive */
@media (max-width: 580px) {
  .wss-modal-hero {
    flex-direction: column;
  }
  .wss-modal-img {
    flex: none;
    padding: 20px;
  }
  .wss-modal-img img {
    max-width: 160px;
    max-height: 160px;
  }
  .wss-modal-info {
    padding: 0 20px 16px;
    align-items: center;
    text-align: center;
  }
  .wss-modal-specs {
    justify-content: center;
  }
  .wss-modal-purchase {
    padding: 14px 20px;
    justify-content: center;
  }
  .wss-modal-actions {
    margin-left: 0;
  }
}

/* ── Zero results notice ── */
.wss-zero-notice {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 0.95em;
}
.wss-zero-notice p {
  margin: 0 0 12px;
}
.wss-reset-filters {
  display: inline-block;
  padding: 8px 18px;
  background: #007cba;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: background 0.15s;
}
.wss-reset-filters:hover {
  background: #005f8a;
}

/* ================================================================
   TIRE SEARCH SECTION
   ================================================================ */
.wss-tire-button-wrapper {
    text-align: center;
    margin-top: 15px;
}
.wss-tire-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.wss-tire-btn:hover {
    background-color: #005a8c;
    transform: scale(1.02);
}

#wss-tire-search {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 30px;
    border-radius: 4px;
    background: #f9f9f9;
}
.wss-tire-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}
.wss-tire-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 10px;
}
.wss-tire-field {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}
.wss-tire-field label {
    font-size: 12px;
    margin-bottom: 3px;
}
.wss-tire-field input,
.wss-tire-field select {
    padding: 5px;
    font-size: 14px;
    box-sizing: border-box;
}
#wss-tire-search-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#wss-tire-search-btn:hover {
    background-color: #005a8c;
    transform: scale(1.02);
}

/* ================================================================
   UPSELL SECTION
   ================================================================ */
.wss-upsell {
  max-width: 960px;
  margin: 0 auto 24px auto;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width: 820px){
  .wss-upsell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.wss-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 0;
}
@media(min-width: 820px){
  .wss-tile:not(:last-child){
    border-right: 1px solid #dcdcdc;
    padding-right: 24px;
  }
  .wss-tile:last-child{
    padding-left: 24px;
  }
}

.wss-tile-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.wss-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d4dbe5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.wss-head-text {
  flex: 1;
  min-width: 0;
}
.wss-head-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 4px;
}
.wss-head-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #4a4a4a;
  max-width: 46ch;
}

.wss-lineitem {
  padding: 12px 0;
  border-top: 1px solid #e2e5e9;
  display: grid;
  grid-template-columns: auto max-content;
  column-gap: 12px;
  row-gap: 4px;
}
.wss-lineitem:first-of-type {
  border-top: 1px solid #e2e5e9;
}
.wss-line-main {
  grid-column: 1 / 2;
  font-size: 14px;
  font-weight: 500;
  color: #0a3a7a;
  text-decoration: none;
  line-height: 1.4;
}
.wss-line-main:hover {
  text-decoration: underline;
  color: #002a5a;
}
.wss-line-label {
  color: #0a3a7a;
}
.wss-line-meta {
  color: #6b6b6b;
  font-weight: 400;
  margin-left: 4px;
  font-size: 13px;
}
.wss-line-price {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: 1px solid #cfd5de;
  border-radius: 6px;
  padding: 4px 8px;
  line-height: 1.3;
  align-self: start;
  white-space: nowrap;
  width: 90px;
  text-align: center;
  justify-self: end;
}
.wss-line-note {
  grid-column: 1 / 3;
  font-size: 12px;
  line-height: 1.4;
  color: #7a7a7a;
  font-weight: 400;
}

@media(max-width: 400px){
  .wss-line-price {
    font-size: 13px;
    padding: 3px 6px;
  }
  .wss-head-title {
    font-size: 16px;
  }
}
