/* Vehicle Tyre Finder - tab sav.
   A meglevo vtf.css szinvilagahoz igazitva (#2452a3 / #123d84 / #dfe5ee). */

.vtf__tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid #dfe5ee;
  overflow-x: auto;
  scrollbar-width: none;
}

.vtf__tabs::-webkit-scrollbar {
  display: none;
}

.vtf__tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #e1e6ee;
  background: #fff;
  color: #4a5b75;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vtf__tab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.vtf__tab:hover {
  background: #e9eff8;
  border-color: #c9d6ea;
  color: #2452a3;
}

.vtf__tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 82, 163, 0.14);
}

.vtf__tab.is-active {
  background: #2452a3;
  border-color: #2452a3;
  color: #fff;
  box-shadow: 0 10px 20px rgba(36, 82, 163, 0.18);
}

/* nyugodtabb mezocimkek: nagybetus helyett normal iras */
.vtf .vtf__label,
.vtf .vtf__season-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: #6b7a90;
}

/* Tovabbi szurok lenyito */
.vtf__panel-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.vtf__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  padding: 6px 0;
  color: #2452a3;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vtf__more:hover {
  background: none;
  color: #1f4a95;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vtf__more-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.vtf__more[aria-expanded="true"] .vtf__more-caret {
  transform: translateY(1px) rotate(-135deg);
}

.vtf__panel-hint {
  font-size: 13px;
  color: #8b9ab0;
}

.vtf__panel-hint[hidden] {
  display: none;
}

.vtf__field[hidden] {
  display: none;
}

.vtf__panel[hidden] {
  display: none;
}

.vtf__panel-hint {
  flex: 1 1 auto;
  font-size: 13px;
  color: #8b9ab0;
}

/* A generikus panelek 4+ mezot is kaphatnak, ezert rugalmas racs */
.vtf__panel[data-base-url] .vtf__size-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (prefers-reduced-motion: reduce) {
  .vtf__tab {
    transition: none;
  }
}

@media (max-width: 560px) {
  .vtf__tabs {
    gap: 5px;
  }

  .vtf__tab {
    padding: 12px 16px;
    font-size: 14px;
  }

  .vtf__tab-icon {
    width: 18px;
    height: 18px;
  }
}

/* --- Altabok (Felnik: Alufelni / Lemezfelni) --- */

.vtf__subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px 0;
}

.vtf__subtab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e1e6ee;
  background: #fff;
  box-shadow: none;
  text-shadow: none;
  color: #4a5b75;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vtf__subtab:hover {
  background: #e9eff8;
  border-color: #c9d6ea;
  color: #2452a3;
  box-shadow: none;
}

.vtf__subtab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 82, 163, 0.14);
}

.vtf__subtab.is-active {
  background: #e9eff8;
  border-color: #2452a3;
  color: #2452a3;
}

.vtf__subpanel[hidden] {
  display: none;
}

.vtf__subpanel .vtf__size-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* --- Kattinthato felni meretek a talalati ablakban --- */

.vtf__wheel-item {
  list-style: none;
  margin-left: -18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vtf__wheel-size {
  font-size: 14px;
  font-weight: 600;
  color: #3f4f68;
  margin-right: 2px;
}

.vtf__wheel-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #c9d6ea;
  background: #fff;
  color: #2452a3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* uj lapon nyilik: kifele mutato nyil ikon */
.vtf__wheel-option::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--vtf-external-icon) no-repeat center / contain;
  mask: var(--vtf-external-icon) no-repeat center / contain;
}

.vtf__wheel-option {
  --vtf-external-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.vtf__wheel-option:hover {
  background: #2452a3;
  border-color: #2452a3;
  color: #fff;
}

.vtf__wheel-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 82, 163, 0.14);
}

@media (max-width: 560px) {
  .vtf__wheel-item {
    gap: 6px;
  }

  .vtf__wheel-size {
    flex: 1 0 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vtf__subtab {
    transition: none;
  }
}

/* --- Autotipus szerinti felni kereso eredmenyei --- */

.vtf__wheel-results {
  margin-top: 18px;
}

.vtf__wheel-results:empty {
  margin-top: 0;
}

.vtf__wheel-results .vtf__section-row {
  margin-bottom: 14px;
}

.vtf__wheel-results .vtf__section-label {
  margin-bottom: 8px;
  color: #3f4f68;
}

.vtf__wheel-results .vtf__car-title {
  margin-bottom: 14px;
  color: #123d84;
  font-size: 16px;
}

[data-role="vtf-wheel-vehicle"].is-loading .vtf__grid,
[data-role="vtf-wheel-vehicle"].is-loading .vtf__wheel-results {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

[data-role="vtf-wheel-vehicle"].is-loading .vtf__select,
[data-role="vtf-wheel-vehicle"].is-loading .vtf__submit {
  pointer-events: none;
}

/* A tema sajat gomb-hover stilusa ne uljon ra a kereso gombjaira. */
.vtf .vtf__tab,
.vtf .vtf__subtab,
.vtf .vtf__more,
.vtf .vtf__wheel-option {
  text-shadow: none;
}

.vtf .vtf__tab:hover,
.vtf .vtf__tab:focus,
.vtf .vtf__subtab:hover,
.vtf .vtf__subtab:focus,
.vtf .vtf__more:hover,
.vtf .vtf__more:focus,
.vtf .vtf__wheel-option:hover,
.vtf .vtf__wheel-option:focus {
  outline: none;
  text-shadow: none;
}

.vtf .vtf__tab:focus:not(:focus-visible),
.vtf .vtf__subtab:focus:not(:focus-visible),
.vtf .vtf__more:focus:not(:focus-visible),
.vtf .vtf__wheel-option:focus:not(:focus-visible) {
  box-shadow: none;
}
