.db-overlay[hidden] {
  display: none !important;
}

.db-modal {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.db-modal--mfa {
  width: min(448px, calc(100vw - 32px));
}

.db-modal .btn-primary:disabled {
  border-color: rgba(12, 17, 20, 0.2);
  background: #d6dbe1;
  color: #b0b9c4;
  opacity: 1;
  cursor: default;
}

.db-modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.db-modal__title {
  flex: 1;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.db-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 16px;
}

.db-modal__body--padded {
  padding: 16px 20px;
}

.db-modal__body--mfa {
  padding: 0 0 16px;
  overflow-x: hidden;
  min-width: 0;
}

.db-mfa-intro {
  padding: 16px;
}

.db-mfa-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 16px 16px 0;
  box-sizing: border-box;
  min-width: 0;
}

.db-mfa-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.db-modal__lede {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
}

.db-modal__link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.db-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--hairline);
}

.db-modal__foot--split {
  justify-content: space-between;
}

.db-modal__foot-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 48px;
  padding: 16px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #cc0300;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: default;
}

.db-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.db-check__input {
  margin-top: 4px;
}

.db-check__label {
  font-size: 16px;
  line-height: 1.5;
}

.db-check--inline {
  margin-top: 8px;
}

.db-status-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 200px;
  padding: 24px 16px;
}

.db-status-panel__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.db-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: db-spin 0.8s linear infinite;
}

.db-spinner--on-primary {
  width: 24px;
  height: 24px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.db-btn--loading {
  pointer-events: none;
  cursor: wait;
}

@keyframes db-spin {
  to {
    transform: rotate(360deg);
  }
}

.db-confirm-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--input);
}

.db-vehicle-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 16px;
}

.db-vehicle-row__img {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.db-vehicle-row__img img {
  max-width: 163px;
  height: auto;
  object-fit: contain;
}

.db-vehicle-row__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.db-vehicle-row__updated {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 280px;
}

.db-stepper {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}

.db-stepper__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  min-width: 0;
}

.db-stepper__line {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #b0b9c4;
}

.db-stepper__line.is-complete {
  background: var(--brand);
}

.db-stepper__line.is-current {
  display: flex;
  align-items: stretch;
}

.db-stepper__line-fill {
  flex: 0 0 50%;
  height: 4px;
  background: var(--brand);
}

.db-stepper__label-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 22px;
}

.db-stepper__mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 8px;
  box-sizing: border-box;
}

.db-stepper__mark.is-complete {
  border: 1px solid var(--brand);
  background: var(--brand);
}

.db-stepper__mark.is-pending {
  background: #d9d9d9;
}

.db-stepper__mark img {
  display: block;
  width: 10px;
  height: 10px;
}

.db-stepper__label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
}

.db-stepper__label.is-complete {
  font-weight: 400;
  color: var(--brand);
}

.db-stepper__label.is-current {
  font-weight: 500;
  color: #525e6d;
}

.db-stepper__label.is-upcoming {
  font-weight: 400;
  color: #b0b9c4;
}

.db-modal__body--wizard-panel {
  flex: 0 0 auto;
  height: 325px;
  min-height: 325px;
  max-height: 325px;
  overflow: hidden;
  padding: 8px 16px 16px;
  box-sizing: border-box;
}

.db-modal__body--wizard-panel .db-map-stage {
  height: 100%;
}

.db-modal__body--wizard-panel .db-disclaimer-scroll {
  height: 100%;
  max-height: none;
}

.db-map-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eaed;
}

.db-map-stage__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.db-map-stage__marker {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.db-map-stage__crosshair-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  transform: rotate(43deg);
}

.db-map-stage__crosshair {
  display: block;
  width: 64px;
  height: 64px;
}

.db-map-stage__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #33404c;
  box-shadow: 0 4px 6px rgba(12, 17, 20, 0.1);
  transform: rotate(-43deg);
}

.db-map-stage__pin img {
  width: 16px;
  height: 16px;
}

.db-map-stage__bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  pointer-events: none;
}

.db-map-card {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(29, 42, 52, 0.12);
}

.db-map-stage__zoom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.db-map-stage__zoom-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(29, 42, 52, 0.12);
}

.db-map-stage__zoom-btn img {
  width: 20px;
  height: 20px;
}

.db-map-card__address {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.db-map-card__updated {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.db-disclaimer-scroll {
  overflow-y: auto;
  padding-right: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.db-disclaimer-scroll p {
  margin: 0 0 16px;
}

.db-disclaimer-scroll p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 500;
}

.db-callout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
}

.db-callout img {
  flex-shrink: 0;
  margin-top: 2px;
}

.db-callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.db-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 2.2vw, 16px);
  width: 100%;
  margin: 0;
  min-width: 0;
}

.db-otp input {
  width: 100%;
  min-width: 0;
  max-width: 56px;
  height: 72px;
  padding: 0;
  margin: 0 auto;
  border: 1px solid #b0b9c4;
  border-radius: 8px;
  background: #f0f1f5;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: #303030;
  box-shadow: none;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.db-otp input:focus {
  outline: none;
  border-color: #b0b9c4;
  background: #f0f1f5;
  box-shadow:
    0 0 0 1px #fff,
    0 0 4px 0 #3894e9;
}

.db-otp input.is-success {
  border-color: #008035;
  background: #f0fff7;
  box-shadow: none;
}

.db-mfa-meta {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #525e6d;
}

.db-resend {
  margin: 0;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

