@import url("../components/point-wallet.css");

/* Scoped to the point routes; the existing shell and other pages stay intact. */
.point-page { display: grid; gap: 16px; min-width: 0; }
.point-page-heading h1 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 800; color: var(--mak-ink); }
.point-page-heading p { margin: 5px 0 0; font-size: 12px; line-height: 1.65; color: var(--mak-muted); }
.point-panel { padding: 18px; min-width: 0; box-shadow: var(--shadow-xs); }
.point-panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.point-panel-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--mak-green-soft); color: var(--mak-green-dark); font-size: 18px; }
.point-panel h2 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 800; }
.point-panel-heading p { margin: 3px 0 0; font-size: 11px; color: var(--mak-muted); }
.point-form { display: grid; gap: 10px; }
.point-form label { margin: 0; font-size: 12px; font-weight: 700; color: var(--mak-ink-2); }
.point-form .ui-input { min-height: 46px; font-size: 14px; padding: 12px; }
.point-form .ui-input:disabled { background: var(--mak-paper-subtle); color: var(--mak-muted); }
.point-action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 4px; padding: 12px; border: 1px solid var(--mak-green-dark); border-radius: 10px; background: var(--mak-green-dark); color: #fff; font-size: 13px; line-height: 1.5; font-weight: 700; text-align: center; }
.point-action:hover:not(:disabled) { background: var(--mak-deep-3); }
.point-action:disabled { background: #e7eee9; border-color: #d9e4dc; color: #607568; cursor: not-allowed; }
.point-action:focus-visible, .point-history-link:focus-visible { outline: 3px solid var(--mak-gold); outline-offset: 3px; }
.point-note, .point-empty, .point-error { display: flex; align-items: start; gap: 8px; margin: 0; font-size: 12px; line-height: 1.65; }
.point-note { padding: 12px 14px; border-radius: 10px; background: var(--mak-gold-soft); color: var(--mak-ink-2); }
.point-note i, .point-empty i, .point-error i { flex: none; }
.point-empty { padding: 12px; border: 1px dashed var(--mak-line); border-radius: 10px; background: var(--mak-paper); color: var(--mak-muted); }
.point-error { padding: 12px; margin-bottom: 14px; border-radius: 10px; background: #fff0ee; color: #a43328; overflow-wrap: anywhere; }
.point-round-campaign { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--mak-muted); overflow-wrap: anywhere; }
.point-preview { margin: 2px 0 0; font-size: 11px; line-height: 1.6; color: var(--mak-muted); }
.point-history-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 16px; font-size: 12px; font-weight: 700; color: var(--mak-green-dark); }
.point-history-link .bi-chevron-right { margin-left: auto; }
.point-state { padding: 24px 18px; font-size: 13px; line-height: 1.65; text-align: center; }
.point-state > .bi { display: block; margin-bottom: 12px; font-size: 28px; color: var(--mak-green-dark); }
.point-state p { margin: 0 0 16px; }
.point-action { background: #087838; border-color: #087838; }
.point-action-outline { background: #fff; color: #087838; }
.point-action-outline:hover:not(:disabled), .point-action-outline:active:not(:disabled) { background: #e8f5ed; color: #087838; border-color: #087838; }
.draw-section { padding: 10px 8px 0; }
.draw-section h1 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.draw-quantity { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-bottom: 16px; font-size: 24px; font-weight: 800; }
.draw-quantity small { margin-left: 14px; font-size: 11px; font-weight: 400; color: #839086; }
.draw-details { display: grid; gap: 14px; padding: 16px 0 24px; font-size: 12px; }
.draw-details h2 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.draw-details div { display: flex; justify-content: space-between; gap: 12px; color: #7b8480; }
.draw-details strong { color: #24402c; font-size: 12px; }
.draw-details div:last-child { padding-top: 14px; border-top: 1px solid #edf0ec; color: #24402c; }
.ticket-summary-note { margin: 10px 0 0; color: #d0e7d9; font-size: 11px; }
.ticket-card { padding: 18px; border: 1px solid #e8ebe7; border-radius: 16px; box-shadow: none; }
.ticket-card > div { display: flex; align-items: center; gap: 8px; color: #087838; font-size: 14px; }
.ticket-card > div span { margin-left: auto; border-radius: 999px; padding: 5px 8px; background: #e8f4ed; font-size: 9px; }
.ticket-card p { margin: 12px 0 8px; font-size: 12px; }
.ticket-card small { display: block; margin-top: 5px; color: #879188; font-size: 10px; overflow-wrap: anywhere; }
.ticket-code-text { font-family: monospace; font-size: 15px; font-weight: 800; letter-spacing: 0.5px; white-space: nowrap; color: #087838; }
@media (max-width: 359px) {
  .point-page-heading h1 { font-size: 20px; }
  .point-panel, .point-wallet { padding: 14px; }
  .point-wallet-badge { font-size: 9px; }
}
