.customer-dialog {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid #ddd6ca; border-radius: 20px;
  background: #fffdf8; color: #22251f; margin: auto;
  box-shadow: 0 24px 80px #0003; font: inherit;
}
.customer-dialog[open] { display: flex; flex-direction: column; }
.customer-dialog::backdrop { background: #17201699; backdrop-filter: blur(3px); }
.customer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid #e6e0d4; }
.customer-head h2 { font-size: 22px; margin: 0; }
.customer-head .round-btn { flex-shrink: 0; font: inherit; font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #b4b5aa; background: transparent; color: inherit; cursor: pointer; }
.customer-body .notice { padding: 14px; border-radius: 10px; background: #efeee5; line-height: 1.6; }
.customer-body .notice.err { color: #8e2922; background: #fff0ed; }
.customer-body { padding: 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.customer-body p { line-height: 1.6; margin: 0 0 18px; overflow-wrap: anywhere; }
.customer-body h3 { font-size: 18px; margin: 26px 0 14px; }
.customer-body .field { margin: 16px 0; }
.customer-body .field input { width: 100%; box-sizing: border-box; font: inherit; padding: 12px; border: 1px solid #b4b5aa; border-radius: 10px; background: #fff; color: #22251f; }
.customer-body .field label { display: block; margin-bottom: 6px; font-weight: 600; }
.customer-body .btn { white-space: normal; text-align: center; }
.customer-body .btn:disabled { opacity: .6; cursor: not-allowed; }
.customer-body .btn-block { width: 100%; }
.customer-or { text-align: center; padding-top: 20px; color: #565d51; }
.customer-hint, .customer-body small { color: #555f50; line-height: 1.6; }
.customer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.customer-stats > div { padding: 16px; background: #eeeee4; border-radius: 12px; }
.customer-stats b { display: block; font-size: 24px; }
.customer-stats span { display: block; font-size: 13px; line-height: 1.5; }
.customer-reward { border: 1px solid #c5cead; background: #f0f3e7; padding: 18px; border-radius: 14px; margin-top: 22px; }
.customer-reward h3 { margin-top: 0; }
.customer-reward progress { width: 100%; height: 12px; accent-color: #4c642c; margin-bottom: 12px; }
.customer-coupon { border: 1px dashed #718057; padding: 16px; border-radius: 12px; margin: 12px 0; }
.customer-coupon code, .customer-coupon small { display: block; overflow-wrap: anywhere; margin-top: 6px; }
.customer-order { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #dedfd3; text-decoration: none; color: inherit; }
.customer-order small { display: block; margin-top: 5px; }
.customer-order strong { flex-shrink: 0; }
.account-btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .account-btn span { display: none; }
  .account-btn { padding: 10px !important; }
  .customer-head, .customer-body { padding: 18px; }
  .customer-head h2 { font-size: 20px; }
}
