.dbrace-moto-finder,
.dbrace-moto-finder * {
  box-sizing: border-box;
}

.dbrace-moto-finder {
  --dbrace-finder-ink: #1a1816;
  --dbrace-finder-surface: #373330;
  --dbrace-finder-paper: #f2f2f2;
  --dbrace-finder-white: #fff;
  --dbrace-finder-muted: #6f6864;
  --dbrace-finder-stroke: #bdbaba;
  --dbrace-finder-accent: #d13324;
  --dbrace-finder-accent-hover: #8b2218;
  --dbrace-finder-focus: #38bdf8;
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 50;
  font-family: Inter, Arial, sans-serif;
}

.dbrace-moto-finder__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  border: 1px solid rgba(139, 34, 24, 0.3);
  border-radius: 16px;
  padding: 10px 10px;
  color: var(--dbrace-finder-accent-hover);
  background: var(--dbrace-finder-white);
  box-shadow: 0 8px 8px rgba(209, 51, 36, 0.15);
  cursor: pointer;
}

.dbrace-moto-finder__container-btn {
  border: 1px solid #8b2218;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 5px 16px;
}

.dbrace-moto-finder__trigger:hover,
.dbrace-moto-finder__trigger:active {
  color: var(--dbrace-finder-white);
  background: var(--dbrace-finder-accent-hover);
}

.dbrace-moto-finder__trigger-label,
.dbrace-moto-finder__eyebrow,
.dbrace-moto-finder label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dbrace-moto-finder__trigger-label {
  color: #d7d6d6;
}

.dbrace-moto-finder__trigger-value {
  overflow: hidden;
  color: var(--dbrace-finder-accent-hover);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace !important;
}

.dbrace-moto-finder__trigger-icon,
.dbrace-moto-finder__close svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dbrace-moto-finder__submit-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.dbrace-moto-finder__dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--dbrace-finder-ink);
  background: var(--dbrace-finder-paper);
}

.dbrace-moto-finder__dialog[open] {
  display: none;
}

.dbrace-moto-finder__dialog[open].is-modal-open,
.dbrace-moto-finder__dialog[open].is-open {
  display: flex;
  flex-direction: column;
}

.dbrace-moto-finder__dialog::backdrop {
  background: rgba(26, 24, 22, 0.72);
}

.dbrace-moto-finder__header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(20px, env(safe-area-inset-top)) 20px 20px;
  color: var(--dbrace-finder-white);
  background: var(--dbrace-finder-ink);
}

.dbrace-moto-finder__eyebrow {
  margin: 0 0 5px;
  color: #d7d6d6;
}

.dbrace-moto-finder__header h2,
.dbrace-moto-finder__intro h3,
.dbrace-moto-finder__intro p {
  margin: 0;
}

.dbrace-moto-finder__header h2 {
  color: inherit;
  font-family: Inter, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dbrace-moto-finder__close {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #534d4a;
  border-radius: 50%;
  padding: 0;
  color: var(--dbrace-finder-white);
  background: transparent;
}

.dbrace-moto-finder__close:hover,
.dbrace-moto-finder__close:active {
  color: var(--dbrace-finder-white);
  background: var(--dbrace-finder-surface);
}

.dbrace-moto-finder__content {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 30px 20px max(24px, env(safe-area-inset-bottom));
}

.dbrace-moto-finder__intro {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.dbrace-moto-finder__desktop-label {
  display: none;
}

.dbrace-moto-finder__intro h3 {
  color: var(--dbrace-finder-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.dbrace-moto-finder__intro p {
  max-width: 34ch;
  color: #534d4a;
  font-size: 15px;
  line-height: 1.5;
}

.dbrace-moto-finder__field {
  min-width: 0;
}

.dbrace-moto-finder__field-caret {
  display: none;
}

.dbrace-moto-finder label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: #534d4a;
}

.dbrace-moto-finder label span {
  color: var(--dbrace-finder-accent);
}

.dbrace-moto-finder select,
.dbrace-moto-finder__submit {
  width: 100%;
  min-height: 56px;
  border-radius: 4px;
  font: inherit;
}

.dbrace-moto-finder select {
  border: 1px solid var(--dbrace-finder-stroke);
  padding: 12px 44px 12px 14px;
  color: var(--dbrace-finder-ink);
  background-color: var(--dbrace-finder-white);
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer;
}

.dbrace-moto-finder select:disabled {
  border-color: #d7d6d6;
  color: var(--dbrace-finder-muted);
  background-color: #e7e6e6;
  cursor: not-allowed;
}

.dbrace-moto-finder__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  border: 1px solid #8b2218;
  border-radius: 8px;
  padding: 14px 20px;
  color: #8b2218;
  background: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.dbrace-moto-finder__submit:hover,
.dbrace-moto-finder__submit:active {
  color: var(--dbrace-finder-white);
  background: #8b2218;
}

.dbrace-moto-finder__submit:disabled {
  border-color: #a39e9d;
  color: #a39e9d;
  background: transparent;
  cursor: not-allowed;
}

.dbrace-moto-finder select:focus-visible,
.dbrace-moto-finder__trigger:focus-visible,
.dbrace-moto-finder__close:focus-visible,
.dbrace-moto-finder__submit:focus-visible {
  outline: 3px solid var(--dbrace-finder-focus);
  outline-offset: 2px;
}

.dbrace-moto-finder__status {
  min-height: 18px;
  margin: -10px 0 0;
  color: #534d4a;
  font-size: 12px;
  line-height: 1.5;
}

.dbrace-moto-finder__sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dbrace-moto-finder__submit-icon {
  display: none !important;
}

.dbrace-moto-finder__submit-icon.grey-icon {
  display: block !important;
}

.dbrace-moto-finder__submit:hover:enabled .dbrace-moto-finder__submit-icon.white-icon {
  display: block !important;
}

.dbrace-moto-finder__submit:enabled .dbrace-moto-finder__submit-icon.grey-icon {
  display: none !important;
}

.dbrace-moto-finder__submit:enabled .dbrace-moto-finder__submit-icon.red-icon {
  display: block !important;
}

.dbrace-moto-finder__submit:hover:enabled .dbrace-moto-finder__submit-icon.red-icon {
  display: none !important;
}

button:focus {
  color: var(--dbrace-finder-white) !important;
  background-color: var(--dbrace-finder-accent-hover) !important;
}


button:focus .dbrace-moto-finder__container-btn span,
button:focus .dbrace-moto-finder__container-btn path {
  color: var(--dbrace-finder-white) !important;
  stroke: var(--dbrace-finder-white) !important;
}

button:focus .dbrace-moto-finder__container-btn {
  border: 1px solid var(--dbrace-finder-white) !important;
}

@media (min-width: 900px) {
  .dbrace-moto-finder {
    width: min(calc(100vw - 128px), 1312px);
    right: auto;
    bottom: 24px;
    left: 50%;
    overflow: hidden;
    border: 1px solid rgba(139, 34, 24, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--dbrace-finder-ink);
    background: var(--dbrace-finder-white);
    box-shadow: 0 21px 34.1px -8px rgba(209, 51, 36, 0.15);
    transform: translateX(-50%);
  }

  .dbrace-moto-finder__trigger,
  .dbrace-moto-finder__header,
  .dbrace-moto-finder__intro {
    display: none;
  }

  .dbrace-moto-finder__dialog,
  .dbrace-moto-finder__dialog[open],
  .dbrace-moto-finder__dialog[open]:not(:modal) {
    width: 100%;
    height: auto;
    display: block;
    position: static;
    overflow: visible;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
  }

  .dbrace-moto-finder__content {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 21px;
    overflow: visible;
    padding: 0;
  }

  .dbrace-moto-finder__desktop-label {
    display: block;
    margin: 0;
    color: var(--dbrace-finder-ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dbrace-moto-finder label {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .dbrace-moto-finder select,
  .dbrace-moto-finder__submit {
    min-height: 36px;
  }

  .dbrace-moto-finder select {
    appearance: none;
    border: 0;
    border-bottom: 1px solid #8b2218;
    border-radius: 0;
    padding: 8px 36px 8px 16px;
    color: var(--dbrace-finder-ink);
    background-color: transparent;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    text-transform: uppercase;
  }

  .dbrace-moto-finder select:disabled {
    border-color: #a39e9d;
    color: #a39e9d;
    background-color: transparent;
    opacity: 1;
  }

  .dbrace-moto-finder__field {
    position: relative;
  }

  .dbrace-moto-finder__field-caret {
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 1;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .dbrace-moto-finder__field-caret--disabled {
    display: none;
  }

  .dbrace-moto-finder select:disabled~.dbrace-moto-finder__field-caret--enabled {
    display: none;
  }

  .dbrace-moto-finder select:disabled~.dbrace-moto-finder__field-caret--disabled {
    display: block;
  }

  .dbrace-moto-finder__submit {
    margin: 0;
    border: 1px solid #8b2218;
    border-radius: 8px;
    padding: 8px 12px;
    color: #8b2218;
    background: transparent;
    line-height: 18px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .dbrace-moto-finder__submit-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .dbrace-moto-finder__submit:hover:not(:disabled),
  .dbrace-moto-finder__submit:active:not(:disabled) {
    color: var(--dbrace-finder-white);
    background: #8b2218;
  }

  .dbrace-moto-finder__submit:disabled {
    border-color: #a39e9d;
    color: #a39e9d;
    background: transparent;
  }

  .dbrace-moto-finder__status {
    min-height: 0;
    position: absolute;
    right: 20px;
    bottom: calc(100% + 8px);
    margin: 0;
    border-radius: 4px;
    padding: 5px 8px;
    color: var(--dbrace-finder-ink);
    background: var(--dbrace-finder-white);
  }

  .dbrace-moto-finder__status:empty {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .dbrace-moto-finder {
    width: calc(100vw - 48px);
  }

  .dbrace-moto-finder__content {
    grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .dbrace-moto-finder *,
  .dbrace-moto-finder *::before,
  .dbrace-moto-finder *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}