#dsmv-wheel-brand-grid {
  position: relative;
}

.dsmv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 6px;
}

.dsmv-overlay.visible {
  display: flex;
}

.dsmv-overlay-message {
  background: rgba(20, 20, 20, 0.85);
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px #000;
  max-width: 80%;
}
.dsmv-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.dsmv-tab-header {
    display: flex;
    width: 100%;
    background: transparent;
    border-radius: 14px 14px 0 0;
    padding: 0px;
    gap: 8px;
    overflow: hidden;
    flex-wrap: wrap; /* Permitir que las pestañas se apilen en pantallas pequeñas */
}

.dsmv-tab-btn {
    flex: 1;
    padding: 18px 0;
    margin-top: 4px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px; /* Ajustado para dispositivos móviles */
    font-weight: 700;
    color: #033260;
    text-align: center;
    border-radius: 12px 12px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.dsmv-tab-btn:hover {
    background: #e6edf4;
}

.dsmv-tab-btn.active {
    background: #033260;
    color: white;
    z-index: 1;
}

.dsmv-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.dsmv-tab-content {
    padding: 25px;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 0;
    position: relative;
}

.hidden {
    display: none;
}

.dsmv-tab-content h3 {
    font-size: 18px; /* Reducido para móviles */
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.dsmv-tab-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dsmv-tab-content li {
    margin: 0;
}

.dsmv-tab-content .dsmv-trigger {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px; /* Ajustado para móviles */
    font-weight: 600;
    background: #f5f8fa;
    color: #1a1a1a;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.dsmv-tab-content .dsmv-trigger:hover {
    background: #e8eff5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.dsmv-tab-content .dsmv-trigger::after {
    content: "›";
    font-size: 18px; /* Ajustado para móviles */
    color: #007aff;
    margin-left: 12px;
}

.dsmv-subfilter-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px; /* Ajustado para móviles */
    font-weight: 600;
    background: #f5f8fa;
    color: #1a1a1a;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.dsmv-subfilter-btn:hover {
    background: #e8eff5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Icono a la izquierda */
.dsmv-subfilter-btn::before {
    font-size: 18px; /* Ajustado para móviles */
    margin-right: 14px;
    color: #007aff;
}

/* Flecha a la derecha */
.dsmv-subfilter-btn::after {
    content: "›";
    font-size: 22px; /* Ajustado para móviles */
    color: #007aff;
    margin-left: 14px;
}

/* Modal */

.dsmv-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsmv-modal.hidden {
  display: none;
}

.dsmv-modal-content {
  background: #fff;
  padding: 2em;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  position: relative;

}

.dsmv-close {
    position: absolute;
    top: 10px;
    right: 30px;
    background: transparent;
    font-size: 34px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.dsmv-step {
  margin-top: 1em;
}

/* Responsivo para móviles */
@media screen and (max-width: 768px) {
    .dsmv-tab-btn {
        font-size: 16px; /* Ajuste de tamaño de fuente */
        padding: 14px 0;
    }

    .dsmv-tab-content h3 {
        font-size: 16px; /* Reducción del tamaño de los encabezados */
    }

    .dsmv-tab-content .dsmv-trigger {
        font-size: 14px;
        padding: 16px 18px;
    }

    .dsmv-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Ajuste del layout */
    }

    .dsmv-brand-btn {
        max-width: 100px; /* Botones de marca más pequeños */
    }

    .dsmv-model-btn {
        font-size: 14px; /* Ajuste del tamaño para móviles */
    }

    .dsmv-step[data-step="year"],
    .dsmv-step[data-step="make"],
    .dsmv-step[data-step="model"],
    .dsmv-step[data-step="style"],
    .dsmv-step[data-step="options"] {
        max-height: none; /* Elimina la altura máxima para mejor visibilidad */
        overflow-y: auto;
    }

    .dsmv-step[data-step="year"] .dsmv-year-btn,
    .dsmv-step[data-step="make"] .dsmv-make-btn,
    .dsmv-step[data-step="model"] .dsmv-model-btn,
    .dsmv-step[data-step="style"] .dsmv-style-btn {
        width: 45%; /* Ajuste para que haya 2 botones por fila */
    }
    .dsmv-step[data-step="options"] .dsmv-option-btn {
        width: 100%; 
    }

    .dsmv-zipcode-step {
        max-width: 100%; /* Asegura que el campo de código postal sea responsivo */
    }

    #dsmv-zipcode-input {
        font-size: 18px;
    }

    #dsmv-submit-fitment {
        font-size: 16px;
        padding: 14px;
    }
}

.dsmv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 10px;
}

.dsmv-width-btn, .dsmv-ratio-btn, .dsmv-rim-btn {
    background-color: #f5f8fa;
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.dsmv-width-btn:hover, .dsmv-ratio-btn:hover, .dsmv-rim-btn:hover {
    background-color: #e6edf4;
    border-color: #aaa;
}


.dsmv-back-btn{
  background: #f5f5f5;
  border: 1px solid #ccc;
  margin-top: 30px;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 160px;
  text-align: center;
}

.dsmv-back-btn:hover{
  background-color: #033260;
  color: #fff;
}


/*Years styles*/

.dsmv-step[data-step="year"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  max-height: 300px; /* Eliminar max-height para mayor flexibilidad */
  overflow-y: auto;
}

.dsmv-year-btn {
  background: white;
  border: 1px solid #dce3e8;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 80px;
  width: 80px;
  text-align: center;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dsmv-year-btn:hover {
  background: #033260;
  color: #fff;
  border-color: #033260;
  box-shadow: 0 2px 6px rgba(3, 50, 96, 0.2);
}

/* Responsivo para móviles */
@media screen and (max-width: 768px) {
  .dsmv-step[data-step="year"] {
    max-height: 300px; /* Restablecer max-height para permitir scroll */
    overflow-y: auto; /* Habilitar el scroll si el contenido excede la altura */
    gap: 4px; /* Reducir el espacio entre los botones */
  }

  .dsmv-year-btn {
    font-size: 14px; /* Reducir el tamaño de la fuente */
    padding: 10px 0; /* Reducir el padding */
    width: 45%; /* Ajustar el tamaño de los botones para que se alineen en 2 columnas */
    min-width: 70px; /* Asegurarse de que los botones no sean demasiado grandes */
  }
}

#dsmv-rim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* Establece una mínima anchura para los botones */
    gap: 10px; /* Espacio entre los botones */
    max-height: 80vh; /* Establece la altura máxima del grid al 80% de la altura del viewport */
    overflow-y: auto; /* Permite desplazamiento vertical si el contenido excede la altura máxima */
    padding: 10px;
    margin: 0 auto; /* Centra el grid */
}

/* Modal: Tires by Size - Width step */
#dsmv-tire-size-popup .dsmv-step[data-step="width"] {
    max-height: 300px;
    overflow-y: auto;
}

/* Estilo para el botón de Check Availability en ZIP Code */
#dsmv-tire-size-popup .dsmv-zipcode-step #dsmv-submit-tire-size-fitment {
    background-color: #033260;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

/* Estilo de hover para el botón de Check Availability */
#dsmv-tire-size-popup .dsmv-zipcode-step #dsmv-submit-tire-size-fitment:hover {
    background-color: #025084;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*Progress bar modal*/

.dsmv-progress-tabs {
  display: flex;
  justify-content: space-between;
  background: #e1e8f0;
  padding: 0;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border-bottom: 2px solid #e1e8f0;
}

.dsmv-progress-tabs .tab {
  flex: 1;
  text-align: center;
  font-weight: 600;
  padding: 14px 10px;
  font-size: 17px;
  color: #4a5568;
  background: transparent;
  border-right: 1px solid #d0d7e2;
  cursor: default;
  transition: background 0.3s ease, color 0.3s ease;
}

.dsmv-progress-tabs .tab:last-child {
  border-right: none;
}

.dsmv-progress-tabs .tab.active {
  background: #033260;
  color: white;
  font-weight: 700;
}

/* Responsivo para móviles */
@media screen and (max-width: 768px) {
  .dsmv-progress-tabs {
    flex-direction: row; /* Apilar las pestañas en pantallas pequeñas */
    border-bottom: none; /* Eliminar la línea en la parte inferior para móviles */
    margin-bottom: 10px; /* Reducir el margen inferior */
    justify-content: center;
    align-items: center;
  }

  .dsmv-progress-tabs .tab {
    font-size: 14px; /* Reducir el tamaño de la fuente */
    padding: 12px 8px; /* Reducir el padding para ajustarse a la pantalla pequeña */
    border-right: none; /* Eliminar el borde derecho */
    margin-bottom: 5px; /* Agregar espacio entre las pestañas apiladas */
  }

  .dsmv-progress-tabs .tab.active {
    font-weight: 700; /* Mantener el peso de la fuente en las pestañas activas */
  }
}

/*Make styles*/

.dsmv-step[data-step="make"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.dsmv-make-btn {
  background: white;
  border: 1px solid #dce3e8;
  padding: 14px 20px;
  margin: 5px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 30%; /* 3 per row with gap */
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dsmv-make-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


/*Models*/
.dsmv-step[data-step="model"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dsmv-step[data-step="model"]::-webkit-scrollbar {
  display: none;
}

.dsmv-model-btn {
  background: white;
  border: 1px solid #dce3e8;
  padding: 14px 20px;
  margin: 5px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 30%; /* 3 per row with space-between layout */
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dsmv-model-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


.dsmv-model-btn:hover {
  background: #033260;
  color: #fff;
  border-color: #033260;
}

/*Styles */

.dsmv-step[data-step="style"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}


.dsmv-style-btn {
  background: white;
  border: 1px solid #dce3e8;
  padding: 14px 20px;
  margin: 5px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 30%; /* 3 por fila */
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dsmv-style-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/*Options*/

.dsmv-step[data-step="options"] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.dsmv-option-btn {
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 160px;
  text-align: center;
}

.dsmv-option-btn:hover {
  background: #033260;
  color: #fff;
  border-color: #033260;
}


/*Options card styles*/

.dsmv-step[data-step="options"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.dsmv-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 2px solid #ccc;
  padding: 12px 16px;
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.dsmv-option-btn:hover {
  border-color: #033260;
  background-color: #f5faff;
}

.dsmv-option-btn div {
  font-weight: bold;
  color: #333;
}

.dsmv-option-btn small {
  color: #555;
  font-size: 12px;
  margin-top: 4px;
}


/*Zip code*/

.dsmv-zipcode-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 360px;
  margin: 30px auto 0;
}

.dsmv-zipcode-step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
}

.dsmv-zipcode-step p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

#dsmv-zipcode-input {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #033260;
  border: 2px solid #033260;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

#dsmv-zipcode-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#dsmv-submit-fitment {
  background-color: #033260;
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  width: 100%;
  transition: background 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#dsmv-submit-fitment:hover {
  background-color: #033260;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}


/* Get wheels by brands */

/* Contenedor del grid con scroll */
#dsmv-wheel-brand-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  padding: 20px;
  justify-items: center;
  align-items: center;

  /* Scroll */
  max-height: 400px;
  overflow-y: auto;
}

/* Botón individual de marca */
.dsmv-brand-btn {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.dsmv-brand-btn:hover {
  border-color: #aaa;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Imagen del logo */
.dsmv-brand-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Modal max width and overflow */
#dsmv-tire-brand-popup .dsmv-modal-content {
  height: 65vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Brand grid layout */
#dsmv-tire-brand-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  padding: 20px;
  justify-items: center;
  align-items: center;
}

/* Brand button */
.dsmv-brand-btn {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dsmv-brand-btn:hover {
  transform: scale(1.1);
}

.dsmv-brand-btn img {
  max-width: 100%;
  height: auto;
  display: block;
}
