/* Overrides legacy customer rules that use !important; isolated for rollback.
 * Customer design trial. Baseline 4f52b4e0. No checkout or visibility changes. */
:root {
  --bg: #f7f6f2;
  --bg2: #eeefe9;
  --bg3: #d8dfd8;
  --panel: #ffffff;
  --panel2: #f2f5f1;
  --ink: #19251f;
  --ink2: #37473e;
  --ink3: #59675e;
  --ink4: #647168;
  --accent: #2b4a4b;
  --accent-light: #c9d3cf;
  --cs-radius-field: 12px;
  --cs-radius-button: 14px;
  --cs-radius-card: 20px;
  --cs-radius-sheet: 24px;
  --cs-surface-stroke: #d8dfd8;
  --cs-surface-stroke-strong: #a7b7ab;
  --cs-shadow-rest: 0 4px 16px rgb(25 37 31 / 6%);
  --cs-shadow-lift: 0 8px 24px rgb(25 37 31 / 10%);
}
body { background-color: var(--bg) !important; color: var(--ink) !important; }
body .court-card, body .event-card {
  background: var(--panel) !important;
  border-color: var(--cs-surface-stroke) !important;
  border-radius: var(--cs-radius-card) !important;
  box-shadow: var(--cs-shadow-rest) !important;
}
body .court-card:hover, body .event-card:hover { box-shadow: var(--cs-shadow-lift) !important; }
body .court-card .card-img { outline: none !important; }
body .chip, body .date-item {
  border-radius: var(--cs-radius-button) !important;
  border-color: var(--cs-surface-stroke) !important;
  box-shadow: none !important;
  background: var(--panel) !important;
}
body .chip.active, body .date-item.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  box-shadow: 0 3px 8px rgb(23 76 67 / 12%) !important;
}
body .date-item.active :is(.date-day, .date-number, .date-month) { color: inherit !important; }
body .btn-primary, body .event-card button.event-join-btn {
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--cs-radius-button) !important;
  min-height: 44px;
  font-family: var(--font-sans) !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 12px rgb(23 76 67 / 12%) !important;
}
body .btn-primary:hover, body .event-card button.event-join-btn:hover { background: #103c34 !important; }
body :is(.btn-primary, .event-join-btn):disabled { opacity: .5; box-shadow: none !important; cursor: not-allowed; transform: none; }
body :is(.modal-card, .modal-sheet, .auth-card) {
  background: var(--panel) !important;
  border-color: var(--cs-surface-stroke) !important;
  border-radius: var(--cs-radius-sheet) !important;
  box-shadow: 0 16px 48px rgb(25 37 31 / 16%) !important;
}
body :is(.form-field input, .event-guest input, .event-guest select, .profile-edit-input) {
  background-color: var(--panel) !important;
  border-color: var(--cs-surface-stroke-strong) !important;
  border-radius: var(--cs-radius-field) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  min-height: 44px;
}
body input::placeholder, body textarea::placeholder { color: var(--ink3) !important; opacity: 1; }
body :is(.modal-header h2, .court-name, .event-title, .profile-name) {
  font-family: var(--font-sans) !important;
  letter-spacing: -.025em !important;
  line-height: 1.2 !important;
}
body :is(.confirm-note, .guest-note, .event-description, .profile-bio) {
  font-family: var(--font-sans) !important;
  line-height: 1.5 !important;
  color: var(--ink3) !important;
}
#event-detail-modal {
  --event-surface: var(--panel);
  --event-action: var(--accent);
  --event-subtle: var(--panel2);
  --event-secondary: var(--ink3);
  --event-raised: var(--cs-shadow-rest);
  --event-inset: none;
  --event-radius-panel: var(--cs-radius-card);
  --event-radius-control: var(--cs-radius-button);
}
#event-detail-modal .event-detail-sheet { border-radius: var(--cs-radius-sheet) !important; }
::selection { background: #d4e8de !important; color: #19251f !important; }
input, textarea { caret-color: var(--accent) !important; }
@media (prefers-reduced-motion: reduce) {
  body :is(.court-card, .event-card, .btn-primary, .chip, .date-item) { transition: none; animation: none; }
}
body .auth-tabs {
  background: var(--panel2) !important;
  border: 1px solid var(--cs-surface-stroke) !important;
  border-radius: var(--cs-radius-button) !important;
  box-shadow: none !important;
  padding: 4px;
}
body .auth-tab { background: transparent !important; color: var(--ink3) !important; box-shadow: none !important; border-radius: 10px !important; }
body .auth-tab.active { background: var(--accent-light) !important; color: var(--accent) !important; }
body :is(.form-field input, .event-guest input, .event-guest select) { box-shadow: none !important; }
body :is(.form-field input, .event-guest input, .event-guest select):focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgb(23 76 67 / 12%) !important;
}

/* Raised filter/date controls: a clear edge, shallow depth and press feedback. */
body :is(.chip, .date-item, .social-sport-chip, .social-date-item, .filter-pill) {
  border: 1px solid #b4c0b8 !important;
  border-radius: var(--cs-radius-button) !important;
  background: var(--panel) !important;
  color: var(--ink2) !important;
  box-shadow: 0 2px 4px rgb(25 37 31 / 10%), 0 5px 12px rgb(25 37 31 / 5%) !important;
  cursor: pointer;
}
body :is(.chip, .date-item, .social-sport-chip, .social-date-item, .filter-pill).active {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}
@media (hover: hover) {
  body :is(.chip, .date-item, .social-sport-chip, .social-date-item, .filter-pill):hover {
    box-shadow: 0 3px 7px rgb(25 37 31 / 14%) !important;
    border-color: var(--accent) !important;
  }
}
body :is(.chip, .date-item, .social-sport-chip, .social-date-item, .filter-pill):active {
  box-shadow: 0 1px 2px rgb(25 37 31 / 10%) !important;
}
body #sport-filter .chip.active, body #sport-filter .chip.all-sports-chip.active, body #date-strip .date-item.active {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
  box-shadow: 0 2px 4px rgb(25 37 31 / 10%), 0 5px 12px rgb(25 37 31 / 5%) !important;
}

/* Explicit foreground overrides for nested date labels and count badges. */
body #app-root .social-date-item.active :is(small, strong, .social-date-count),
body .date-item.active :is(.date-day, .date-number, .date-month) {
  color: #fff !important;
}
/* Brief tactile feedback, with no artificial delay or layout movement. */
@media (prefers-reduced-motion: no-preference) {
  body :is(.btn-primary, .btn-secondary, .chip, .date-item, .social-date-item, .social-sport-chip, .filter-pill) {
    transition: transform 150ms cubic-bezier(.2,0,0,1), opacity 150ms ease, background-color 150ms ease;
  }
  body :is(.btn-primary, .btn-secondary, .chip, .date-item, .social-date-item, .social-sport-chip, .filter-pill):active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
    transform: scale(.985);
  }
}

/* Payment surfaces: one calm form, a clear total, no decorative layers. */
body #confirm-modal .modal-sheet,
body #social-payment-modal .modal-card {
  border-radius: 24px !important;
  background: var(--panel) !important;
  border: 1px solid var(--bg3) !important;
  box-shadow: 0 16px 48px rgb(25 37 31 / 16%) !important;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
body :is(.secure-payment-zone, #event-payment-shell.ready) {
  border: 1px solid var(--bg3) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}
body .secure-payment-head {
  background: #f2f5f1 !important;
  border-bottom: 1px solid var(--bg3);
  padding: 16px 18px;
}
body .secure-payment-body { padding: 18px; }
body :is(.secure-payment-title, .secure-payment-lock) { color: var(--accent); }
body .secure-payment-reassurance { color: var(--ink3); font-size: 12px; line-height: 1.5; }
body #confirm-modal .booking-review-charge {
  border-radius: 16px;
  background: #f2f5f1;
  padding: 16px;
}
body #confirm-modal .confirm-actions { gap: 12px; padding: 16px 20px 20px; }
body #confirm-modal :is(.btn-confirm, .btn-cancel),
body #btn-event-join, body #btn-social-payment {
  min-height: 48px;
  border-radius: 14px !important;
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  font-weight: 600;
}
body #confirm-modal .btn-confirm { background: var(--accent) !important; color: #fff !important; }
body #confirm-modal .btn-cancel { background: #f2f5f1 !important; color: var(--ink2) !important; box-shadow: none !important; }
@media (max-width: 480px) {
  body .secure-payment-body { padding: 14px; }
  body #confirm-modal .confirm-actions { padding: 14px 16px 18px; }
}

/* Larger payment actions retain a distinguishable disabled state. */
body #confirm-modal .btn-confirm, body #btn-event-join, body #btn-social-payment {
  min-height: 56px !important;
  font-size: 17px !important;
  border-radius: 16px !important;
}
body :is(#btn-confirm, #btn-event-join, #btn-social-payment):not(:disabled) {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgb(25 37 31 / 16%) !important;
}
body :is(#btn-confirm, #btn-event-join, #btn-social-payment):disabled {
  box-shadow: none !important;
  cursor: wait;
}
