.q-address {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  font:
    400 14px/20px QuoterGeist,
    Arial,
    sans-serif;
  container-type: inline-size;
}
.q-address__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.q-address__row {
  display: flex;
  gap: 16px;
}
.q-address__field {
  flex: 1;
  min-width: 0;
}
.q-address__label {
  display: block;
  font-size: 13px;
  line-height: 19.5px;
  color: #4d4d4d;
  margin-bottom: 8px;
}
.q-address__input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: var(--ss-surface-light);
  color: #171717;
  font:
    400 14px/20px QuoterGeist,
    Arial,
    sans-serif;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  outline: none;
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.q-address__input:focus {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(0, 0, 0, 0.16);
}
.q-address__input[aria-invalid='true'] {
  box-shadow:
    0 0 0 1px #cb2a2f,
    0 0 0 4px #ffe6e6;
}
.q-address__input:disabled {
  background: #f2f2f2;
  color: #8f8f8f;
  cursor: not-allowed;
}
.q-address__error {
  margin: 8px 0 0;
  color: #cb2a2f;
  font-size: 13px;
  line-height: 20px;
}
.q-address__status {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.q-address__suggestions {
  position: fixed;
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 276px;
  overflow: auto;
  z-index: 300;
  background: var(--ss-surface-light);
  color: #171717;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 16px -4px rgba(0, 0, 0, 0.04),
    0 0 0 1px #fafafa;
  font:
    400 14px/20px QuoterGeist,
    Arial,
    sans-serif;
}
.q-address__suggestion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  scroll-margin: 8px;
}
.q-address__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.q-address__attribution {
  display: flex;
  justify-content: flex-end;
  margin: 4px -4px -4px;
  padding: 4px 8px 4px 12px;
  border-top: 1px solid var(--q-gray-400, #eaeaea);
  border-radius: 0 0 8px 8px;
  background: var(--q-background-200, #fafafa);
  color: #5e5e5e;
  font-size: 12px;
  line-height: 16px;
}
[data-theme='dark'] .q-address__attribution {
  border-color: var(--q-gray-400, #2e2e2e);
  background: var(--q-background-200, #000);
  color: #fff;
}
.q-address__suggestion[aria-selected='true'] {
  background: rgba(0, 0, 0, 0.03);
}
.q-address__suggestion-detail {
  font-size: 14px;
  line-height: 20px;
  color: #4d4d4d;
}
[data-theme='dark'] .q-address__input,
[data-theme='dark'] .q-address__suggestions {
  background: #0a0a0a;
  color: #ededed;
}
[data-theme='dark'] .q-address__input {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
[data-theme='dark'] .q-address__label,
[data-theme='dark'] .q-address__suggestion-detail {
  color: #a1a1a1;
}
[data-theme='dark'] .q-address__suggestion[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 639px) {
  .q-address__input {
    font-size: 16px;
  }
}
@container (max-width:319px) {
  .q-address__row {
    flex-direction: column;
  }
}

[data-theme='dark'] .q-address__input:focus {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.51),
    0 0 0 4px rgba(255, 255, 255, 0.24);
}
@media (max-width: 639px) {
  .q-address .q-combobox__input {
    font-size: 16px;
  }
}

.q-address__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  line-height: normal;
  color: #4d4d4d;
}
[data-theme='dark'] .q-address__empty {
  color: #a1a1a1;
}
[data-theme='dark'] .q-address__suggestions {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.145),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 8px 16px -4px rgba(0, 0, 0, 0.04),
    0 0 0 1px #000;
}

.q-address__status--visible {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  font-size: 13px;
  line-height: 20px;
  color: var(--q-gray-900);
}

.q-address__loading {
  gap: 8px;
}

[data-theme='dark'] .q-address__input[aria-invalid='true'] {
  box-shadow:
    0 0 0 1px #ff6166,
    0 0 0 4px #561a1e;
}
[data-theme='dark'] .q-address__error {
  color: #ff6166;
}

[data-theme='dark'] .q-address__input:disabled {
  background: #1a1a1a;
  color: #8f8f8f;
}

.q-address__select-frame {
  position: relative;
  display: flex;
  align-items: center;
}
.q-address__select-frame select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.q-address__select-arrow {
  position: absolute;
  right: 12px;
  display: inline-flex;
  pointer-events: none;
  color: #8f8f8f;
  transition: color 150ms ease-in;
}
.q-address__select-frame:hover .q-address__select-arrow {
  color: var(--q-gray-1000, #171717);
}
