/* Member pages are independent of the storefront marketing layout. */
.member-page { min-height: 100dvh; }
.member-shell { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; }
.member-header { height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.back-link { display: grid; place-items: center; width: 44px; height: 44px; font-size: 32px; font-weight: 300; margin-left: -12px; }
.home-link { font-size: 14px; font-weight: 700; letter-spacing: -.06em; }
.member-main { padding: 36px 24px 60px; }
.member-main h1 { font-size: 28px; line-height: 1.5; letter-spacing: -.06em; font-weight: 650; overflow-wrap: anywhere; }
.member-intro { margin-top: 12px; font-size: 14px; color: #777; line-height: 1.7; }
.member-brand { margin: 40px 0 32px; text-align: center; font-size: 48px; font-weight: 800; letter-spacing: -.08em; }
.member-brand span { display: block; font-size: 10px; letter-spacing: .24em; margin-top: 8px; font-weight: 500; }
.member-main .login-title { font-size: 20px; text-align: center; }
.login-main > .member-intro { text-align: center; }
.member-form { margin-top: 40px; }
.field { display: block; margin-top: 12px; }
.field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field input { display: block; width: 100%; min-height: 58px; padding: 17px 16px; border: 1px solid #e8e8e8; border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: #111; }
.field input::placeholder { color: #999; font-size: 14px; }
.field input:focus-visible { outline: 2px solid #222; outline-offset: 1px; }
.signup-phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}
.signup-phone-row .field {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}
.signup-phone-row input {
  min-width: 0;
}
.signup-phone-row .phone-verify-button {
  flex: 0 0 96px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  background: #f7f7f7;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.login-form .field input { border-width: 0 0 1px; }
.primary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 16px; margin-top: 24px; background: #111; color: #fff; font-size: 16px; font-weight: 600; }
.signup-link { display: block; padding: 20px 0; text-align: center; color: #888; font-size: 13px; }
.signup-link strong { color: #333; margin-left: 8px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.social-login { margin-top: 20px; }
.divider { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #aaa; margin-bottom: 24px; }
.divider::before, .divider::after { content: ''; height: 1px; background: #eee; flex: 1; }
.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 16px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.social-button + .social-button { margin-top: 12px; }
.kakao-button { background: #fee500; color: #191919; }
.naver-button { background: #03a94d; color: #fff; }
.social-icon {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  overflow: hidden;
}
.social-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none;
  transform: translate(-50%, -50%);
}
.kakao-button .social-icon img { width: 24px; height: 24px; }
.naver-button .social-icon img { width: 56px; height: 56px; }
.small-note { font-size: 12px; line-height: 1.7; color: #888; margin: 10px 0 18px; }
.feedback { padding: 14px 16px; margin-top: 20px; background: #fff3f0; color: #a43d2d; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.feedback ul { margin: 0; padding-left: 16px; }
.feedback.success { background: #f5f5f5; color: #333; }
.eyebrow { font-size: 11px; color: #888; letter-spacing: .15em; margin-bottom: 14px; }
.member-policies { margin: 26px 0; border-top: 1px solid #eee; }
.policy-item { padding: 6px 0; border-bottom: 1px solid #eee; }
.policy-consent { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; line-height: 1.6; cursor: pointer; }
.policy-consent input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #111; }
.policy-consent input:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.policy-consent-all { min-height: 64px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: 600; }
.policy-consent-all input { width: 20px; height: 20px; flex-basis: 20px; }
.policy-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.policy-row .policy-consent { flex: 1; min-width: 0; }
.policy-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; color: #888; }
.policy-toggle span { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.policy-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.policy-content {
  padding: 10px 0 12px 30px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.policy-content p + p {
  margin-top: 10px;
}
.policy-content a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.consent-details {
  margin: 0 0 12px;
}
.consent-details > div + div {
  margin-top: 12px;
}
.consent-details dt {
  font-weight: 600;
  color: #222;
}
.consent-details dd {
  margin: 4px 0 0;
}
.consent-details strong {
  font-size: 14px;
  color: #111;
}
.marketing-receipt {
  margin: 20px 0;
  padding: 18px;
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.marketing-receipt h2 {
  margin: 0 0 12px;
  font-size: 15px;
}
.member-info { margin: 40px 0; border-top: 1px solid #111; }
.member-info > div { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.member-info dt { color: #888; flex: 0 0 90px; }
.member-info dd { margin: 0; flex: 1; overflow-wrap: anywhere; }
.member-info small { display: inline-block; margin-left: 8px; color: #999; font-size: 11px; }
.account-links a, .account-links button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 70px; border-bottom: 1px solid #eee; font-size: 19px; font-weight: 600; text-align: left; }
.account-links button:disabled { color: #777; cursor: default; }
.profile-edit-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 8px; color: #777; font-size: 14px; }
.account-summary { margin: 30px 0 16px; }
.coupon-summary { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 64px; padding: 18px; background: #111; color: #fff; text-align: left; font-size: 15px; }
.coupon-summary:disabled { cursor: default; }
.coupon-summary small { color: #bbb; font-size: 12px; }
.order-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 0 0; padding: 24px 4px; background: #f7f7f7; text-align: center; }
.order-stages dt { color: #777; font-size: 11px; }
.order-stages dd { margin: 12px 0 0; font-size: 24px; font-weight: 600; }
.account-summary > .small-note { margin: 10px 0 0; font-size: 11px; }
.password-form h2 { font-size: 20px; font-weight: 600; }
.password-form .field > span { position: static; width: auto; height: auto; clip-path: none; display: block; margin: 18px 0 8px; font-size: 13px; color: #666; }
.account-links small { font-size: 12px; color: #999; font-weight: 400; margin-left: 8px; }
.logout-button { min-height: 44px; padding: 12px 0; margin-top: 30px; color: #888; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { padding: 64px 0; text-align: center; }
.empty-icon { display: block; font-size: 32px; color: #bbb; margin-bottom: 24px; }
.empty-state h2 { font-size: 17px; font-weight: 500; }
.empty-state p { margin-top: 14px; font-size: 14px; line-height: 1.8; color: #888; }
@media (max-width: 360px) {
  .member-header { padding-inline: 20px; }
  .member-main { padding-inline: 20px; }
  .member-main h1 { font-size: 25px; }
  .member-brand { font-size: 42px; margin-top: 20px; }
  .member-info > div { gap: 10px; font-size: 13px; }
  .member-info dt { flex-basis: 80px; }
}

@media (max-width: 420px) {
  .order-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
}

.home-link {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.home-link img {
  display: block;
  width: 119px;
  max-width: 100%;
  height: auto;
}
.member-brand img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.phone-verify-button:disabled { color: #999; cursor: default; }
.phone-verify-button:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.phone-verification-message { margin-top: 10px; color: #666; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.phone-verification-message:empty { display: none; }
.phone-verification-message.is-error { color: #a43d2d; }
.signup-phone-row[hidden] { display: none; }
