/* TiAuto Styled Tabs
   - Red bar with non-clickable title on the left
   - Clickable tabs on the right
   - Panels below in light background
*/

.tiauto-tabs {
  --tiauto-red: #e30613;       /* Primary bar colour */
  --tiauto-light: #f3f3f3;
  --tiauto-dark: #1a1a1a;

  width: 100%;
  font-family: inherit;
}

/* Bar */
.tiauto-tabs__bar {
  display: flex;
  gap: 8px;
  background: var(--tiauto-red);
  padding: 6px 10px;
  border-radius: 4px;
  align-items: center;
  overflow-x: auto;
}

/* Non-clickable heading on the bar (e.g., "Find Your Tyres") */
.tiauto-tabs__title {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  margin-right: 8px;
  white-space: nowrap;
  line-height: 1;
  position: relative;
}
@media (min-width: 768px) {
  .tiauto-tabs__title::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.35);
    margin-left: 10px;
    vertical-align: middle;
  }
}

/* Tabs */
.tiauto-tabs__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.tiauto-tabs__tab.is-active {
  background: #fff;
  color: var(--tiauto-red);
}

/* Panels wrapper */
.tiauto-tabs__panels {
  background: var(--tiauto-light);
  padding: 12px 10px 20px;
  border-radius: 0 0 4px 4px;
}

/* Individual panel */
.tiauto-tabs__panel { display: none; }
.tiauto-tabs__panel.is-active { display: block; }

/* Alignment modifiers */
.tiauto-tabs.align-center .tiauto-tabs__bar { justify-content: center; }
.tiauto-tabs.align-right  .tiauto-tabs__bar { justify-content: flex-end; }

/* Full-width modifier keeps the bar edge-to-edge like the reference */
.tiauto-tabs--full .tiauto-tabs__bar {
  border-radius: 0;
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 20px;
  padding-right: 20px;
}
