:root {
  --fixed-top-height: 138px;
  --fixed-bottom-height: 0px;
}

body {
  font-family: var(--primary-font) !important;
}

a {
  color: rgb(87,87,87) !important;
}

.affirm-as-low-as a {
  color: #C9C9C9 !important;
}

.dyo-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 72px;
  gap: 10px;
  background-color: white;
  border-bottom: 1px solid #E6E6E6;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.nav-back, .close-button {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #DADADA;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  cursor: pointer;
  padding: 10px 12px;
}
.nav-back img, .close-button img {
  width: 20px;
  height: 20px;
  stroke: #827D7A;
  stroke-width: 1.5px;
}
.header-image {
  height: 100%;
  display: flex;
  align-items: center;
}
.header-image img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
/* CSS Document */
#header {
  background-color: white;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
}
.header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.contact-button {
  height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #DADADA;
  text-decoration: none !important;
}
.dyo-toolbar {
  height: 66px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #313131;
  padding: 12px 40px;
  background-color: #222222;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: #C9C9C9;
  position: relative;
}
.dyo-vehicle-info {
  display: flex;
  gap: 16px;
}
.dyo-vehicle-info > div {
  display: flex;
  flex-direction: column;
}
.vehicle-name, .dyo-price-info .first-text {
  font-weight: 500;
  font-size: 16px;
  color: white;
}
.edit-vehicle-button {
  height: 41px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #FFFFFF14;
  background-color: #FFFFFF0A;
  backdrop-filter: blur(3px);
  font-weight: 600;
  color: white !important;
  text-decoration: none !important;
  display: none;
}
.dyo-steps {
  display: flex;
  gap: 12px;
  align-items: center;
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
}
.dyo-step {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dyo-step-number {
  width: 24px;
  height: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #4D4D4D;
  color: white;
}
.dyo-step-label {
  line-height: 150%;
}
.dyo-step.current-step .dyo-step-number {
  color: #222222;
  background-color: white;
}
.dyo-step.current-step .dyo-step-label {
  color: white;
}
.dyo-step-line {
  width: 30px;
  border-top: 1px solid #656565;
}
.dyo-price-info {
  display: flex;
  gap: 24px;
  background-color: inherit;
  justify-content: space-between;
}
.dyo-price-info > div {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.dyo-price-text {
  text-align: right;
}

.dyo-price-info .second-text {
  text-align: right;
  font-size: 12px;
}
.dyo-button, .dyo-button-mobile {
  height: 41px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #FFFFFF14;
  backdrop-filter: blur(3px);
  background-color: white;
  color: #222222;
  font-size: 16px;
  font-weight: 600;
}
.dyo-button-mobile { display: none; }
.dyo-main-container {
  margin-top: var(--fixed-top-height);
}
.checkbox-container {
  display: flex;
  gap: 8px;
}
[hidden] {
  display: none !important;
}
.form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form .error-message {
  display: none;
  color: red;
}
.loading {
  display: flex;
  gap: 10px;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 6010;
  background-color: rgb(20 21 21);
}
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading div { color: white; }

@media (max-width: 720px) {
  :root {
    --fixed-top-height: 113px;
    --fixed-bottom-height: 122px;
  }

  #header { padding: 0; min-height: 48px; }
  .dyo-header-main {
    padding: 0 10px;
    height: 64px;
  }

  .dyo-toolbar {
    height: 49px;
    padding: 12px 16px;
  }
  .dyo-vehicle-info { display: none; }
  .dyo-steps { flex: 1; gap: 0; justify-content: space-between; }
  .dyo-step-line {
    width: 14px;
    transform: rotate(-70deg);
  }
  .dyo-price-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #222222;
    gap: 12px;
  }
  .dyo-price-info .second-text {
    text-align: left;
  }
  .dyo-button { display: none; }
  .dyo-button-mobile { display: flex; }

  .dyo-price-text {
    text-align: left;
  }
}
