.sh-public-wrap {
    max-width: 980px;
    margin: 32px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1d2327;
}
.sh-public-wrap h1, .sh-public-wrap h2 { margin-top: 0; }
.sh-public-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 24px; margin-bottom: 16px;
}
.sh-public-form { display: grid; gap: 14px; max-width: 520px; }
.sh-public-form label { font-size: 13px; color: #475569; display: flex; flex-direction: column; gap: 4px; }
.sh-public-form input, .sh-public-form select {
    padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px;
}
.sh-public-form input:focus, .sh-public-form select:focus {
    outline: 2px solid #3b82f6; outline-offset: -1px; border-color: #3b82f6;
}
.sh-public-btn {
    background: #2563eb; color: #fff; border: none; padding: 12px 20px;
    border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 600;
}
.sh-public-btn:hover { background: #1d4ed8; }
.sh-public-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.sh-public-btn.secondary { background: #fff; color: #475569; border: 1px solid #cbd5e1; }
.sh-public-btn.secondary:hover { background: #f1f5f9; }
.sh-public-err { padding: 10px 14px; background: #fef2f2; color: #991b1b; border-radius: 6px; font-size: 13px; }
.sh-public-msg { padding: 10px 14px; background: #ecfdf5; color: #065f46; border-radius: 6px; font-size: 13px; }
.sh-public-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
    margin: 16px 0;
}
.sh-public-stat {
    background: #f8fafc; padding: 14px; border-radius: 6px;
}
.sh-public-stat .lbl { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.sh-public-stat .val { font-size: 22px; font-weight: 700; margin-top: 4px; }
.sh-public-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sh-public-table th, .sh-public-table td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid #f1f5f9;
}
.sh-public-table th { background: #f8fafc; color: #475569; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.sh-public-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.sh-public-pill.paid { background: #d1fae5; color: #065f46; }
.sh-public-pill.pending { background: #fef3c7; color: #92400e; }
.sh-public-pill.refunded { background: #fee2e2; color: #991b1b; }
.sh-public-pill.cancelled { background: #f1f5f9; color: #475569; }
.sh-public-pill.community { background: #dbeafe; color: #1e40af; }
.sh-public-pill.senior { background: #fef9c3; color: #854d0e; }
.sh-public-pill.student { background: #d1fae5; color: #065f46; }
.sh-public-pill.club_badminton { background: #fee2e2; color: #991b1b; }
.sh-public-pill.none { background: #f1f5f9; color: #475569; }

/* Customer-portal payment policy banner. Yellow box so customers can't miss
   the cancel-cutoff text on the Bookings tab. */
.sh-public-policy {
    background: #fefce8; border: 1px solid #fde68a; border-radius: 6px;
    padding: 12px 16px; font-size: 13px; color: #713f12;
}
.sh-public-policy ul { margin: 8px 0 0; padding-left: 20px; }
.sh-public-policy li { margin: 4px 0; }
.sh-public-tabpane { min-height: 300px; }
.sh-public-btn.small {
    padding: 6px 10px; font-size: 12px; font-weight: 600;
}

/* Re-use the schedule/POS modal styles inside the customer portal so the
   PayMethodModal renders identically wherever it's mounted. */
.sh-modal-back {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sh-modal {
    background: #fff; border-radius: 8px; padding: 24px; min-width: 320px;
    max-width: 480px; box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.sh-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.sh-segments { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-segments button {
    padding: 8px 14px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer;
    border-radius: 4px; font-size: 13px; color: #475569;
}
.sh-segments button.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.sh-segments button:disabled { opacity: .5; cursor: not-allowed; }

/* Profile-pane form layout: 2-col grid w/ a few full-width spans. */
.sh-pf-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sh-pf-grid label {
    font-size: 13px; color: #475569; display: flex; flex-direction: column; gap: 4px;
}
.sh-pf-grid label.full { grid-column: 1 / -1; }
.sh-pf-grid input, .sh-pf-grid textarea {
    padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 14px;
    font-family: inherit;
}
.sh-pf-grid input:disabled { background: #f8fafc; color: #64748b; }

.sh-public-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 16px; }
.sh-public-tabs button {
    background: transparent; border: none; padding: 10px 18px; cursor: pointer;
    font-size: 14px; color: #64748b; border-bottom: 2px solid transparent;
}
.sh-public-tabs button.on { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.sh-public-tabs button:hover:not(.on) { color: #1d4ed8; background: #f1f5f9; }

.sh-public-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px;
}
.sh-public-courseitem {
    border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px;
    background: #fff; cursor: pointer; transition: all 0.15s;
}
.sh-public-courseitem:hover { border-color: #3b82f6; background: #f8fafc; }
.sh-public-courseitem h3 { margin: 0 0 6px; font-size: 15px; }
.sh-public-courseitem .meta { font-size: 12px; color: #64748b; }
.sh-public-courseitem .price { font-size: 18px; font-weight: 700; color: #1d2327; margin-top: 8px; }

.sh-price-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.sh-price-row .strike { color: #94a3b8; text-decoration: line-through; }
.sh-price-row .save { color: #059669; font-weight: 600; }
.sh-price-row.total { font-size: 18px; font-weight: 700; padding-top: 12px; }

/* Step bar for /register */
.sh-stepbar {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 0;
}
.sh-stepbar .sep {
  flex: 1; height: 2px; background: #e2e8f0;
}
.sh-step {
  display: flex; align-items: center; gap: 8px;
  color: #94a3b8; font-size: 13px;
}
.sh-step.on .sh-step-num { background: #2563eb; color: #fff; border-color: #2563eb; }
.sh-step.on .sh-step-lbl { color: #1d2327; font-weight: 600; }
.sh-step.done .sh-step-num { background: #10b981; color: #fff; border-color: #10b981; }
.sh-step.done .sh-step-lbl { color: #475569; }
.sh-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #cbd5e1; background: #fff;
  font-weight: 600;
}
