/* ===========================
   Buscador de llantas – Tabs
   =========================== */

.tsm-llantas-tabs {
  background: #1b1642;
  border-radius: 24px;
  padding: 24px 32px 32px;
  color: #ffffff;
}

.tsm-llantas-tabs .tsm-tabs-header {
  display: flex;
  margin-bottom: 24px;
}

.tsm-llantas-tabs .tsm-tab-btn {
  flex: 1 1 0;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #1b1642;
  color: rgba(255,255,255,.92);
  transition: background 0.2s ease, color 0.2s ease;
}

.tsm-llantas-tabs .tsm-tab-btn:first-child {
  border-radius: 999px 0 0 999px;
}

.tsm-llantas-tabs .tsm-tab-btn:last-child {
  border-radius: 0 999px 999px 0;
}

.tsm-llantas-tabs .tsm-tab-btn.is-active {
  background: #f23732;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}

.tsm-llantas-tabs .tsm-tab-btn:not(.is-active):hover {
  background: #2b255e;
  color: #ffffff;
}

.tsm-llantas-tabs .tsm-tab-btn.is-active:hover {
  background: #d92f2b; 
}

.tsm-llantas-tabs .tsm-tab-btn:focus-visible {
  outline: 2px solid #45c4ff;
  outline-offset: 2px;
}

.tsm-llantas-tabs .tsm-tab-panel {
  display: none;
}

.tsm-llantas-tabs .tsm-tab-panel.is-active {
  display: block;
}

.tsm-llantas-tabs .tsm-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.tsm-llantas-tabs .tsm-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tsm-llantas-tabs .tsm-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: #ffffff;
}

.tsm-llantas-tabs .tsm-in {
  width: 100%;
  padding: 0 16px;
  height: 52px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
  color: #1c1c1c;
}

.tsm-llantas-tabs .tsm-field--slash {
  flex-direction: row;
  align-self: flex-end;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 0;
  font-size: 28px;
  color: #ffffff;
}

.tsm-llantas-tabs .tsm-field--slash span {
  line-height: 1;
  transform: translateY(1px);
}


.tsm-llantas-tabs .tsm-rin-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsm-llantas-tabs .tsm-rin-prefix {
  font-size: 18px;
  font-weight: 600;
}

.tsm-llantas-tabs .tsm-field--btn .tsm-btn {
  min-width: 190px;
  height: 52px;
  line-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  border: none;
  background: #f23732;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.tsm-llantas-tabs .tsm-tabs-helper {
  margin-top: 16px;
  font-size: 14px;
  color: #ffffff;
}

.tsm-llantas-tabs .tsm-tabs-helper__link {
  color: #45c4ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

@media (max-width: 767px) {
  .tsm-llantas-tabs {
    padding: 16px;
  }

  .tsm-llantas-tabs .tsm-tabs-header {
    margin-bottom: 16px;
  }

  .tsm-llantas-tabs .tsm-tab-btn {
    font-size: 14px;
    padding: 10px;
  }

  .tsm-llantas-tabs .tsm-tabs-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tsm-llantas-tabs .tsm-field--slash {
    display: none;
  }

  .tsm-llantas-tabs .tsm-field--btn .tsm-btn {
    width: 100%;
  }
}

/* ===========================
   Resultados de llantas
   =========================== */

.tsm-llantas-result {
  max-width: 1140px;
  margin: 40px auto 60px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1b1642 0%, #041024 60%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.tsm-llantas-result .tsm-llantas-header {
  background: rgba(255, 255, 255, 0.9);
  color: #172982;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.tsm-llantas-result .tsm-llantas-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.tsm-llantas-result .tsm-llantas-header p {
  margin: 0 0 4px;
  font-size: 14px;
}

.tsm-llantas-result .tsm-llantas-comment {
  margin-top: 12px;
  font-size: 13px;
  color: #e1001a;
}

.tsm-llantas-result .tsm-llantas-carousel {
  position: relative;
}

.tsm-llantas-result .tsm-llanta-slide {
  display: none;
}

.tsm-llantas-result .tsm-llanta-slide.tsm-slide-active {
  display: block;
}

.tsm-llantas-result .tsm-llanta-slide-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px 28px;
  color: #111111;
}

.tsm-llantas-result .tsm-llanta-col {
  min-width: 0;
}

.tsm-llantas-result .tsm-llanta-col-left {
  flex: 0 0 280px;
  max-width: 320px;
  text-align: center;
}

.tsm-llantas-result .tsm-llanta-logo img {
  max-height: 60px;
  width: auto;
  margin-bottom: 8px;
}

.tsm-llantas-result .tsm-llanta-image img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.tsm-llantas-result .tsm-llanta-ref {
  margin-top: 16px;
  background: #005aa9;
  color: #ffffff;
  border-radius: 15px 0 15px 0;
  padding: 10px 14px;
  font-size: 14px;
}

.tsm-llantas-result .tsm-llanta-ref h4 {
  margin: 0 0 4px;
  font-size: 15px;
}


.tsm-llantas-result .tsm-llanta-col-right {
  flex: 1 1 0;
}

.tsm-llantas-result .tsm-llanta-gama-badge {
  display: inline-block;
  background: #005aa9;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 18px 0 18px 0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tsm-llantas-result .tsm-llanta-text h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #005aa9;
  text-align: center;
}

.tsm-llantas-result .tsm-llanta-desc {
  font-size: 14px;
}

.tsm-llantas-result .tsm-llanta-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tsm-llantas-result .tsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 18px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tsm-llantas-result .tsm-btn-primary {
  background: #172982;
  color: #ffffff;
}

.tsm-llantas-result .tsm-btn-secondary {
  background: #e1001a;
  color: #ffffff;
}

.tsm-llantas-result .tsm-btn i {
  margin-right: 6px;
}


.tsm-llantas-result .tsm-llantas-nav {
  margin-top: 24px;
  text-align: center;
}

.tsm-llantas-result .tsm-llantas-nav button {
  margin: 0 6px;
  padding: 8px 16px;
  border-radius: 18px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  background: #ffffff;
  color: #172982;
}

.tsm-llantas-result .tsm-llantas-nav button:hover {
  background: #f0f0f0;
}

@media (max-width: 767px) {
  .tsm-llantas-result {
    padding: 20px 16px 28px;
  }

  .tsm-llantas-result .tsm-llanta-slide-inner {
    flex-direction: column;
  }

  .tsm-llantas-result .tsm-llanta-col-left,
  .tsm-llantas-result .tsm-llanta-col-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .tsm-llantas-result .tsm-llanta-actions {
    justify-content: center;
  }
}

.tsm-llantas-tabs,
.tsm-llantas-tabs * {
  font-family: "Poppins", sans-serif;
}
