/* 자동 생성: node scripts/build-monotone-css.js — 직접 고치지 않는다. 원본: ../address.css */
/* Shared address search, saved addresses and mobile-friendly entry. */
.address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 12px; }
.address-actions .btn { min-height: 44px; font-size: 16px; }
.address-search-row { display: flex; align-items: stretch; gap: 10px; }
.address-search-row input { flex: 1; width: 100%; min-width: 0; max-width: 240px; }
.address-search-row .btn { flex: 0 0 auto; min-height: 48px; white-space: nowrap; font-size: 16px; }
.address-search-host { margin: 0 0 22px; border: 1px solid var(--line, #e8e8e8); border-radius: 12px; overflow: hidden; background: #fff; }
.address-search-host[hidden] { display: none; }
.address-search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--green-50, #f7f7f7); color: var(--green-800, #454545); font-size: 17px; font-weight: 700; }
.address-search-close, .address-search-retry { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line, #e8e8e8); border-radius: 8px; background: #fff; color: var(--ink, #303030); font: inherit; font-size: 16px; cursor: pointer; }
.address-search-close:hover, .address-search-retry:hover { border-color: var(--green-700, #454545); }
.address-search-frame { width: 100%; min-width: 0; background: #fff; }
.address-search-message, .address-search-help { padding: 14px; font-size: 15px; line-height: 1.65; color: var(--muted, #666666); }
.address-search-message.is-error { color: var(--danger, #d32e37); }
.address-search-retry { margin: 0 14px 12px; }
.address-search-help { margin: 0; border-top: 1px solid var(--line, #e8e8e8); }

.address-book-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.address-book-heading .section-head { margin-bottom: 20px; }
.address-book-heading > .btn { flex-shrink: 0; min-height: 48px; margin-top: 20px; }
.address-help { font-size: 16px; line-height: 1.7; color: var(--muted, #666666); margin: 12px 0 0; }
.address-status { margin-bottom: 18px; font-size: 16px; line-height: 1.6; }
.address-status:empty, .address-form-error:empty { display: none; }
.address-status.is-error { color: var(--danger, #d32e37); }
.address-status .btn { margin: 10px 10px 0 0; font-size: 16px; min-height: 44px; }
.address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.address-empty { grid-column: 1 / -1; border: 1px dashed var(--line, #e8e8e8); padding: 32px 24px; border-radius: 14px; text-align: center; }
.address-empty h3 { font-size: 22px; color: var(--green-800, #454545); }
.address-empty p { margin-top: 10px; color: var(--muted, #666666); font-size: 17px; line-height: 1.7; }
.address-card { min-width: 0; border: 1px solid var(--line, #e8e8e8); border-radius: 14px; padding: 24px; background: #fff; }
.address-card.is-default { border-color: var(--green-600, #666666); }
.address-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.address-card h3 { margin: 0; font-size: 20px; color: var(--green-800, #454545); overflow-wrap: anywhere; }
.address-default-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--green-700, #454545); background: var(--green-50, #f7f7f7); }
.address-recipient, .address-location { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.address-recipient { font-weight: 600; }
.address-recipient span { color: var(--muted, #666666); margin-left: 10px; font-weight: 400; }
.address-location { margin-top: 8px; }
.address-postal { color: var(--muted, #666666); }
.address-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.address-card-actions .btn { font-size: 15px; min-height: 44px; padding: 10px 15px; }
.address-card-actions .address-delete { color: var(--danger, #d32e37); }
.address-form { margin-top: 28px; border: 1px solid var(--line, #e8e8e8); border-radius: 16px; padding: 28px; background: var(--ivory, #f7f7f7); max-width: 760px; scroll-margin-top: 150px; }
.address-form h3 { font-size: 24px; color: var(--green-800, #454545); }
.address-form > .address-help { margin-bottom: 24px; }
.address-form .field label { display: block; font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.address-form .field input { font-size: 17px; min-height: 50px; background: #fff; }
.checkout-card input.address-search-value[readonly], .address-form .field input.address-search-value[readonly] { background: #f3f3f3; color: var(--ink, #303030); cursor: default; opacity: 1; -webkit-text-fill-color: var(--ink, #303030); }
.address-optional { font-size: 15px; color: var(--muted, #666666); font-weight: 400; }
.address-default-check { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.6; min-height: 44px; cursor: pointer; }
.address-default-check input { width: 20px; height: 20px; accent-color: var(--green-700, #454545); flex-shrink: 0; }
.address-form-error { margin-top: 14px; color: var(--danger, #d32e37); font-size: 16px; line-height: 1.6; }
.address-form-error a { text-decoration: underline; }
.address-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.address-form-actions .btn { min-height: 50px; font-size: 17px; }
.address-form button:disabled, .address-card button:disabled, #address-add:disabled { cursor: wait; opacity: .6; }
.address-form input:focus-visible, .address-form button:focus-visible, .address-card button:focus-visible, .address-search-host button:focus-visible { outline: 3px solid var(--green-600, #666666); outline-offset: 3px; }
@media (max-width: 640px) {
  #mypage-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0; }
  #mypage-tabs .tab-btn { flex: 0 0 auto; padding: 16px 14px; font-size: 16px; white-space: nowrap; }
  .address-book-heading { display: block; margin-bottom: 20px; }
  .address-book-heading > .btn { width: 100%; margin-top: 0; }
  .address-list { grid-template-columns: minmax(0, 1fr); }
  .address-card { padding: 22px 18px; }
  .address-card-actions .btn { flex: 1; }
  .address-form { padding: 24px 18px; }
  .address-form-actions .btn { flex: 1; }
  .address-search-row { gap: 8px; }
  .address-search-row .btn { padding: 12px 14px; }
  .address-search-toolbar { padding: 10px 12px; }
  .address-recipient span { display: block; margin-left: 0; }
}
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--green-700); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* Search first; selected addresses remain readable at any line length. */
.address-entry { min-width: 0; margin-bottom: 24px; }
.address-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.address-entry-label { font-size: 17px; font-weight: 700; }
.address-search-trigger { min-height: 48px; flex-shrink: 0; font-size: 16px; }
.address-selected { border: 1px solid var(--line, #e8e8e8); border-radius: 12px; padding: 18px; background: #fff; overflow-wrap: anywhere; }
.address-selected[data-filled="false"] { background: var(--green-50, #f7f7f7); border-style: dashed; }
.address-selected-postal { display: block; margin-bottom: 7px; color: var(--muted, #666666); font-size: 14px; }
.address-selected-main { margin: 0; color: var(--ink, #303030); font-size: 17px; font-weight: 600; line-height: 1.65; white-space: normal; }
.address-selected-empty { margin: 0; color: var(--muted, #666666); font-size: 16px; line-height: 1.6; }
.address-detail-field { margin-top: 16px; margin-bottom: 0; }
.address-field-help { margin: 8px 0 0; font-size: 14px; color: var(--muted, #666666); line-height: 1.6; }
.address-field-error { margin: 8px 0 0; color: var(--danger, #d32e37); font-size: 15px; line-height: 1.6; }
.address-field-error:empty { display: none; }
.address-form [aria-invalid="true"] { border-color: var(--danger, #d32e37); box-shadow: 0 0 0 1px var(--danger, #d32e37); }
.address-list[hidden], #address-add[hidden], #address-book-intro[hidden] { display: none !important; }
.address-form:not(.hidden) { margin-top: 0; }
.address-form .address-form-actions { border-top: 1px solid var(--line, #e8e8e8); padding-top: 22px; }
.address-form .address-form-actions .btn-primary { min-width: 180px; }

/* A top-layer dialog prevents the postcode service from shifting the form. */
.address-search-modal-open { overflow: hidden; }
dialog.address-search-host { position: fixed; inset: 0; width: calc(100% - 40px); max-width: 560px; height: min(760px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); padding: 0; margin: auto; border-radius: 18px; color: var(--ink, #303030); box-shadow: 0 24px 80px #0003; }
dialog.address-search-host[open] { display: flex; flex-direction: column; }
dialog.address-search-host::backdrop { background: #1b1b1b80; }
dialog.address-search-host .address-search-toolbar { flex: 0 0 auto; padding: 14px 18px; }
dialog.address-search-host .address-search-message { flex: 0 0 auto; margin: 0; padding: 12px 18px; }
dialog.address-search-host .address-search-frame { flex: 1 1 auto; min-height: 0; height: auto !important; overflow: auto; }
dialog.address-search-host .address-search-frame[hidden] { display: none; }
dialog.address-search-host .address-search-help { flex: 0 0 auto; padding: 12px 18px; font-size: 14px; }
dialog.address-search-host .address-search-retry { align-self: flex-start; }
@media (max-width: 640px) {
  .address-form { background: #fff; border: 0; border-radius: 0; padding: 0; max-width: none; }
  .address-entry-heading { gap: 8px; }
  .address-selected { padding: 16px; }
  .address-form .field-row { display: block; }
  .address-form .address-form-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; }
  .address-form .address-form-actions .btn-primary { min-width: 0; }
  dialog.address-search-host { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  dialog.address-search-host .address-search-toolbar { padding-top: max(12px, env(safe-area-inset-top)); }
  dialog.address-search-host .address-search-help { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* Long road names and instructions should break between Korean phrases. */
.address-help, .address-empty p, .address-selected-main,
.address-selected-empty, .address-field-help, .address-field-error,
.address-location, .address-search-message, .address-search-help { word-break: keep-all; overflow-wrap: anywhere; }
.address-search-trigger, .address-card-actions .btn,
.address-form-actions .btn { word-break: keep-all; }
.address-entry-heading > label, .address-entry-label { min-width: 0; }
@media (max-width: 640px) {
  .address-field-help, .address-selected-postal, dialog.address-search-host .address-search-help { font-size: 15px; }
  .address-entry-heading { align-items: center; }
  .address-entry-heading > label, .address-entry-label { line-height: 1.5; word-break: keep-all; }
  .address-card-actions .btn { flex: 1 1 90px; white-space: normal; }
  .address-form-actions .btn { white-space: normal; min-height: 50px; padding-inline: 10px; }
}
