:root {
  --primary-green: #00a67e;
  --dark-text: #1a1a1a;
  --light-gray: #f9f9f9;
  --border-color: #eee;
  --bg-white: #ffffff;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.carb-vehicle-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.carb-vehicle-logo-link {
  display: inline-block;
  transition: transform 0.2s;
}

.carb-vehicle-logo-link:hover {
  transform: scale(1.05);
}

.carb-vehicle-logo-img {
  height: 60px;
  width: 60px;
  display: block;
}

.carb-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.carb-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-text);
}

.carb-logo span {
  color: var(--primary-green);
}

.carb-currency-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-weight: bold;
}

.carb-account-title {
  font-size: 36px;
  margin: 50px 0 30px 0;
  color: var(--dark-text);
}

.carb-account-title span {
  color: var(--primary-green);
}

.carb-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

/* .carb-btn-compte-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #fff;
  color: #000;
  padding: 14px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
} */

.carb-btn-compte {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #eef8f6;
  color: #000;
  padding: 14px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.carb-vehicle-card {
  border: 1px solid var(--border-color);
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  background-color: #fff;
}

.carb-vehicle-img {
  flex: 0 0 40%;
  max-width: 150px;
}

.carb-vehicle-img img {
  width: 100%;
  height: auto;
  display: block;
}

.carb-vehicle-info {
  flex: 1;
}

.carb-vehicle-info h2 {
  font-size: 16px;
  margin: 0 0 4px 0;
}

.carb-vehicle-info p {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px 0;
}

.carb-modify-link {
  color: black;
  padding: 14px;
  border-radius: 50px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  background: #eef8f6;
  font-weight: 400;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.carb-vehicle-year__wrap {
  margin-bottom: 16px;
}

.carb-vehicle-year__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.carb-vehicle-year__select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 16px; /* 16px min pour éviter le zoom iOS */
  color: #1f2937;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.carb-vehicle-year__select:focus {
  outline: none;
  border-color: #01a384;
  box-shadow: 0 0 0 3px rgba(1, 163, 132, 0.1);
}

.carb-vehicle-search__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1f2937;
}

.carb-vehicle-search__wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  margin-bottom: 20px;
}

.carb-vehicle-search__icon {
  flex-shrink: 0;
}

.carb-vehicle-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 0;
}

.carb-vehicle-search__clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 0.2s;
}

.carb-vehicle-search__clear:hover {
  color: #1f2937;
}

.carb-vehicle-results {
  margin-bottom: 20px;
}

.carb-vehicle-results__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carb-vehicle-result-item {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carb-vehicle-result-item:hover {
  border-color: #01a384;
  background: #f0fdf4;
}

.carb-vehicle-result-item.is-selected {
  border-color: #01a384;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(1, 163, 132, 0.1);
}

.carb-vehicle-result-item strong {
  font-weight: 600;
  color: #1f2937;
}

.carb-vehicle-result-item span {
  font-size: 12px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

.carb-vehicle-results__empty,
.carb-vehicle-results__loading {
  text-align: center;
  padding: 32px 16px;
  color: #6b7280;
  font-size: 14px;
}

.carb-vehicle-selection__info {
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  margin-bottom: 16px;
}

.carb-vehicle-selection__text {
  margin: 0;
  color: #065f46;
  font-size: 14px;
}

.carb-vehicle-selection__text strong {
  color: #01a384;
}

.carb-vehicle-selection__btn {
  width: 100%;
  padding: 12px 16px;
  background: #01a384;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.carb-vehicle-selection__btn:hover {
  background: #018a7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 163, 132, 0.3);
}

.carb-vehicle-selection__btn:active {
  transform: translateY(0);
}

#carb-menu-dropdown.is-open {
  display: block !important;
}

/* --- DRAWER RECHERCHE VÉHICULE --- */
.carb-vehicle-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 9999;
  padding: 0;
  margin: 0;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carb-vehicle-drawer__header,
.carb-vehicle-drawer__content,
.carb-vehicle-drawer__apply {
  background: white;
  animation: slideUp 0.3s ease-out;
}

.carb-vehicle-drawer__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.carb-vehicle-drawer__back {
  background: #01a384;
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.carb-vehicle-drawer__back:hover {
  background: #018a7a;
}

.carb-vehicle-drawer__title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.carb-vehicle-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 200px;
  max-height: calc(90vh - 140px);
}

.carb-vehicle-drawer__apply {
  padding: 12px 16px;
  background: #01a384;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.carb-vehicle-drawer__apply:hover {
  background: #018a7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 163, 132, 0.3);
}

.carb-vehicle-drawer__apply:active {
  transform: translateY(0);
}

/* --- Ajustements pour les écrans plus larges (Desktop) --- */
@media (min-width: 768px) {
  .carb-vehicle-card {
    padding: 30px;
    gap: 40px;
  }

  .carb-vehicle-img {
    max-width: 300px;
  }

  .carb-vehicle-info h2 {
    font-size: 24px;
  }

  .carb-vehicle-info p {
    font-size: 16px;
  }

  .carb-modify-link {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .carb-vehicle-page {
    padding: 8px;
  }

  .carb-vehicle-search__title {
    font-size: 20px;
    margin-bottom: 16px;
  }
}
