/* Member shortcuts and coupon details. Loaded after the shared storefront styles. */
.mypage-identity { flex: 1; min-width: 0; }
.mypage-head { flex-wrap: nowrap; align-items: center; }
.mypage-head .m-name { overflow-wrap: anywhere; }
.profile-settings-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; align-self: center; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 1px solid #d3dccb; border-radius: 50%; background: #fff; color: var(--green-700); cursor: pointer; transition: border-color .18s, background .18s, transform .3s; }
.profile-settings-button:hover, .profile-settings-button[aria-expanded="true"] { border-color: var(--green-600); background: #f8faf5; }
.profile-settings-button[aria-expanded="true"] svg { transform: rotate(45deg); }
.profile-settings-button svg { transition: transform .3s; }
#mypage-tabs { scroll-margin-top: 145px; }
.profile-settings-button:focus-visible, .member-settings button:focus-visible, .profile-form input:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; }
.member-settings { margin-top: 24px; padding: 28px; border: 1px solid #d9dfce; border-radius: 18px; background: #fff; }
.settings-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.settings-heading h2 { margin: 6px 0; color: var(--green-800); font-size: 26px; line-height: 1.4; }
.settings-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.settings-heading > button { min-height: 44px; flex-shrink: 0; }
.settings-account-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; padding: 18px 20px; background: #f5f7f1; border-radius: 12px; }
.settings-account-info dt { color: var(--muted); font-size: 14px; }
.settings-account-info dd { margin: 5px 0 0; font-size: 17px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.settings-grid > * { min-width: 0; }
.settings-grid h3 { margin: 0 0 8px; font-size: 21px; color: var(--green-800); line-height: 1.45; }
.settings-description { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.settings-optional { color: var(--muted); font-size: 14px; font-weight: 400; }
.password-settings { padding-left: 32px; border-left: 1px solid #e2e7da; }
.password-unavailable { padding: 20px; border-radius: 12px; background: #f5f7f1; color: #465340; font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.profile-form { margin: 0; }
.profile-form label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 650; }
.profile-form input + label, .profile-form p + label { margin-top: 22px; }
.profile-form input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid #c9d1bd; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 17px; }
.profile-form input[aria-invalid="true"] { border-color: var(--danger); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.profile-actions .btn { min-height: 46px; padding: 10px 18px; font-size: 16px; white-space: nowrap; }
.profile-help, .profile-error, .profile-status { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.profile-help { color: var(--muted); }
.profile-error { color: var(--danger); }
.profile-status { color: var(--green-700); }
.profile-error:empty, .profile-status:empty { display: none; }
.profile-form [disabled] { opacity: .65; cursor: wait; }
.mp-summary .mp-card { min-width: 0; appearance: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .18s, background .18s; }
.mp-summary .mp-card:hover, .mp-summary .mp-card.is-active { border-color: var(--green-600); background: #f8faf5; }
.mp-summary .mp-card:focus-visible, .coupon-card:focus-visible, .coupon-dialog button:focus-visible, #mypage-tabs .tab-btn:focus-visible { outline: 3px solid var(--green-600); outline-offset: 4px; }
.mp-summary .mp-label, .mp-summary .mp-value, .mp-card-link { display: block; }
.mp-card-link { margin-top: 14px; font-size: 14px; color: var(--green-700); }
.mp-card-link span { margin-left: 4px; }
.member-table-caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-view-link, .order-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; font-size: 15px; }
.order-view-link { color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.order-actions > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 12px; margin-left: -12px; background: #d9dfd2; }
.order-toggle:focus-visible, .order-view-link:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }
.order-actions { white-space: nowrap; }
.order-inquiry-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--green-700); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.coupon-guide { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
button.coupon-card { display: block; width: 100%; min-width: 0; appearance: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .18s, background .18s; }
button.coupon-card:hover { border-color: var(--green-600); background: #fafbf7; }
button.coupon-card .coupon-top { flex-wrap: wrap; }
button.coupon-card .coupon-label, button.coupon-card .coupon-meta { display: block; overflow-wrap: anywhere; }
button.coupon-card .coupon-label { font-size: 18px; }
button.coupon-card.dead { opacity: 1; filter: none; background: #f5f6f2; }
button.coupon-card.dead .coupon-value { color: #6a7266; }
.coupon-card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--green-700); font-size: 15px; font-weight: 650; }
.coupon-card-link span { font-size: 20px; line-height: 1; }
.coupon-dialog { position: fixed; inset: 0; width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 90px #12251c33; overflow: auto; overscroll-behavior: contain; }
.coupon-dialog::backdrop { background: #14241ac2; }
.coupon-dialog-shell { display: flex; flex-direction: column; }
.coupon-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 0 28px; }
.coupon-dialog-header > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--green-700); }
.coupon-dialog-close { appearance: none; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f2f5ed; color: var(--green-800); font: inherit; font-size: 29px; line-height: 1; cursor: pointer; }
.coupon-dialog-body { padding: 10px 28px 0; }
.coupon-detail-value { margin: 0 0 6px; font-size: 36px; font-weight: 750; letter-spacing: -.05em; line-height: 1.25; color: var(--green-700); }
.coupon-dialog h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.coupon-detail-status { margin: 12px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.coupon-detail-conditions { margin: 0 0 26px; padding: 6px 18px; background: #f5f7f1; border-radius: 14px; }
.coupon-detail-conditions > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 12px 0; font-size: 16px; line-height: 1.65; }
.coupon-detail-conditions > div + div { border-top: 1px solid #e4e9db; }
.coupon-detail-conditions dt { color: #65705f; }
.coupon-detail-conditions dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.coupon-detail-guide h3 { margin: 22px 0 8px; font-size: 18px; }
.coupon-detail-guide p, .coupon-detail-guide li { font-size: 16px; line-height: 1.8; color: #4e584b; word-break: keep-all; overflow-wrap: anywhere; }
.coupon-detail-guide ul { margin: 0; padding-left: 20px; }
.coupon-detail-guide li + li { margin-top: 8px; }
.coupon-dialog-actions { position: sticky; bottom: 0; padding: 20px 28px 24px; background: #fff; }
.coupon-dialog-actions .btn { width: 100%; }
body.coupon-dialog-open { overflow: hidden; }
body.review-dialog-open { overflow: hidden; }
#review-modal { overscroll-behavior: contain; }
#review-modal .modal { overscroll-behavior: contain; }
#review-modal .modal-actions .btn { min-height: 44px; }
#review-modal [disabled] { cursor: wait; opacity: .65; }
@media (max-width: 640px) {
  #mypage-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; border: 0; scroll-margin-top: 130px; }
  #mypage-tabs .tab-btn { min-width: 0; min-height: 48px; padding: 12px 8px; border: 1px solid #d7dfcf; border-radius: 9px; background: #fff; color: var(--muted); font-size: 16px; text-align: center; }
  #mypage-tabs .tab-btn.active { border-color: var(--green-700); background: var(--green-700); color: #fff; }
  #order-area .table-wrap, #points-area .table-wrap { overflow: visible; }
  .member-history-table, .member-history-table tbody { display: block; width: 100%; border: 0; overflow: visible; }
  .member-history-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .member-history-table tr { display: block; margin: 0 0 18px; padding: 18px 16px; border: 1px solid #dfe4d7; border-radius: 14px; background: #fff; }
  .member-history-table td, .member-history-table td:nth-child(n) { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; padding: 8px 0; border: 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
  .member-history-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 14px; font-weight: 400; }
  #order-area .member-history-table tr.order-row:hover td { background: transparent; }
  .member-history-table td.order-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; margin-top: 8px; border-top: 1px solid #e6eadf; }
  .order-actions .order-view-link, .order-actions .order-toggle { flex: 1; border: 1px solid #d9e1d1; border-radius: 8px; font-size: 15px; text-decoration: none; }
  .order-actions .order-inquiry-link { flex: 0 0 100%; justify-content: center; padding: 4px 0; }
  .order-actions > * + *::before { display: none; }
  .member-history-table tr.order-detail { margin-top: -9px; background: #f5f7f1; }
  .member-history-table tr.order-detail td { display: block; padding: 0; background: transparent; }
  .member-history-table .pt-order { display: block; font-size: 14px; overflow-wrap: anywhere; }
  .member-settings { padding: 22px 18px; border-radius: 14px; }
  .settings-heading { gap: 12px; }
  .settings-heading h2 { font-size: 23px; }
  .settings-heading > button { padding-inline: 14px; }
  .settings-account-info { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .password-settings { padding: 26px 0 0; border-left: 0; border-top: 1px solid #e2e7da; }
  .profile-actions .btn { flex: 1; }
  .mp-summary { gap: 8px; }
  .mp-summary .mp-card { padding: 18px 10px; }
  .mp-summary .mp-card .mp-label { font-size: 14px; letter-spacing: -.055em; white-space: nowrap; }
  .mp-summary .mp-card .mp-value { font-size: 24px; }
  .mp-card-link { font-size: 12px; letter-spacing: -.04em; }
  .mp-card-link span { margin-left: 0; }
  button.coupon-card { padding: 22px; }
  .coupon-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .coupon-dialog-header { padding-left: 20px; padding-right: 12px; }
  .coupon-dialog-body { padding-inline: 20px; }
  .coupon-detail-value { font-size: 32px; }
  .coupon-dialog h2 { font-size: 23px; }
  .coupon-detail-conditions { padding-inline: 14px; }
  .coupon-detail-conditions > div { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .coupon-dialog-actions { padding: 18px 20px max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .mp-summary .mp-card { padding-inline: 6px; }
  .mp-summary .mp-card .mp-label { font-size: 13px; }
  .mp-card-link span { display: none; }
}
/* 리뷰 쓰기 창: 사진을 붙이면 길어지므로 화면 안에서 스크롤 */
#review-modal .modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
