/* ============================================
   Container & general widget layout
   ============================================ */
.tp-fitment-widget {
  max-width: 520px;
  background: #f7f8fa;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
}

/* ============================================
   Tabs row — corrected active/inactive colors
   ============================================ */
.tp-tabs {
  display:flex;
  gap:6px;
  margin-bottom:12px;
}

.tp-tabs .tp-tab {
  flex: 1 1 50%;
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  background:#3E3E40;       /* NOT ACTIVE (default) */
  border:1px solid #3E3E40;
  cursor:pointer;
  font-weight:600;
  color:#fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hover */
.tp-tabs .tp-tab:hover {
  background:#F2811D;
  border-color:#F2811D;
  color:#fff;
}

/* Active */
.tp-tabs .tp-tab.active {
  background:#F2811D;       /* ACTIVE = ORANGE */
  border-color:#F2811D;
  color:#fff;
}

/* Active + hover */
.tp-tabs .tp-tab.active:hover {
  background:#F2811D;
  border-color:#F2811D;
  color:#fff;
}

/* responsive: stack tabs vertically */
@media (max-width: 480px) {
  .tp-tabs { flex-direction: column; }
  .tp-tabs .tp-tab { width: 100%; }
}


.tp-plate-search {
  display:flex !important;
  gap:8px !important;
  margin-bottom:12px !important;
}

.tp-plate-search input {
  flex:1 !important;
  padding:14px !important;
  font-weight:700 !important;
  text-align:center !important;
  background:#f7d94a !important;
 
  border-radius:4px !important;
  border:none !important;
  border-left:30px solid #0f4fa6 !important;
}

.tp-plate-search button {
  padding:12px 16px !important;
  background:#F2811D !important;
  border:none !important;
  color:#fff !important;
  border-radius:6px !important;
  cursor:pointer !important;
}


/* ============================================
   Unified Select Styles (Manual + Tires)
   ============================================ */
.tp-manual-search select,
.tp-manual-search .tp-select,
.tp-tires-search .tp-select
{
  width:100%;
  padding:16px;
  margin:8px 0;
  border-radius:6px;
  border:1px solid #e3e3e3;
  font-size:16px;
  background:#fff;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background-image:
      linear-gradient(45deg, transparent 50%, #999 50%),
      linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
      calc(100% - 18px) calc(1em + 2px),
      calc(100% - 13px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

/* ============================================
   Primary button
   ============================================ */
.tp-btn-primary {
  background:#F2811D;
  color:#fff;
  padding:12px;
  border-radius:6px;
  border:none;
  width:100%;
  font-weight:600;
  cursor:pointer;
}

/* ============================================
   Tires Search Layout
   ============================================ */
.tp-tires-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tp-tires-search .tp-btn-primary {
  margin-top: 6px;
}

/* ============================================
   Results grid & cards
   ============================================ */
.tp-results {
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}

.tp-card {
  background:#fff;
  border:1px solid #eee;
  padding:10px;
  border-radius:6px;
  text-align:center;
}

/* ============================================
   Labels
   ============================================ */
.tp-plate-label,
.tp-filter-label {
    margin: 10px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #6b6b6b;
}

/**---------------fixed selecttttttttr----------------/*/



/* ====== Selects-only styles for tp widget ====== */

/* Base for all selects in your widget */
.tp-manual-search select,
.tp-select,
#tp_tire_width,
#tp_tire_height,
#tp_tire_diameter,
#tp_brand,
#tp_model,
#tp_engine {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 12px; /* space for custom arrow on the right */
  font-size: 14px;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #fff;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* arrow (SVG) */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23777' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;

  color: #222; /* color for selected value */
}

/* Placeholder color (works when first option is disabled/selected/hidden OR when select has required) */
.tp-manual-search select:invalid,
.tp-manual-search select[value=""],
.tp-select:invalid,
.tp-select[value=""] {
  color: #9b9b9b; /* placeholder color */
}

/* Ensure native option text stays dark when opened */
.tp-manual-search select option {
  color: #222;
}

/* Disabled selects */
.tp-manual-search select[disabled],
.tp-select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f6f6f6;
}

/* Focus state (visible ring + border) */
.tp-manual-search select:focus,
.tp-select:focus {
  outline: none;
  border-color: rgba(243,146,0,0.9); /* accent color */
  box-shadow: 0 0 0 4px rgba(243,146,0,0.12);
}

/* Small helper to avoid clipping when native dropdown opens in some browsers
   (only useful if parent had overflow:hidden) */
.tp-manual-search,
.tp-manual-search * {
  position: relative;
  z-index: 10;
}

/* For grid layout: make button span full width while selects take single cells */
.tp-manual-search { display: grid; gap: 10px; grid-auto-flow: row; }
.tp-manual-search.tp-tires-search { grid-template-columns: repeat(3, 1fr); }
.tp-manual-search .tp-btn-primary { grid-column: 1 / -1; }

/* Responsive: stack selects on small screens */
@media (max-width: 720px) {
  .tp-manual-search.tp-tires-search { grid-template-columns: 1fr; }
}

/* Optional: increase click area on mobile for the arrow */
.tp-manual-search select::-ms-expand { display: none; } /* hide IE default arrow */




