.dsmv-tabs {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto 40px;
    padding-bottom: 0;
    overflow: hidden;
}

.dsmv-tabs-header {
    display: flex;
    background: #e6edf4;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.dsmv-tab-btn {
    flex: 1;
    padding: 18px 0;
    border: none;
    background: none;
    color: #033260;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.dsmv-tab-btn.active {
    background: #033260;
    color: #fff;
    border-bottom: 3px solid #033260;
    z-index: 2;
}

.dsmv-tabs-body {
    padding: 36px 28px 28px;
}
.dsmv-tab-panel {
    display: block;
}
.dsmv-tab-panel.hidden {
    display: none;
}

.dsmv-trigger {
    display: block;
    width: 100%;
    margin: 16px 0;
    padding: 16px 0;
    background: #f5f8fa;
    color: #033260;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.dsmv-trigger:hover {
    background: #e6edf4;
}


/* modal styles */

/* --- Modal Base --- */
.dsmv-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(0,0,0,0.38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dsmv-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  padding: 32px 26px 24px 26px;
  width: 100%;
  height: 600px;
  overflow-y: scroll;
  max-width: 60%;
  min-width: 290px;
  position: relative;
  animation: modalPop 0.32s;
}
@keyframes modalPop {
  from { transform: translateY(24px) scale(0.97); opacity: 0.7; }
  to   { transform: none; opacity: 1; }
}

.dsmv-modal-title {
  margin-top: 0;
  color: #033260;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Close Button */
.dsmv-close {
  position: absolute;
  right: 20px; top: 16px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #033260;
  opacity: 0.7;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}
.dsmv-close:hover { opacity: 1; }

/* --- Progress Steps --- */
.dsmv-progress-tabs {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  background: #e7f0fa;
  border-radius: 12px;
  margin: 18px 0 22px 0;
  overflow: hidden;
}
.dsmv-progress-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 1.07rem;
  font-weight: 700;
  color: #4675a6;
  background: transparent;
  cursor: pointer;
  border: none;
  border-right: 1px solid #dbe6f5;
  transition: background 0.21s, color 0.21s;
  user-select: none;
}
.dsmv-progress-tabs .tab:last-child { border-right: none; }
.dsmv-progress-tabs .tab.active {
  background: #033260;
  color: #fff;
}

/* --- Step Content --- */
.dsmv-steps {
  min-height: 140px;
  margin-bottom: 22px;
}
.dsmv-step {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.dsmv-step:not(.hidden) {
  display: flex;
}

.dsmv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}

/* --- Botones de selección --- */
.dsmv-year-btn, .dsmv-make-btn, .dsmv-model-btn, .dsmv-style-btn, .dsmv-option-btn {
  background: #f5f8fa;
  border: 1.5px solid #e3e8ef;
  color: #033260;
  border-radius: 9px;
  padding: 10px 17px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin-bottom: 4px;
  outline: none;
}
.dsmv-year-btn:hover, .dsmv-make-btn:hover, .dsmv-model-btn:hover, .dsmv-style-btn:hover, .dsmv-option-btn:hover {
  background: #033260;
  color: #fff;
  border-color: #033260;
}

/* --- ZIP Step --- */
.dsmv-zipcode-step {
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}
.dsmv-zipcode-step label {
  font-size: 1rem;
  color: #4a627a;
  font-weight: 700;
  margin-bottom: 7px;
}
.dsmv-zipcode-step input[type="text"] {
  padding: 11px 18px;
  border: 2px solid #033260;
  border-radius: 8px;
  font-size: 1.18rem;
  margin-bottom: 13px;
  outline: none;
  width: 100%;
  max-width: 210px;
  text-align: center;
  font-weight: 600;
}
.dsmv-zipcode-step input:focus {
  border-color: #4675a6;
}
.dsmv-zipcode-step button {
  background: #033260;
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 12px 0;
  border-radius: 9px;
  width: 100%;
  max-width: 180px;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(3, 50, 96, 0.10);
  cursor: pointer;
  transition: background 0.21s;
}
.dsmv-zipcode-step button:hover {
  background: #4675a6;
}

/* --- Back button --- */
.dsmv-back-btn {
  position: relative;
  margin-bottom: 20px;
  background: #e9eef5;
  color: #033260;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 10px 32px;
  font-size: 1.01rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(3,50,96,0.07);
  transition: background 0.15s, color 0.15s;
}

.dsmv-back-btn:hover {
  background: #033260;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .dsmv-modal-content { max-width: 98vw; padding: 16px 6px; }
  .dsmv-modal-title { font-size: 1.1rem; }
  .dsmv-progress-tabs .tab { font-size: 0.97rem; padding: 9px 0; }
  .dsmv-year-btn, .dsmv-make-btn, .dsmv-model-btn, .dsmv-style-btn, .dsmv-option-btn {
    padding: 7px 8px;
    font-size: 0.95rem;
  }
}


/* --- Modal Loading Styles --- */

.dsmv-loading-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dsmv-loading-overlay.hidden {
  display: none;
}
.dsmv-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #033260;
}
.dsmv-spinner {
  border: 3px solid #e0e6ed;
  border-top: 3px solid #033260;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin-bottom: 15px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}


#dsmv-tire-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 18px;
    padding: 18px 6px 8px 6px;
    max-height: 420px;
    overflow-y: auto;
    justify-items: stretch;  
    align-items: center;
}

.dsmv-brand-btn {
    width: 100%;     
    height: 100px;   
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid #f4f6f8;
    box-shadow: 0 1px 6px rgba(3,50,96,0.04);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.16s, box-shadow 0.17s;
    overflow: hidden;
}


.dsmv-brand-btn:hover,
.dsmv-brand-btn:focus {
    border-color: #033260;
    box-shadow: 0 4px 14px rgba(3,50,96,0.10);
}

.dsmv-brand-btn img {
    width: 85%;          
    height: 85%;          
    object-fit: cover; 
    display: block;
    margin: 0 auto;
    background: transparent;
}

@media (max-width: 900px) {
    #dsmv-tire-brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dsmv-brand-btn {
        width: 110px;
        height: 75px;
    }
}

@media (max-width: 600px) {
    #dsmv-tire-brand-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dsmv-brand-btn {
        width: 95px;
        height: 56px;
    }
}


/* --- sizes buttons --- */

.dsmv-width-btn, .dsmv-ratio-btn, .dsmv-rim-btn {
  background: #f5f8fa;
  border: 1.5px solid #e3e8ef;
  color: #033260;
  border-radius: 9px;
  padding: 10px 17px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin-bottom: 4px;
  outline: none;
}
.dsmv-width-btn:hover, .dsmv-ratio-btn:hover, .dsmv-rim-btn:hover {
    background: #033260;
    color: #fff;
    border-color: #033260;
}


/* --- brands popup --- */

.dsmv-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 18px 8px 8px 8px;
    max-height: 400px;
    overflow-y: auto;
}
.dsmv-brand-btn {
    background: #fff;
    border: 2px solid #dce3e8;
    border-radius: 14px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    min-width: 0;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dsmv-brand-btn:hover {
    border-color: #033260;
    box-shadow: 0 4px 14px 0 rgba(3,50,96,.07);
}
.dsmv-brand-btn img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    display: block;
}


/* --- loading wheel --- */

.dripstreet-searching-overlay {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 20, 46, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.dripstreet-searching-overlay.hidden {
  display: none !important;
}

.dripstreet-searching-content {
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(30,60,90,0.09);
  padding: 36px 54px 28px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dripstreet-spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #d4e4f5;
  border-top: 6px solid #033260;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.dripstreet-searching-text {
  font-size: 2rem;
  color: #033260;
  font-weight: bold;
  letter-spacing: 0.03em;
}
