/* 新增地址 · 复用 styles.css 色板 / 圆角，表单对齐 Figma 582:2424 */

.aa-phone {
  height: 812px;
  min-height: 0;
  max-height: min(812px, calc(100vh - 48px));
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.aa-phone .status-bar {
  flex: 0 0 auto;
}

.aa-head {
  flex: 0 0 auto;
}

.aa-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.aa-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aa-card {
  background: #fff;
  border-radius: 8px;
  padding: 0 14px;
}

.aa-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  border-bottom: 1px solid #f2f2f2;
}

.aa-card > .aa-row:last-child,
.aa-card > .aa-region-row:last-of-type {
  border-bottom: 0;
}

.aa-label {
  flex: 0 0 76px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.aa-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: #000;
  caret-color: #000;
}

.aa-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.aa-input:-webkit-autofill {
  -webkit-text-fill-color: #000;
}

.aa-textarea {
  height: auto;
  min-height: 78px;
  padding: 13px 0;
  resize: none;
}

.aa-detail-row {
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 0;
}

.aa-detail-row .aa-label {
  line-height: 20px;
  padding-top: 2px;
}

.aa-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
}

.aa-region-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.aa-locate {
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 13px;
  background: rgba(137, 248, 0, 0.18);
  color: #3f7a00;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.aa-locate:active {
  transform: scale(0.97);
}

.aa-locate:disabled {
  opacity: 0.6;
  cursor: default;
}

.aa-locate-tip {
  margin: -2px 0 8px;
  font-size: 11px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.35);
}

.aa-region-row {
  width: 100%;
  border: 0;
  border-top: 1px solid #f2f2f2;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.aa-region-row:disabled {
  opacity: 0.45;
  cursor: default;
}

.aa-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #000;
}

.aa-value.is-empty {
  color: rgba(0, 0, 0, 0.3);
}

.aa-chev {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.3);
}

.aa-switch-row {
  justify-content: space-between;
  border-bottom: 0;
}

.aa-switch-label {
  font-size: 14px;
  color: var(--ink);
}

.aa-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #d9dbdf;
  cursor: pointer;
  transition: background 0.18s ease;
}

.aa-switch i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.aa-switch.on {
  background: var(--brand);
}

.aa-switch.on i {
  transform: translateX(18px);
}

.aa-error {
  margin: 2px 4px 8px;
  font-size: 12px;
  line-height: 17px;
  color: var(--price-from);
}

.aa-submit {
  flex: 0 0 auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid #f2f2f2;
}

.aa-submit button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.aa-submit button:active {
  transform: scale(0.985);
}

.aa-submit button:disabled {
  opacity: 0.6;
  cursor: default;
}

.aa-mask[hidden],
.aa-sheet[hidden] {
  display: none;
}

.aa-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  animation: aa-fade 0.18s ease;
}

.aa-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  max-height: 65%;
  background: #fff;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  animation: aa-up 0.2s ease;
}

.aa-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #f2f2f2;
}

.aa-sheet-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.aa-sheet-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.aa-sheet-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.aa-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.aa-sheet-item.on {
  background: rgba(137, 248, 0, 0.14);
  color: #3f7a00;
  font-weight: 600;
}

.aa-sheet-item i {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

@keyframes aa-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes aa-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
