/* 고객 화면 전용. 직원 앱의 스타일·화면 상태를 공유하지 않습니다. */
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif; color: #23362d; background: #f5f7f2; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible { outline: 3px solid #b0cba8; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.customer-shell { max-width: 740px; margin: 0 auto; padding: 48px 24px 28px; }
.customer-card { background: #fff; border: 1px solid #e2e8dd; border-radius: 28px; padding: 38px; box-shadow: 0 14px 40px rgba(30, 62, 43, .05); }
.customer-heading { text-align: center; margin-bottom: 28px; }
.brand-mark { width: 54px; height: 54px; display: block; margin: 0 auto 15px; }
.page-eyebrow { font-size: 11px; letter-spacing: .16em; color: #69816b; font-weight: 600; }
.customer-heading h1 { color: #174b3b; font-size: 30px; line-height: 1.3; letter-spacing: -.05em; margin: 8px 0; }
.customer-heading p { color: #657265; font-size: 15px; margin: 0; }
.customer-search { display: flex; gap: 10px; }
.customer-input-wrap { position: relative; flex: 1; min-width: 0; }
.customer-search input { width: 100%; height: 58px; border: 1px solid #cddbc7; border-radius: 12px; background: #fafbf8; padding: 14px 47px 14px 17px; color: #213f30; font-size: 18px; font-weight: 500; }
.customer-search input::placeholder { color: #899487; font-size: 16px; font-weight: 400; }
.customer-search input:focus { border-color: #739566; outline-color: #b0cba8; background: #fff; }
.customer-clear { position: absolute; right: 6px; top: 7px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; color: #6d806b; background: transparent; font-size: 27px; line-height: 1; }
.customer-clear:hover { background: #edf2e8; }
.btn { min-height: 58px; padding: 12px 20px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.btn-primary { color: #fff; background: #174b3b; }
.btn-primary:hover:not(:disabled) { background: #103f30; }
.btn[aria-busy="true"]::before { content: ""; display: inline-block; vertical-align: -2px; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; margin-right: 8px; animation: customer-spin .8s linear infinite; }
@keyframes customer-spin { to { transform: rotate(360deg); } }
.customer-lock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #6d7d6c; margin: 14px 0 0; }
.customer-lock svg { width: 15px; height: 15px; flex: none; }
.customer-message { font-size: 14px; color: #985d29; margin: 16px 0 0; }
.customer-message:empty { margin: 0; }
.customer-result-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; margin-bottom: 10px; color: #697969; font-size: 12px; }
.customer-refresh { min-height: 40px; padding: 8px 12px; border: 1px solid #d9e2d3; border-radius: 9px; background: #fff; color: #315d42; font-size: 13px; font-weight: 600; white-space: nowrap; }
.customer-refresh:hover { background: #f2f6ed; }
.gift-card { position: relative; overflow: hidden; border-radius: 20px; background: #174b3b; color: #fff; padding: 25px 27px 22px; }
.giftcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 26px; }
.giftcard-brand { font-weight: 700; font-size: 16px; }
.giftcard-top > span { font-size: 10px; letter-spacing: .14em; color: #c7d9c7; }
.balance-caption { color: #c7d9c7; font-size: 14px; }
.balance-amount { overflow-wrap: anywhere; font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 5px 0 18px; }
.balance-amount span { font-size: 19px; font-weight: 500; margin-left: 7px; }
.giftcard-bottom { display: flex; align-items: center; color: #d4e3d5; }
.card-number { font-size: 15px; letter-spacing: .11em; font-variant-numeric: tabular-nums; }
.customer-history { margin-top: 26px; }
.customer-history h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #244432; letter-spacing: -.03em; }
.transaction-row { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid #e8ece3; }
.tx-icon { display: flex; justify-content: center; align-items: center; flex: 0 0 34px; height: 34px; border-radius: 11px; color: #6c7867; background: #eef2e8; font-size: 22px; line-height: 1; }
.tx-icon.use { color: #a86c3e; background: #fcf1e5; }
.tx-icon.charge { color: #366445; background: #edf4e8; }
.tx-main { min-width: 0; flex: 1; }
.tx-title { color: #314a36; font-size: 14px; font-weight: 600; }
.tx-meta { color: #798572; font-size: 12px; margin-top: 4px; overflow-wrap: break-word; }
.tx-amount { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tx-amount strong { display: block; font-size: 16px; font-weight: 700; color: #41513c; }
.tx-amount.use strong { color: #a36b3d; }
.tx-amount.charge strong { color: #32613f; }
.tx-amount small { display: block; font-size: 11px; color: #7e8978; margin-top: 3px; }
.customer-date-note { color: #7b8674; font-size: 12px; margin: 16px 0 0; line-height: 1.7; }
.customer-footer { text-align: center; font-size: 11px; letter-spacing: .04em; color: #8a9484; padding-top: 24px; }
.customer-demo-banner { margin-bottom: 16px; padding: 12px 16px; border: 1px solid #e9d7b3; border-radius: 12px; background: #fff5e4; color: #8c6633; font-size: 13px; }
@media (max-width: 560px) {
  .customer-shell { padding: 18px 12px 24px; }
  .customer-card { padding: 25px 20px; border-radius: 22px; }
  .customer-heading { margin-bottom: 24px; }
  .customer-heading h1 { font-size: 27px; }
  .customer-search { flex-wrap: wrap; gap: 9px; }
  .customer-input-wrap, .customer-search .btn { width: 100%; flex-basis: 100%; }
  .customer-lock { font-size: 11px; }
  .gift-card { padding: 22px; }
  .balance-amount { font-size: 36px; }
  .transaction-row { gap: 9px; }
  .tx-amount strong { font-size: 15px; }
}
@media (max-width: 360px) {
  .customer-shell { padding-left: 8px; padding-right: 8px; }
  .customer-card { padding-left: 16px; padding-right: 16px; }
  .tx-icon { display: none; }
  .customer-lock { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::before { animation: none; }
}
[hidden] { display: none !important; }
