:root {
  --bg: #f7f6f2;
  --ink: #121212;
  --muted: #6e6b63;
  --accent: #f55d3e;
  --accent-dark: #c84930;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(18, 18, 18, 0.08);
  --radius: 20px;
  --max-width: 1024px;
  font-family: "Sora", "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #fff4ec 0%, #f7f6f2 50%, #f0efe9 100%);
  color: var(--ink);
}

.app {
  min-height: 100vh;
  padding: 20px;
}

body.with-total-bar {
  padding-bottom: 72px;
}

body.with-app-bar {
  padding-bottom: 76px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto 24px;
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-announcement {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 12px 18px;
  border: 1px solid rgba(231, 90, 42, 0.24);
  border-radius: 14px;
  background: #fff;
  color: #b73b1f;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

.public-announcement a {
  color: inherit;
  font-weight: 700;
}

#viewCartTopBtn.has-items {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.icon-btn .icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-btn:hover {
  border-color: #b73b1f;
  background: #fff3ee;
  color: #b73b1f;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.logo-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(56%) sepia(91%) saturate(1328%) hue-rotate(333deg)
    brightness(99%) contrast(94%);
}

.brand-text strong {
  display: block;
  font-size: 1.2rem;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card {
  max-width: 640px;
  margin: 0 auto;
}

.auth-card h1 {
  margin-bottom: 8px;
}

.tab-row {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.tab {
  flex: 1;
  border: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f0efe9;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

.required-marker {
  color: #b42318;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e0d8;
  font-size: 0.95rem;
}

input.input-invalid,
select.input-invalid {
  border-color: #b42318;
  background: #fff4f2;
}

.primary-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(245, 93, 62, 0.35);
}

.primary-btn:hover {
  background: var(--accent-dark);
}

.ghost-btn {
  background: transparent;
  border: 1px solid #d7d3c6;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.auth-link-btn {
  width: 100%;
  margin-top: 10px;
}

.error {
  color: #b42318;
  margin-top: 12px;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.field-error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 0.8rem;
  min-height: 1em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.events {
  margin-top: 24px;
}

.membership-strip {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.membership-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.membership-strip-head h3 {
  margin: 0;
  font-size: 1rem;
}

.membership-tabs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.membership-tab-btn {
  border: 1px solid #ddd8cb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.membership-tab-btn strong {
  font-size: 0.9rem;
}

.membership-tab-btn span {
  font-size: 0.78rem;
  color: var(--muted);
}

.membership-tab-btn.selected {
  border-color: var(--accent);
  background: #fff3ee;
}

.membership-tab-btn.upgrade:hover {
  border-color: var(--accent-dark);
}

.membership-tab-btn.disabled {
  opacity: 0.75;
  cursor: default;
}

.membership-strip-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.events-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-card {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(18, 18, 18, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card h3 {
  margin: 0 0 6px;
}

.event-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.event-chip {
  background: #fff3ee;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-chip.registered {
  background: #e9f7ef;
  color: #127a3c;
}

.event-chip.in-cart {
  background: #fff7e6;
  color: #8a4b00;
}

.event-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-date {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  background: #fff1ea;
  color: #bb3f22;
  border: 1px solid #f2c3b2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.event-price-list {
  margin-top: 10px;
  border-top: 1px solid #eee8dc;
  padding-top: 8px;
  display: grid;
  gap: 4px;
}

.event-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #59554d;
}

.event-price-values {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.price-strike {
  text-decoration: line-through;
  color: #9a958a;
}

.price-emphasis {
  font-weight: 700;
  color: #ab351c;
}

.early-bird-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(90deg, #e85f31, #c6451f);
  border-radius: 999px;
  padding: 4px 10px;
}

.early-bird-chip.inline {
  margin-top: 6px;
}

.early-bird-chip.placeholder {
  visibility: hidden;
}

.drawer {
  background: #fff;
  margin-top: 24px;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-content {
  margin-top: 16px;
}

.pricing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f2ec;
  padding: 16px;
  border-radius: 16px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.panel {
  background: #ffffff;
  border: 1px solid #ece8dc;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 24px rgba(18, 18, 18, 0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.panel-head > h4,
.panel-head > div {
  margin: 0;
  margin-right: auto;
}

.panel-head .remove-btn {
  margin-top: 0;
}

.panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.membership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.membership-card {
  border: 1px solid #e4dfd1;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.membership-card.selected {
  border-color: var(--accent);
  background: #fff3ee;
  box-shadow: 0 12px 24px rgba(122, 30, 30, 0.2);
}

.membership-card .tag {
  align-self: flex-start;
}

.tag {
  background: #f3efe5;
  color: #5f5a51;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.membership-card.selected .tag {
  background: var(--accent);
  color: #fff;
}

.tag strong {
  color: #161514;
}

.membership-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.addon-card {
  border: 1px solid #e2e0d8;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.addon-card input {
  accent-color: var(--accent);
}

.addon-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.addon-card.muted {
  opacity: 0.6;
  cursor: default;
}

.total-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  z-index: 20;
}

.total-bar.hidden {
  display: none;
}

.app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #e2e0d8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  z-index: 19;
}

.app-bar.hidden {
  display: none;
}

.app-tab {
  border: 0;
  background: transparent;
  padding: 12px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.app-tab.active {
  color: var(--accent-dark);
  background: #fff3ee;
}

.app-tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.track-section {
  margin-top: 24px;
}

.total-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.total-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.total-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.total-amount-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.total-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.total-bar strong {
  font-size: 1.3rem;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.price-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.price-pill {
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #dcd8cd;
  color: #3a362f;
}

.price-pill.current {
  background: #fff;
  border-style: solid;
  opacity: 1;
}

.price-pill.unavailable {
  opacity: 0.45;
  border-style: dashed;
}

.price-pill.included-price {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.price-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.event-item-card {
  text-align: left;
}

.event-item-card.disabled {
  opacity: 0.6;
  cursor: default;
}

.event-item-card.included {
  border-color: var(--accent);
  background: #fff3ee;
}

.event-item-card .tag {
  margin-left: auto;
}

.rental-card.active {
  border-color: var(--accent);
  background: #fff3ee;
}

.rental-card.focused {
  box-shadow: 0 0 0 2px rgba(245, 93, 62, 0.2);
}

.rental-card select {
  border-color: #e2e0d8;
}

.rental-card.focused select {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 93, 62, 0.2);
}

.bike-card.active {
  border-color: var(--accent);
  background: #fff3ee;
}

.bike-card.focused {
  box-shadow: 0 0 0 2px rgba(245, 93, 62, 0.2);
}

.bike-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.remove-btn {
  margin-top: 12px;
  align-self: flex-start;
  border: 1px solid #d7d3c6;
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

.remove-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.none-selected-tag {
  background: #fff6df;
  border: 1px dashed #d39d4f;
  color: #7e5a24;
}

.title-hint {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.addon-collapse {
  margin-top: 16px;
}

.addon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.addon-head .ghost-btn {
  margin: 0;
}

.tires-panel {
  margin-top: 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.tire-summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-control button {
  border: 1px solid #d7d3c6;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
}

.qty-control span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.select-row {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.select-row label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.bill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7a1e1e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.option-group {
  margin-top: 20px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid #dcd8cd;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  background: #fff;
}

.chip.active {
  border-color: var(--accent);
  background: #fff3ee;
  color: var(--accent-dark);
}

.chip.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.info-chip-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.info-chip-btn:hover {
  color: var(--accent-dark);
}

.info-chip-btn--heading {
  flex: 0 0 auto;
  transform: translateY(-1px);
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e0d8;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff;
  cursor: pointer;
}

.option-card.active {
  border-color: var(--accent);
  background: #fff3ee;
}

/* Event/add-on cards carry richer content than simple row options. */
.event-item-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.event-item-card > div:first-child {
  min-width: 0;
}

.option-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-item-card strong {
  display: block;
}

.event-item-card p {
  margin: 4px 0 0;
}

.option-card.disabled,
.membership-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview {
  margin-top: 12px;
  background: #101010;
  color: #fff;
  padding: 16px;
  border-radius: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, 0.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  z-index: 40;
  overflow-y: auto;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.modal-actions .primary-btn,
.modal-actions .ghost-btn,
.modal-actions .danger-btn {
  width: auto;
  margin-top: 0;
}

.modal-actions-bottom {
  margin-top: 10px;
  position: relative;
  justify-content: flex-end;
  min-height: 44px;
}

.modal-actions-bottom #checkoutBtn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.checkout-modal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.checkout-modal-head h3 {
  margin: 0;
  text-align: center;
}

.checkout-modal-head .ghost-btn {
  white-space: nowrap;
}

.checkout-event-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.checkout-event-block {
  display: grid;
  gap: 6px;
}

.checkout-event-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.checkout-option-line {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.checkout-divider {
  height: 1px;
  background: #ece8dc;
  margin-top: 4px;
}

.modal-left-action {
  margin-right: auto;
}

.checkout-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e0d8;
  border-radius: 12px;
  padding: 10px 14px;
}

.checkout-total {
  background: #fff3ee;
  border-color: #f7c6b8;
}

.checkout-credits {
  display: grid;
  gap: 8px;
}

.checkout-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e0d8;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.payment-buttons {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.payment-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.checkout-policy-card {
  margin-top: 14px;
  border: 1px solid #e2e0d8;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.checkout-policy-toggle {
  justify-self: start;
}

.checkout-policy-panel {
  border: 1px solid #ece8dc;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fcfbf8;
}

.checkout-disclaimer {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-disclaimer input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.modal-compact {
  max-width: 520px;
}

.branded-modal h3 {
  color: #7a1e1e;
}

.branded-modal p {
  margin-top: 10px;
  color: #3c382f;
  line-height: 1.4;
}

.profile-modal {
  max-width: 520px;
}

.info-modal {
  max-width: 520px;
}

.info-modal-body {
  display: grid;
  gap: 10px;
  color: #3c382f;
  line-height: 1.5;
}

.info-modal-body p {
  margin: 0;
}

.info-helper-block {
  display: grid;
  gap: 8px;
}

.info-helper-block + .info-helper-block {
  padding-top: 12px;
  border-top: 1px solid #efebe0;
}

.profile-lines {
  display: grid;
  gap: 10px;
}

.profile-lines p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #efebe0;
  padding-bottom: 10px;
}

.profile-lines p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-lines span {
  text-align: right;
  font-weight: 600;
}

.profile-vouchers {
  display: grid;
  gap: 8px;
  border-top: 1px solid #efebe0;
  padding-top: 10px;
}

.profile-voucher-list {
  display: grid;
  gap: 6px;
}

.profile-voucher-item {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: #2e2a24;
}

.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-group {
  display: grid;
  gap: 10px;
}

.cart-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-group h5 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.cart-group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-action-btn {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.cart-action-btn.danger {
  color: #b42318;
  border-color: #e6b8b5;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e0d8;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff;
}

.cart-line strong {
  display: block;
}

.cart-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-weight: 700;
}

.cart-panel-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-panel-inner p {
  margin: 6px 0 0;
}

.cart-panel .primary-btn {
  width: auto;
  min-width: 180px;
}

.cart-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
}

.cart-action-stack #addToCartBtn {
  align-self: flex-start;
}

.cart-secondary-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cart-action-stack #cancelEventBtn {
  align-self: flex-end;
}

.status-pill {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pill.registered {
  background: rgba(20, 120, 58, 0.25);
}

.event-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3ee;
  color: var(--accent-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-status.registered {
  background: #e9f7ef;
  color: #127a3c;
}

.danger-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  background: #b42318;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.danger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cancel-panel {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.cancel-card {
  border: 1px solid #e2e0d8;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff;
  display: grid;
  gap: 6px;
}

#cancelCreditValue {
  display: inline-flex;
  align-items: center;
  background: #fff3ee;
  color: #9b2f1a;
  border: 1px solid #f7c6b8;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
}

#cancelCreditValue.credit-zero {
  background: #fff6df;
  color: #7e5a24;
  border-color: #efd7ab;
}

.cancel-credit-helper {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cancel-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .drawer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
