.ls-tire-size-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  overflow: auto;
  padding: 48px min(5vw, 72px);
  color: #fff;
  background: #00205b;
}

.ls-tire-size-modal.is-open {
  display: block;
}

.ls-tire-size-modal__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #00205b;
  background: #fce502;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.ls-tire-size-modal__layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: min(7vw, 84px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.ls-tire-config {
  position: sticky;
  top: 36px;
  min-height: 320px;
  border-radius: 14px;
  padding: 42px;
  background: rgba(82, 132, 209, .58);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

.ls-tire-config__title {
  margin: 0 0 34px;
  font-family: Michelin, Impact, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.ls-tire-config__steps {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 34px;
}

.ls-tire-config__steps::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.ls-tire-config__step {
  position: relative;
  display: grid;
  gap: 5px;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  font-family: Noto Sans, sans-serif;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.ls-tire-config__step::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
}

.ls-tire-config__step.is-active,
.ls-tire-config__step.is-complete {
  color: #fff;
  font-weight: 900;
}

.ls-tire-config__step.is-active::before,
.ls-tire-config__step.is-complete::before {
  background: #fce502;
  box-shadow: 0 0 0 5px rgba(252, 229, 2, .18);
}

.ls-tire-config__value {
  min-height: 20px;
  color: #fce502;
  font-size: 14px;
  font-weight: 900;
}

.ls-tire-picker {
  position: relative;
  min-height: 640px;
  padding-top: 8px;
}

.ls-tire-picker h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-family: Michelin, Impact, sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.ls-tire-reference {
  position: relative;
  z-index: 1;
  display: block;
  width: min(220px, 100%);
  max-height: 190px;
  margin: 0 0 0px auto;
  object-fit: contain;
  object-position: right center;
}

.ls-tire-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #fff;
}

.ls-tire-search input {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  padding: 14px 60px 14px 18px;
  color: #00205b;
  font-size: 18px;
  font-style: italic;
  outline: 0;
}

.ls-tire-search span {
  position: absolute;
  right: 18px;
  color: #000;
  font-size: 28px;
}

.ls-tire-options {
  position: relative;
  z-index: 1;
  display: grid;
  max-height: min(520px, 58vh);
  overflow: auto;
  padding-right: 14px;
}

.ls-tire-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 0 8px 18px;
  color: #fff;
  background: transparent;
  font-size: 21px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.ls-tire-option span:last-child {
  font-size: 38px;
  line-height: 1;
}

.ls-tire-options__empty {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 18px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  font-size: 16px;
  font-weight: 600;
}

.ls-tire-search[hidden],
.ls-tire-options[hidden],
.ls-tire-result[hidden] {
  display: none;
}

.ls-tire-result {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  border-radius: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, .12);
}

.ls-tire-result strong {
  color: #fce502;
  font-size: 34px;
}

.ls-tire-result button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: #00205b;
  background: #fce502;
  font-weight: 900;
  cursor: pointer;
}

.ls-tire-size-modal.is-complete .ls-tire-picker {
  min-height: 0;
  padding-top: 58px;
}

.ls-tire-size-modal.is-complete .ls-tire-picker h2 {
  margin-bottom: 28px;
}

.ls-tire-size-modal.is-complete .ls-tire-reference {
  display: none;
}

.ls-tire-size-modal.is-complete .ls-tire-result {
  width: min(620px, 100%);
}

@media (max-width: 900px) {
  .ls-tire-size-modal {
    padding: 22px 14px;
  }

  .ls-tire-size-modal__layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ls-tire-config {
    position: static;
    min-height: 0;
    padding: 26px;
  }

  .ls-tire-picker {
    min-height: 0;
  }

  .ls-tire-reference {
    width: min(220px, 100%);
    max-height: 132px;
    margin: 0 0 0;
    object-position: center;
  }

  .ls-tire-picker h2 {
    margin-bottom: 32px;
  }

  .ls-tire-size-modal.is-complete .ls-tire-picker {
    padding-top: 12px;
  }
}
