.wheels-search-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
}
.filter-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
table#wheels-results-table td,
table#wheels-results-table th,
#clearance-table td,
#clearance-table th {
  font-size: 12.8px !important;
  font-family: Arial, sans-serif;
}
label.exclude_zero_stock {
  display: block !important;
}
.wheels-spec-search,
.wheels-partno-search {
  flex: 1;
  min-width: 300px;
}
form.wheels-partno-search {
  padding-top: 50px;
}
.wheels-spec-search .select2-selection--multiple {
  border: 1px solid #aaaaaa78 !important;
  border-radius: 0px !important;
  padding-bottom: 15px !important;
}

.vision-login-button {
  background-color: red !important;
  padding: 10px 15px !important;
  border-radius: 0px !important;
  font-weight: bold !important;
}
.vision-login-button:hover {
  background: black !important;
}
.wheels-spec-search label,
.wheels-partno-search label {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  font-weight: 400;
}
form.wheels-partno-search {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wheels-buttons button,
.wheels-partno-search button {
  background: #aaa !important;
  color: black;
  border-radius: 0px;
  padding: 10px;
  width: 100px;
}
form.wheels-partno-search input {
  min-width: 100%;
  max-width: 100%;
}
.wheels-spec-search select,
.wheels-partno-search input[type="text"] {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  font-weight: 300;
  border-radius: 0px;
  border-color: #8080807a;
  min-height: 40px;
  max-width: 50%;
}
form.wheels-partno-search h3 {
  font-weight: 300;
  font-size: 16px;
  margin: 0px;
}
input#search-part-number {
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 10px;
}
.wheels-buttons {
  margin-top: 15px;
}
.wheels-search-container button {
  padding: 6px 5px;
  font-size: 14px;
  color: white;
  background: #80808085 !important;
  border-color: #80808085 !important;
  border-radius: 0px;
}
.wheels-search-container button:hover {
  background: #808080 !important;
  border-color: #808080 !important;
  color: white;
}
.wheels-buttons button {
  margin-right: 10px;
  padding: 5px 15px;
}
#wheels-results-table td:nth-child(2),
#wheels-results-table th:nth-child(2),
#clearance-table td:nth-child(2),
#clearance-table th:nth-child(2) {
  min-width: 100px; /* adjust as needed */
}

/*  */

.wheels-results-container {
  font-family: Arial, sans-serif;
  margin: 10px;
  background: #fff;
}

.results-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  padding: 10px 0;
}

.user-info {
  font-size: 12px;
  color: #666;
}

.user-info a {
  color: #ff6b6b;
  text-decoration: none;
}

.breadcrumbs {
  margin-bottom: 15px;
  font-size: 11px;
  color: #666;
  padding: 5px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs a {
  color: #ff6b6b;
  text-decoration: none;
}

.breadcrumbs .current {
  color: #333;
  font-weight: bold;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.entries-control select {
  margin-right: 5px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  font-size: 12px;
}

.search-control input {
  margin-left: 5px;
  padding: 3px 6px;
  border: 1px solid #ccc;
  font-size: 12px;
}

/* Table Styling */
#wheels-results-table,
#clearance-table {
  border-collapse: collapse;
  font-size: 11px;
  width: 100% !important;
}

#wheels-results-table thead th,
#clearance-table thead th {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 6px 4px;
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  white-space: nowrap;
}

#wheels-results-table tbody td,
#clearance-table tbody td {
  border: 1px solid #ddd;
  padding: 4px;
  text-align: center;
  font-size: 10px;
  white-space: nowrap;
}

#wheels-results-table tbody tr:nth-child(even),
#clearance-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#wheels-results-table tbody tr:hover,
#clearance-table tbody tr:hover {
  background-color: #f0f0f0;
}

/* Stock quantity styling */
.stock-qty {
  font-weight: bold;
}

.stock-zero {
  color: #999 !important;
  font-weight: normal;
}

.stock-positive {
  color: #000;
}

/* Image styling */
.wheel-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* Table info and pagination */
.table-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* DataTables custom styling */
/* .dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  display: none !important;
} */

.dataTables_wrapper .dataTables_scroll {
  border: 1px solid #ddd;
}

/* Custom pagination */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-controls button {
  padding: 4px 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}

.pagination-controls button:hover:not(:disabled) {
  background: #f0f0f0;
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.pagination-controls button.active {
  background: #007cba;
  color: white;
  border-color: #007cba;
}

.pagination-controls span {
  margin: 0 5px;
  font-size: 11px;
  color: #666;
}

.pagination-controls .page-num {
  min-width: 25px;
}

.wheels-results-container {
  font-family: Arial, sans-serif;
  margin: 20px;
}

.results-header {
  display: flex;
  justify-content: left;
  margin-bottom: 50px;
}

.breadcrumbs {
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #555;
}

#wheels-results-table,
#clearance-table {
  border-collapse: collapse;
}

#wheels-results-table th,
#clearance-table th {
  background-color: #f2f2f2;
  text-align: left;
  padding: 8px;
  font-weight: bold;
}

#wheels-results-table td,
#clearance-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.show-entries select {
  margin: 0 5px;
}

.dealer-links-wrapper {
  font-family: "Helvetica Neue", sans-serif;
  color: #000;
}
.dealer-welcome {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 300;
}
.dealer-welcome .logout-link {
  color: #e60023;
  text-decoration: none;
}
.dealer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dealer-links li {
  margin: 5px 0;
}
.dealer-links a {
  color: #e60023;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 300;
}
.dealer-links a:hover {
  text-decoration: underline;
}
div#dealers-logout {
  font-size: 16px;
  font-weight: 300;
}
.wheels-spec-search h3 {
  font-weight: 300;
  margin-top: 40px;
  font-size: 16px;
}
.image-icon-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.image-preview-tooltip {
  display: none;
  position: absolute;
  top: 110%; /* show below the icon */
  left: -250%;
  transform: translateX(-50%);
  z-index: 10;
  border: 1px solid #ccc;
  background: #fff;
  padding: 5px;
  max-width: 190px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.image-icon-container:hover .image-preview-tooltip {
  display: block;
  width: 190px;
}
@media only screen and (max-width: 600px) {
  .wheels-search-container {
    flex-direction: column-reverse;
    gap: 0px;
    /* max-width: 100%; */
  }
  .wheels-search-container,
  div#dealers-logout {
    padding: 0px 20px;
  }
  .wheels-spec-search select,
  .wheels-partno-search input[type="text"] {
    max-width: 100%;
  }
}
/* Mobile responsive styles */
@media screen and (max-width: 767px) {
  .wheels-results-container {
    padding: 0 10px;
  }

  #wheels-results-table_wrapper .dataTables_length,
  #wheels-results-table_wrapper .dataTables_filter {
    float: none;
    text-align: left;
    margin-bottom: 10px;
  }

  #wheels-results-table_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0;
  }

  #wheels-results-table_wrapper .dataTables_info,
  #wheels-results-table_wrapper .dataTables_paginate,
  #clearance-table_wrapper .dataTables_info,
  #clearance-table_wrapper .dataTables_paginate {
    float: none;
    text-align: center;
    margin-top: 10px;
  }
}

#dealer-search-container {
  max-width: 800px;
  margin: 0px auto;
  /* padding: 20px; */
  font-family: Arial, sans-serif;
}

.dealer-search-form {
  /* background: #f9f9f9; */
  /* padding: 30px; */
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.dealer-search-form h3 {
  color: #333;
  margin-bottom: 10px;
}

.search-input-group {
  display: flex;
  max-width: 400px;
  margin: 0px auto;
  gap: 10px;
  flex-direction: column;
}

#zip-search {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 0px;
    font-size: 16px;
    max-width: 70%;
    margin: auto;
}

#zip-search:focus {
  outline: none;
  border-color: #dc3545;
}

.search-btn {
    background: #dc3545 !important;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    max-width: 40%;
    margin: auto;
}

.search-btn:hover {
  background: black;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.dealers-list h4 {
  color: #333;
  border-bottom: 2px solid #dc3545;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.dealer-card .distance {
    font-weight: 600;
    color: black;
}
.dealer-card address {
    margin: 0px;
    text-decoration: none;
    font-style: normal;
    font-weight: 300;
}
.dealer-card {
    background: white;
    border-top: 1px solid #ddd;
    font-family: 'Rubik', sans-serif;
    border-radius: 0px;
    padding: 20px;
    margin-bottom: 20px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    max-width: 400px;
    text-align: center;
    margin: auto;
}
.dealer-card h3 {
    margin: 0;
    font-weight: 300;
    font-size: 20px;
}
.dealer-card a {
    color: #f10628;
}
.dealer-card h5 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 18px;
}

.dealer-card p {
  margin: 5px 0;
  color: #666;
}

.dealer-card .address {
  font-weight: bold;
  color: #555;
}

.dealer-card .location {
  color: #777;
}

.dealer-card .dealer-card a {
    color: #dc3545;
    text-decoration: none !important;
}
.dealer-card .map-link {
    color: #dc3545;
    text-decoration: none !important;
    font-weight: 700;
}
.dealer-card a:hover {
  color: gray;
}

.dealer-types {
  margin-top: 15px;
}

.dealer-type {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 5px;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .search-input-group {
    flex-direction: column;
  }

  .dealer-card {
    padding: 15px;
  }
}
