.ta-car-config {
  padding: 18px;
}

.ta-car-config__header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ta-car-config .tag {
  color: #9aa0a8;
  margin: 0;
}

.ta-car-config__description {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  margin-top: 6px;
}

.ta-car-config__current {
  align-items: center;
  background: #15171b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  min-height: 28px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.ta-car-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ta-car-option {
  appearance: none;
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  min-height: 136px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ta-car-option::before {
  background: var(--team-color);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.ta-car-option:hover:not(:disabled) {
  background: #171a1f;
  border-color: color-mix(in srgb, var(--team-color) 55%, transparent);
  transform: translateY(-2px);
}

.ta-car-option:focus-visible {
  outline: 2px solid var(--team-color);
  outline-offset: 3px;
}

.ta-car-option.is-selected {
  background: #191c21;
  border-color: var(--team-color);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--team-color) 24%, transparent);
}

.ta-car-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ta-car-option__image {
  align-items: center;
  display: flex;
  grid-column: 1 / -1;
  height: 76px;
  justify-content: center;
  padding: 12px 14px 4px;
}

.ta-car-option__image img {
  display: block;
  height: auto;
  max-height: 58px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.ta-car-option[data-car-id="virtual-motors"] .ta-car-option__image img {
  max-height: 66px;
}

.ta-car-option__text {
  align-self: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 4px 12px 14px;
}

.ta-car-option__text strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.ta-car-option__text span {
  color: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  margin-top: 2px;
  text-transform: uppercase;
}

.ta-car-option__check {
  align-items: center;
  align-self: center;
  background: var(--team-color);
  border-radius: 50%;
  color: #050505;
  display: flex;
  font-size: 13px;
  height: 20px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 20px;
}

.ta-car-option.is-selected .ta-car-option__check {
  opacity: 1;
  transform: scale(1);
}

.ta-car-config__status {
  color: rgba(255, 255, 255, 0.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  min-height: 18px;
  padding-top: 10px;
  text-align: right;
}

.ta-staff-logout {
  white-space: nowrap;
}

.ta-registration-back {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72) !important;
  display: flex;
  font-size: 13px !important;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
  width: 100%;
}

.ta-registration-back:hover,
.ta-registration-back:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff !important;
}

.ta-ad-config {
  padding: 18px;
}

.ta-ad-config__header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ta-ad-config .tag {
  color: #9aa0a8;
  margin: 0;
}

.ta-ad-config__description {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  margin-top: 6px;
}

.ta-ad-toggle {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  gap: 9px;
  min-height: 32px;
}

.ta-ad-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.ta-ad-toggle__track {
  background: #292c31;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  height: 22px;
  position: relative;
  transition: background-color 160ms ease, border-color 160ms ease;
  width: 40px;
}

.ta-ad-toggle__track::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 160ms ease;
  width: 16px;
}

.ta-ad-toggle input:checked + .ta-ad-toggle__track {
  background: #c82b24;
  border-color: #ef4940;
}

.ta-ad-toggle input:checked + .ta-ad-toggle__track::after {
  transform: translateX(18px);
}

.ta-ad-toggle input:focus-visible + .ta-ad-toggle__track {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ta-ad-link-tools {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ta-ad-link-form {
  flex: 1 1 680px;
  max-width: 760px;
}

.ta-ad-link-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 7px;
}

.ta-ad-link-input {
  min-width: 0;
}

.ta-ad-link-submit,
.ta-ad-catalog-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}

.ta-ad-active-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 8px !important;
}

.ta-saved-ad-list {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ta-saved-ad-list__empty {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  margin: 0;
  padding: 18px 2px;
}

.ta-saved-ad {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr) 36px;
  min-height: 88px;
  padding: 8px 2px;
}

.ta-saved-ad__image {
  align-items: center;
  background: #f2f3f4;
  border-radius: 6px;
  display: flex;
  height: 68px;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  width: 68px;
}

.ta-saved-ad__image img {
  display: block;
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.ta-saved-ad__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ta-saved-ad__text strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.ta-saved-ad__text span {
  color: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  margin-top: 4px;
  text-transform: uppercase;
}

.ta-saved-ad__text a {
  color: #ef4940;
  font-size: 11px;
  margin-top: 6px;
  text-decoration: none;
  width: fit-content;
}

.ta-saved-ad__text a:hover,
.ta-saved-ad__text a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.ta-saved-ad__remove {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 32px;
}

.ta-saved-ad__remove:hover:not(:disabled),
.ta-saved-ad__remove:focus-visible {
  background: rgba(225, 59, 51, 0.16);
  border-color: #e13b33;
  color: #fff;
  outline: none;
}

.ta-saved-ad__remove:disabled {
  cursor: wait;
  opacity: 0.5;
}

.ta-ad-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ta-ad-option {
  appearance: none;
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 26px;
  min-height: 104px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ta-ad-option:hover:not(:disabled) {
  background: #181b20;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.ta-ad-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ta-ad-option.is-selected {
  background: #1b1d21;
  border-color: #e13b33;
  box-shadow: inset 3px 0 #e13b33;
}

.ta-ad-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ta-ad-option__image {
  align-items: center;
  align-self: stretch;
  background: #f2f3f4;
  display: flex;
  justify-content: center;
  padding: 8px;
}

.ta-ad-option__image img {
  display: block;
  height: 78px;
  object-fit: contain;
  width: 78px;
}

.ta-ad-option__text {
  align-self: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 8px 10px 12px;
}

.ta-ad-option__text strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.ta-ad-option__text span {
  color: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  margin-top: 5px;
  text-transform: uppercase;
}

.ta-ad-option__check {
  align-items: center;
  align-self: center;
  background: #e13b33;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 12px;
  height: 20px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 20px;
}

.ta-ad-option.is-selected .ta-ad-option__check {
  opacity: 1;
  transform: scale(1);
}

.ta-ad-config__footer {
  color: rgba(255, 255, 255, 0.48);
  display: flex;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  gap: 16px;
  justify-content: space-between;
  min-height: 18px;
  padding-top: 12px;
}

.ta-ad-config__footer [data-ta-ad-status] {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

.ta-product-ad-panel {
  min-height: 224px;
}

.ta-product-ad {
  background: #101216;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(180px, 36%) minmax(0, 1fr);
  min-height: 224px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.ta-product-ad__media {
  align-items: center;
  background: #f2f3f4;
  display: flex;
  justify-content: center;
  min-height: 224px;
  padding: 18px;
}

.ta-product-ad__media img {
  display: block;
  height: 184px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
  width: 184px;
}

.ta-product-ad__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px 58px 28px 28px;
}

.ta-product-ad__eyebrow {
  color: #ef4940;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.ta-product-ad__content strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  margin-top: 8px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.ta-product-ad__brand {
  color: rgba(255, 255, 255, 0.48);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  margin-top: 7px;
}

.ta-product-ad__action {
  align-items: center;
  background: #d52e27;
  border: 1px solid #ef4940;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 20px;
}

.ta-product-ad__rotation {
  color: rgba(255, 255, 255, 0.35);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  position: absolute;
  right: 18px;
  top: 16px;
}

.ta-product-ad:hover .ta-product-ad__media img,
.ta-product-ad:focus-visible .ta-product-ad__media img {
  transform: scale(1.04);
}

.ta-product-ad:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.ta-dashboard-car-row {
  min-height: 92px;
}

.ta-dashboard-car {
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 18px color-mix(in srgb, var(--team-color) 28%, transparent)) !important;
  height: auto !important;
  max-height: 84px;
  max-width: min(300px, 46vw);
  object-fit: contain;
  width: 100%;
}

.ta-dashboard-car[data-car-id="virtual-motors"] {
  max-height: 100px;
  max-width: min(340px, 52vw);
}

@media (max-width: 900px) {
  .ta-car-grid,
  .ta-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ta-car-config__header,
  .ta-ad-config__header {
    align-items: stretch;
    flex-direction: column;
  }

  .ta-car-config__current {
    align-self: flex-start;
  }

  .ta-car-grid,
  .ta-ad-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ta-ad-toggle {
    align-self: flex-start;
  }

  .ta-ad-link-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .ta-ad-link-form {
    flex-basis: auto;
    max-width: none;
  }

  .ta-ad-link-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .ta-ad-link-submit,
  .ta-ad-catalog-link {
    width: 100%;
  }

  .ta-saved-ad {
    gap: 10px;
    grid-template-columns: 60px minmax(0, 1fr) 34px;
  }

  .ta-saved-ad__image {
    height: 56px;
    width: 56px;
  }

  .ta-saved-ad__image img {
    height: 48px;
    width: 48px;
  }

  .ta-car-option {
    min-height: 124px;
  }

  .ta-dashboard-car-row {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .ta-dashboard-car {
    max-width: 100%;
  }

  .ta-dashboard-car[data-car-id="virtual-motors"] {
    max-width: 100%;
  }

  .ta-product-ad {
    grid-template-columns: minmax(0, 1fr);
  }

  .ta-product-ad__media {
    min-height: 154px;
    padding: 14px;
  }

  .ta-product-ad__media img {
    height: 136px;
    width: 136px;
  }

  .ta-product-ad__content {
    padding: 22px;
  }

  .ta-product-ad__content strong {
    font-size: 23px;
  }

  .ta-ad-config__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ta-ad-config__footer [data-ta-ad-status] {
    text-align: left;
  }
}
