/* 자동 생성: node scripts/build-monotone-css.js — 직접 고치지 않는다. 원본: ../customer-returns.css */
.customer-return-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid #b9b9b9; border-radius: 8px; background: #fff; color: var(--green-700, #454545); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.customer-return-button:hover { background: #f3f3f3; }
.customer-return-button:focus-visible { outline: 3px solid var(--green-600, #666666); outline-offset: 3px; }
.order-return-status { margin: 8px 0 0; color: #454545; font-size: 15px; font-weight: 650; }
.status-chip.returned { background: #eeeeee; color: #666666; }
.order-actions .customer-return-button { margin-left: 8px; }
.order-actions .customer-return-button::before { display: none; }
.return-receipt-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 620px; margin: 24px auto 0; padding: 24px; border: 1px solid #e8e8e8; border-radius: 16px; }
.return-receipt-card h2 { font-size: 21px; margin-bottom: 8px; }
.return-receipt-card p { font-size: 16px; line-height: 1.7; }
.return-receipt-card .customer-return-button { flex-shrink: 0; }
.customer-return-dialog { width: min(600px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 0; border-radius: 20px; background: #fff; color: var(--ink, #303030); box-shadow: 0 24px 90px #1b1b1b33; overflow-y: auto; overscroll-behavior: contain; }
.customer-return-dialog::backdrop { background: #1b1b1bb8; }
body.return-dialog-open { overflow: hidden; }
.customer-return-heading { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px 16px; background: #fff; border-bottom: 1px solid #e8e8e8; }
.return-eyebrow { color: var(--muted, #666666); font-size: 14px; margin: 0 0 4px; }
.customer-return-heading h2 { font-size: 24px; line-height: 1.4; margin: 0; }
.return-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f3f3; color: #454545; font: inherit; font-size: 27px; cursor: pointer; }
.customer-return-body { padding: 22px 26px 26px; }
.return-order-number { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.return-items { margin-top: 8px; font-size: 15px; color: var(--muted, #666666); line-height: 1.7; overflow-wrap: anywhere; }
.return-message { margin: 20px 0; color: #454545; font-size: 16px; line-height: 1.7; }
.return-message:empty, .return-error:empty { display: none; }
.customer-return-dialog h3 { font-size: 20px; line-height: 1.5; margin: 0 0 10px; }
.customer-return-dialog h4 { font-size: 17px; line-height: 1.5; margin: 18px 0 8px; }
.customer-return-dialog .field { margin-top: 20px; }
.customer-return-dialog label { font-size: 16px; }
.customer-return-dialog select, .customer-return-dialog textarea { width: 100%; font-size: 17px; min-height: 50px; }
.customer-return-dialog textarea { resize: vertical; min-height: 126px; }
.customer-return-dialog [aria-invalid="true"] { border-color: #ad443a; outline-color: #ad443a; }
.return-help { margin: 8px 0 18px; color: var(--muted, #666666); font-size: 15px; line-height: 1.8; }
.return-address { margin: 0 0 14px; padding: 16px; border-radius: 10px; background: #f3f3f3; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.return-confirm { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-bottom: 16px; line-height: 1.7; cursor: pointer; }
.return-confirm input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; accent-color: #454545; }
.return-error { font-size: 16px; line-height: 1.7; color: #ad443a; margin: 16px 0 0; }
.return-secondary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.return-secondary-actions .btn { min-height: 46px; font-size: 16px; }
.return-contact { margin-top: 22px; font-size: 16px; }
.return-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.return-record { margin: 18px 0 24px; padding: 20px; border: 1px solid #e8e8e8; border-radius: 14px; }
.return-record > header { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; justify-content: space-between; }
.return-record > header span { font-size: 14px; color: var(--muted, #666666); }
.return-record dl { margin: 6px 0 0; }
.return-record dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #e8e8e8; font-size: 16px; line-height: 1.7; }
.return-record dt { color: var(--muted, #666666); }
.return-record dd { margin: 0; overflow-wrap: anywhere; }
.return-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.return-admin-message { padding: 16px; margin-top: 14px; border-radius: 10px; background: #f3f3f3; }
.return-admin-message h4 { margin: 0 0 8px; }
.return-admin-message p { font-size: 16px; line-height: 1.7; }
.return-events { margin-top: 16px; }
.return-events summary { min-height: 44px; padding: 10px 0; font-size: 16px; cursor: pointer; }
.return-events ol { padding-left: 20px; font-size: 15px; }
.return-events li { padding: 8px 0; line-height: 1.7; }
.return-events time { display: block; font-size: 14px; color: var(--muted, #666666); }
.customer-return-dialog [disabled] { opacity: .65; cursor: wait; }
.customer-return-dialog button:focus-visible, .customer-return-dialog select:focus-visible, .customer-return-dialog textarea:focus-visible, .customer-return-dialog input:focus-visible { outline: 3px solid #919191; outline-offset: 3px; }
@media (max-width: 640px) {
  .order-actions .customer-return-button { flex: 1 1 100%; margin: 0; }
  .return-receipt-card { display: block; padding: 22px 18px; }
  .return-receipt-card .customer-return-button { width: 100%; margin-top: 18px; font-size: 16px; }
  .customer-return-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .customer-return-heading { padding: 18px 18px 14px; }
  .customer-return-heading h2 { font-size: 21px; }
  .customer-return-body { padding: 18px 18px max(22px, env(safe-area-inset-bottom)); }
  .return-record { padding: 16px; }
  .return-record dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .return-secondary-actions .btn { flex: 1 1 100%; }
}

/* 주문취소 · 구매확정 (order-actions.js) */
.order-cancel-button { border-color: #e2b8ae; color: #a4432f; }
.order-cancel-button:hover { background: #fdf2ef; }
.order-confirm-button { border-color: var(--green-700, #454545); background: var(--green-700, #454545); color: #fff; }
.order-confirm-button:hover { background: #454545; }
.order-cancel-button:disabled, .order-confirm-button:disabled { opacity: .55; cursor: wait; }
.order-action-note { margin: 8px 0 0; color: #666666; font-size: 14px; line-height: 1.6; }
.order-actions-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 641px) {
  .member-history-table td[data-label="주문번호"], .member-history-table td[data-label="주문일"], .member-history-table td[data-label="결제금액"] { white-space: nowrap; }
}

.customer-return-button { white-space: normal; text-align: center; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.return-selection { border: 1px solid var(--mc-line-mid); padding: 12px; margin-bottom: 20px; }
.return-selection legend { font-size: 16px; font-weight: 700; }
.return-select-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mc-line-soft); }
.return-select-row:last-child { border-bottom: 0; }
.return-select-row label { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; min-height: 44px; }
.return-select-row small { display: block; color: var(--mc-ink-muted); font-size: 14px; }
.return-select-row select { min-height: 44px; font-size: 16px; width: 76px; }
.customer-return-dialog input:not([type=checkbox]), .customer-return-dialog select, .customer-return-dialog textarea { font-size: 16px; }
.customer-return-dialog .return-confirm { min-height: 44px; }
.customer-return-dialog #customer-return-submit { min-height: 50px; }
.return-message, .return-help, .return-confirm, .order-action-note,
.return-admin-message p, .customer-return-dialog h2,
.customer-return-dialog h3, .customer-return-dialog label { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .customer-return-button { font-size: 16px; }
  .order-action-note { font-size: 15px; line-height: 1.7; }
  .customer-return-heading { gap: 12px; }
  .customer-return-heading > div { min-width: 0; }
  .customer-return-body .btn { white-space: normal; word-break: keep-all; }
}
