.inventory {
  display: flex;
  justify-content: center;
  width: 100%;
  font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
  color: var(--black-2, #141922);
}

.inventory__container {
  width: 100%;
  max-width: 1140px;
  padding: 24px 24px 48px;
}

@media (max-width: 576px) {
  .inventory__container {
    padding: 16px 16px 32px;
  }
}

.listing-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sort-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--white, #ffffff);
  background-image: var(--inventory-caret-icon, none);
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.vehicle-type-selector {
  position: relative;
}

.auto-option {
  color: var(--black-2, #141922);
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  padding: 0;
}

.auto-option img {
  width: 16px;
  height: 16px;
}

.auto-option:focus {
  outline: none;
  color: var(--primary-blue, #00b3de);
}

.vehicle-type-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 264px;
  max-height: 360px;
  background: var(--white, #ffffff);
  border: 1px solid #000000;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow-y: auto;
  z-index: 20;
  padding: 8px 0;
}

.vehicle-type-option {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 24px;
  color: var(--black-2, #141922);
  cursor: pointer;
}

.vehicle-type-option:hover {
  background: rgba(0, 179, 222, 0.08);
}

.vehicle-type-option[disabled] {
  cursor: not-allowed;
  color: var(--gray-2, #9b9b9b);
}

.vehicle-type-option .disabled-text {
  color: var(--gray-2, #9b9b9b);
}

.coming-soon-badge {
  height: 20px;
  width: auto;
}

.search-header__icons {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.icon-button {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button img {
  width: 24px;
  height: 24px;
}

.notification {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 16px;
  padding: 2px 6px;
  background: var(--red-1, #f44336);
  border-radius: 4px;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  color: var(--white, #ffffff);
  text-align: center;
}

.search-form {
  width: 100%;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 48px;
  border: 1px solid var(--gray-dark, #c3c3c3);
  background: var(--white, #ffffff);
  height: 40px;
  transition: border-color 0.2s ease;
}

.search-container:focus-within {
  border-color: var(--primary-blue, #00b3de);
}

.vehicle-search {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: inherit;
  font-size: 16px;
  line-height: 20px;
  color: var(--blue, #006fc2);
  padding: 0 120px 0 50px !important;
  background-color: transparent;
  background-image: var(--inventory-search-icon, none);
  background-repeat: no-repeat;
  background-position: 16px center;
  text-indent: 0 !important;
}

.vehicle-search::placeholder {
  color: var(--gray-dark, #c3c3c3);
  text-indent: 0 !important;
}

.vehicle-search:focus {
  outline: none;
}

.clear-input-button {
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.clear-input-button img {
  width: 10px;
  height: 10px;
}

.ai-powered-text {
  color: #666666;
  font-size: 12px;
  white-space: nowrap;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-powered-text .magic-icon {
  width: 10px;
  height: 15px;
}

.ai-submit-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.ai-submit-button img {
  width: 30px;
  height: 30px;
}

.ai-submit-button:hover {
  opacity: 0.9;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: var(--gray-dark, #3d3d3d);
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-dark, #c3c3c3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-option:hover,
.filter-option:focus {
  color: var(--primary-blue, #00b3de);
  border-color: var(--primary-blue, #00b3de);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: none;
}

.filter-option.selected {
  color: var(--primary-blue, #00b3de);
  border-color: var(--primary-blue, #00b3de);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vehicle-count {
  min-width: 300px;
  color: var(--gray-dark, #3d3d3d);
  font-size: 14px;
  font-weight: 500;
}

.save-search {
  margin-left: auto;
}

.save-search button {
  height: 40px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--white, #ffffff);
  background: var(--primary-blue, #00b3de);
  border: 1px solid var(--primary-blue, #00b3de);
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.save-search button:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .filter-options {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .vehicle-count {
    min-width: 100px;
  }

  .save-search {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.active-filters {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid #cecece;
  background: var(--white, #ffffff);
  font-size: 14px;
  color: var(--black-2, #141922);
}

.filter-tab .img-close {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-tab .img-close img {
  width: 13px;
  height: 13px;
}

.clear-filters {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--primary-blue, #00b3de);
  text-decoration: underline;
  font-size: 14px;
}

.inventory-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .inventory-results-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

.results-count {
  font-size: 16px;
  font-weight: 600;
  color: var(--black-2, #141922);
}

.sort-dropdown-container {
  position: relative;
}

.sort-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white, #ffffff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.sort-button:hover {
  border-color: var(--primary-blue, #00b3de);
}

.sort-button img {
  width: 16px;
  height: 16px;
}

.sort-label {
  color: #666;
  font-weight: 400;
}

.sort-value {
  color: var(--black-2, #141922);
  font-weight: 500;
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white, #ffffff);
  border: 1px solid #000000;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  z-index: 20;
  padding: 8px 0;
}

.sort-option {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: var(--black-2, #141922);
  transition: background-color 0.2s ease;
}

.sort-option:hover {
  background-color: #f5f5f5;
}

.sort-option.active {
  background-color: #e5faff;
  color: var(--primary-blue, #00b3de);
  font-weight: 600;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .inventory-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .inventory-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .inventory-card {
    width: 100%;
    max-width: 100%;
  }
}

.inventory-card {
  position: relative;
  background: var(--white, #ffffff);
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.inventory-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.inventory-card article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.inventory-card .card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.inventory-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 56px;
  flex: 1;
}

.inventory-card .make-model {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--black-2, #141922);
}

.inventory-card .seller-miles {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--black-2, #141922);
}

.inventory-card .vehicle-location {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #666;
}

.inventory-card .price {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--black-2, #141922);
}

.inventory-card__profile {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.profile-photo {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-photo__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo__initials {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
}

.profile-photo__badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  z-index: 10;
}


.pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gray-dark, #3d3d3d);
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 100px;
  border: 1px solid var(--gray-dark, #c3c3c3);
  background: var(--white, #ffffff);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pagination button:hover,
.pagination button:focus {
  border-color: var(--primary-blue, #00b3de);
  color: var(--primary-blue, #00b3de);
  outline: none;
}

.pagination .active {
  background: var(--primary-blue, #00b3de);
  color: var(--white, #ffffff);
  border-color: var(--primary-blue, #00b3de);
}

.pagination p {
  margin: 0 4px;
}

.inventory-modal__overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 25, 34, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  overflow-y: hidden;
}

@media (max-width: 768px) {
  .inventory-modal__overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    /* Support for mobile keyboard */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for better keyboard handling */
  }
}

.inventory-modal {
  position: relative;
  width: 390px;
  max-width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  background: var(--white, #ffffff);
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.12);
  padding: 24px;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 768px) {
  .inventory-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin-bottom: env(safe-area-inset-bottom, 0);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  }
  
  .inventory-modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
  }
}

.inventory-modal__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

@media (max-width: 768px) {
  .inventory-modal__header {
    margin-top: 16px;
  }
}

.inventory-modal__logo {
  height: 24px;
  width: auto;
  margin-right: auto;
}

.inventory-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--black-2, #141922);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.inventory-modal__close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.inventory-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (max-width: 768px) {
  .inventory-modal__body {
    max-height: calc(90vh - 120px);
    flex: 1;
  }
}

.inventory-modal__body::-webkit-scrollbar {
  display: none;
}

@media (max-height: 850px) {
  .inventory-modal__body {
    max-height: 400px;
  }
}

@media (max-height: 650px) {
  .inventory-modal__body {
    max-height: 300px;
  }
}

.inventory-modal--location .inventory-modal__body,
.inventory-modal--make-model .inventory-modal__body {
  gap: 16px;
  max-height: none;
}

.inventory-modal--make-model {
  width: 358px;
  max-width: 90vw;
  padding: 24px;
}

.inventory-modal--make-model .inventory-modal__body {
  max-height: 350px;
}

.dropdown-title {
  font-size: 18px;
  line-height: 24px;
  color: var(--black-2, #141922);
  margin-bottom: 16px;
  font-weight: 500;
}

.make-container,
.model-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
}

.make-model-search-input {
  width: 100%;
  height: 40px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--gray-dark, #c3c3c3);
  border-radius: 4px;
  font-size: 16px;
  line-height: 20px;
  color: var(--gray-dark, #3d3d3d);
  box-sizing: border-box;
}

.make-model-search-input::placeholder {
  color: var(--gray-2, #9b9b9b);
}

.make-model-search-input:focus {
  outline: none;
  border-color: var(--primary-blue, #00b3de);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn img {
  width: 10px;
  height: 10px;
}

.make-container .makes-list {
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 16px;
}

.make-container .makes-list::-webkit-scrollbar {
  display: none;
}

.make-item {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 24px;
  color: var(--black-2, #141922);
  cursor: pointer;
  text-align: left;
}

.make-item:hover {
  background: rgba(0, 179, 222, 0.08);
}

.make-item .chevron-right {
  width: 6px;
  height: 12px;
  transform: rotate(-90deg);
}

.model-container .back-to-make {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  cursor: pointer;
  color: var(--black-2, #141922);
}

.model-container .back-to-make .chevron-left {
  width: 6px;
  height: 12px;
  transform: rotate(90deg);
}

.model-container .back-to-make .back-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: var(--black-2, #141922);
}

.model-container .models-list {
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 16px;
}

.model-container .models-list::-webkit-scrollbar {
  display: none;
}

.model-item {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}

.model-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid var(--gray-dark, #c3c3c3);
  border-radius: 3px;
  position: relative;
  background: var(--white, #ffffff);
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.model-item input[type="checkbox"]:checked {
  background: var(--primary-blue, #00b3de);
  border-color: var(--primary-blue, #00b3de);
}

.model-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.model-item .model-label {
  margin-left: 8px;
  font-size: 18px;
  line-height: 24px;
  color: var(--black-2, #141922);
  cursor: pointer;
}

.filter-field-title {
  color: var(--black-2, #141922);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

.inventory-modal__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.inventory-modal__section--reduced-spacing {
  margin-top: 8px;
}

.inventory-modal--more-filters .inventory-modal__section {
  margin: 0;
  padding: 16px 0;
}

.inventory-modal--more-filters .inventory-modal__section > label {
  gap: 8px;
}

.inventory-modal--more-filters .inventory-modal__section select {
  width: 100%;
  max-width: 100%;
}

.inventory-modal--more-filters hr {
  margin: 0;
  border: none;
  border-top: 1px solid var(--gray-2, #e0e0e0);
}

.inventory-modal__range {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .inventory-modal__range {
    flex-direction: column;
    align-items: stretch;
  }
}

.inventory-modal__range label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--darkest, #141922);
}

.inventory-modal label {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: var(--black-2, #141922);
}

.inventory-modal select,
.inventory-modal input {
  font-size: 16px;
  line-height: 20px;
  color: var(--gray-dark, #3d3d3d);
}

.inventory-modal input:not([type="checkbox"]),
.inventory-modal__input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--gray-dark, #c3c3c3);
  border-radius: 4px;
  padding: 0 12px;
  background: var(--white, #ffffff);
  transition: border-color 0.2s ease;
  font-size: 16px;
  box-sizing: border-box;
  line-height: 20px;
}

.inventory-modal input::placeholder {
  font-size: 16px;
  line-height: 20px;
  color: var(--gray-dark, #c3c3c3);
}

.inventory-modal select {
  width: 100%;
  max-width: 100%;
  height: 40px;
  border: 1px solid var(--gray-dark, #c3c3c3);
  border-radius: 4px;
  padding: 0 40px 0 12px;
  background: var(--white, #ffffff);
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: var(--inventory-caret-icon, none);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
}

.inventory-modal select:focus,
.inventory-modal input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--primary-blue, #00b3de);
}

.inventory-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-2, #e0e0e0);
}

@media (max-width: 768px) {
  .inventory-modal__footer {
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

.inventory-modal__footer button {
  min-width: 96px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--gray-dark, #c3c3c3);
  background: var(--white, #ffffff);
  color: var(--gray-dark, #3d3d3d);
  font-weight: 500;
  cursor: pointer;
}

.inventory-modal__footer .primary {
  background: var(--primary-blue, #00b3de);
  border-color: var(--primary-blue, #00b3de);
  color: var(--white, #ffffff);
}

.inventory-modal__footer .secondary:hover,
.inventory-modal__footer .primary:hover {
  opacity: 0.9;
}

/* Body type grid styles */
.body-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.body-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: transparent;
}

.body-type-item:hover {
  background-color: var(--gray-1, #f5f5f5);
}

.body-type-item.selected {
  background-color: var(--gray-2, #e2e8f0);
}

.body-type-icon {
  width: 70px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.body-type-icon img {
  max-width: 100%;
  height: auto;
}

.body-type-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--black-2, #141922);
}

/* Filter accordion section styles */
.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  user-select: none;
}

.filter-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--black-2, #333);
}

.filter-count {
  color: var(--primary-blue, #00b3de);
  margin-left: 4px;
}

.filter-expand-icon {
  width: 15px;
  height: 10px;
  transition: transform 0.2s ease;
}

.filter-expand-icon.expanded {
  transform: rotate(180deg);
}

.filter-section-content {
  padding-bottom: 8px;
}

.filter-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--black-2, #212529);
}

.filter-option-item:hover {
  opacity: 0.8;
}
