@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-smart-address {
  --yh-smart-address-parser-bg: var(--yh-color-primary-light-9);
  --yh-smart-address-parser-border: var(--yh-color-primary-light-5);
  --yh-smart-address-parser-radius: var(--yh-radius-base);
  --yh-smart-address-input-bg: var(--yh-fill-color-blank);
  --yh-smart-address-input-border: var(--yh-border-color);
  --yh-smart-address-input-focus-border: var(--yh-color-primary);
  --yh-smart-address-label-color: var(--yh-text-color-secondary);
  --yh-smart-address-label-width: 80px;
  --yh-smart-address-parse-btn-bg: var(--yh-color-primary);
  --yh-smart-address-tip-success: var(--yh-color-success);
  --yh-smart-address-tip-error: var(--yh-color-danger);
}
.yh-smart-address.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.yh-smart-address__parser {
  background: var(--yh-smart-address-parser-bg);
  border: 1px solid var(--yh-smart-address-parser-border);
  border-radius: var(--yh-smart-address-parser-radius);
  padding: 12px;
  margin-bottom: 14px;
}

.yh-smart-address__parser-input {
  width: 100%;
  border: 1px solid var(--yh-smart-address-input-border);
  border-radius: var(--yh-radius-small);
  padding: 8px 10px;
  font-size: var(--yh-font-size-sm);
  color: var(--yh-text-color-regular);
  background: var(--yh-smart-address-input-bg);
  resize: none;
  line-height: 1.6;
  box-sizing: border-box;
  transition: border-color var(--yh-transition-base);
}
.yh-smart-address__parser-input:focus {
  outline: none;
  border-color: var(--yh-smart-address-input-focus-border);
}
.yh-smart-address__parser-input::placeholder {
  color: var(--yh-text-color-placeholder);
}

.yh-smart-address__parser-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.yh-smart-address__parser-tip {
  font-size: var(--yh-font-size-sm);
}
.yh-smart-address__parser-tip.is-success {
  color: var(--yh-smart-address-tip-success);
}

.yh-smart-address__parser-tip.is-error {
  color: var(--yh-smart-address-tip-error);
}

.yh-smart-address__parse-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border: none;
  border-radius: var(--yh-radius-base);
  background: var(--yh-smart-address-parse-btn-bg);
  color: #fff;
  font-size: var(--yh-font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--yh-transition-base);
}
.yh-smart-address__parse-btn:hover:not(:disabled) {
  background: var(--yh-color-primary-dark-2);
}
.yh-smart-address__parse-btn:disabled {
  background: var(--yh-fill-color);
  color: var(--yh-text-color-disabled);
  cursor: not-allowed;
}

.yh-smart-address__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yh-smart-address__fields.is-top .yh-smart-address__field {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.yh-smart-address__fields.is-top .yh-smart-address__label {
  width: 100%;
  line-height: 1.4;
  margin-bottom: 2px;
}
.yh-smart-address__fields.is-top .yh-smart-address__input,
.yh-smart-address__fields.is-top .yh-smart-address__region-inputs {
  flex: none;
}

.yh-smart-address__field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.yh-smart-address__label {
  flex-shrink: 0;
  width: var(--yh-smart-address-label-width);
  font-size: var(--yh-font-size-sm);
  color: var(--yh-smart-address-label-color);
  line-height: 32px;
}
.yh-smart-address__label.is-required::before {
  content: "* ";
  color: var(--yh-color-danger);
}

.yh-smart-address__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--yh-smart-address-input-border);
  border-radius: var(--yh-radius-small);
  background: var(--yh-smart-address-input-bg);
  font-size: var(--yh-font-size-sm);
  color: var(--yh-text-color-regular);
  box-sizing: border-box;
  transition: border-color var(--yh-transition-base);
}
.yh-smart-address__input:focus {
  outline: none;
  border-color: var(--yh-smart-address-input-focus-border);
}
.yh-smart-address__input::placeholder {
  color: var(--yh-text-color-placeholder);
}

.yh-smart-address__region {
  align-items: flex-start;
}

.yh-smart-address__region-inputs {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.yh-smart-address__region-inputs .yh-smart-address__input,
.yh-smart-address__region-inputs .yh-select {
  flex: 1 !important;
  width: 0 !important;
  min-width: 0 !important;
}

html.dark .yh-smart-address {
  --yh-smart-address-parser-bg: rgba(64, 158, 255, 0.05) !important;
  --yh-smart-address-parser-border: rgba(64, 158, 255, 0.15) !important;
  --yh-smart-address-input-bg: rgba(255, 255, 255, 0.03) !important;
  --yh-smart-address-input-border: rgba(255, 255, 255, 0.08) !important;
  --yh-smart-address-label-color: var(--yh-text-color-secondary) !important;
}
html.dark .yh-smart-address .yh-smart-address__parser-input {
  color: var(--yh-text-color-regular) !important;
}
html.dark .yh-smart-address .yh-smart-address__parser-input::placeholder {
  color: var(--yh-text-color-placeholder) !important;
}
html.dark .yh-smart-address .yh-smart-address__input {
  color: var(--yh-text-color-primary) !important;
}
html.dark .yh-smart-address .yh-smart-address__input::placeholder {
  color: var(--yh-text-color-placeholder) !important;
}
html.dark .yh-smart-address .yh-smart-address__parse-btn:disabled {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--yh-text-color-disabled) !important;
}