/* ══════════════════════════════════════════════════════════════════════════════
   Billing & Onboarding — Plan Selection, POS Selection, Subscription, Upgrade
   Extracted from main.css
══════════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════════
   Onboarding Plan Selection  (Step 3 of onboarding wizard)
════════════════════════════════════════════════════════════════════════════ */

/* ── Progress bar ── */
.obp-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.obp-progress__line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
}
.obp-progress__line--done { background: #28a745; }

.obp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.obp-step__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  background: #dee2e6;
  color: #6c757d;
}
.obp-step--done  .obp-step__badge { background: #28a745; color: #fff; }
.obp-step--active .obp-step__badge { background: #f97316; color: #fff; }
.obp-step__badge--muted { background: #dee2e6; color: #6c757d; }
.obp-step__label {
  font-size: .72rem;
  margin-top: .4rem;
  color: #6c757d;
  white-space: nowrap;
}
.obp-step__label--muted { color: #adb5bd; }

/* ── Plan cards ──────────────────────────────────────────────────────────────
   Shared by the public pricing page, onboarding plan selection and the
   dashboard upgrade page (markup: billing/includes/plan_card.html). Every card
   renders the same rows in the same order, and the card is a flex column whose
   feature list grows, so prices, fees, lists and CTAs line up across a row. */
.obp-plan-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.75rem 1.25rem 1.25rem;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.obp-plan-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 0 .15rem rgba(249,115,22,.15);
}
.obp-plan-card--selected {
  border-color: #f97316;
  box-shadow: 0 0 0 .2rem rgba(249,115,22,.25);
}
.obp-plan-card--popular { }

/* Badge pinned to the top border — takes no space in the card body, so a
   badge never pushes one card's content below its neighbours'. */
.obp-plan-badge,
.obp-plan-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.obp-plan-badge--current { background: #198754; }

.obp-plan-card__header { margin-bottom: .75rem; }
.obp-plan-name { font-size: 1.35rem; font-weight: 700; margin-bottom: .15rem; }
.obp-plan-tagline { font-size: .82rem; color: #6c757d; margin-bottom: 0; min-height: 1.25rem; }

.obp-plan-price-block { margin-bottom: .75rem; }
.obp-plan-price-row { display: flex; align-items: baseline; gap: .3rem; }
.obp-plan-price { font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.obp-plan-price-unit { font-size: .875rem; color: #6c757d; }
.obp-plan-price-sub { font-size: .78rem; color: #6c757d; margin-top: .25rem; min-height: 1.1rem; }
.obp-plan-save { color: #15803d; font-weight: 600; }
.obp-plan-fee-line {
  margin-top: .6rem;
  font-size: .95rem;
  color: #212529;
}
.obp-plan-fee-line strong { color: #ea580c; }
.obp-plan-location { font-size: .8rem; color: #6c757d; margin-top: .2rem; }

.obp-plan-best-for {
  font-size: .78rem;
  font-weight: 600;
  color: #0f5132;
  background: #e8f5ee;
  border-radius: .375rem;
  padding: .3rem .55rem;
  margin-bottom: 1rem;
  /* Two lines tall on every card: the guidance wraps on narrower cards and
     a one-line box would otherwise lift that card's feature list. */
  min-height: 2.9rem;
  display: flex;
  align-items: center;
}
@media (max-width: 767.98px) { .obp-plan-best-for { min-height: 0; } }
.obp-plan-best-for:empty,
.obp-plan-best-for:not(:has(i)) { background: transparent; }

.obp-plan-features-wrap {
  flex: 1 1 auto;
  border-top: 1px solid #e9ecef;
  padding-top: .9rem;
  margin-bottom: 1.25rem;
}
.obp-plan-inherits { font-size: .8rem; font-weight: 600; color: #495057; margin-bottom: .35rem; }
.obp-plan-features { margin-bottom: 0; }
.obp-plan-feature-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .875rem;
  line-height: 1.35;
  padding: .3rem 0;
}
.obp-plan-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .05rem;
  border-radius: 50%;
  font-size: .75rem;
  line-height: 1;
  color: #198754;
  background: rgba(25, 135, 84, .14);
}
.obp-plan-feature-item--fee { font-weight: 600; }
.obp-plan-feature-item--fee .obp-plan-feature-icon { color: #ea580c; background: #fff7ed; }
.obp-plan-feature-icon--off { color: #adb5bd; background: #f1f3f5; }
.obp-plan-feature-item--off { color: #adb5bd; }
.obp-plan-feature-fee,
.obp-plan-feature-fee-catering {
  margin-left: .25rem;
  padding: .05rem .4rem;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: .375rem;
}
/* Catering fee tag: plain grey text, no pill */
.obp-plan-feature-fee-catering {
  padding: 0;
  font-weight: 400;
  color: #6c757d;
  background: none;
  border: 0;
}

.obp-plan-trial-note { font-size: .78rem; color: #15803d; text-align: center; margin: .5rem 0 0; min-height: 1.1rem; }

/* Monthly / yearly switch above the cards */
.obp-cycle-toggle { margin: 0 auto; }
.obp-cycle-save {
  font-size: .68rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border-radius: .25rem;
  padding: .05rem .35rem;
  margin-left: .25rem;
}

/* Public pricing page: cards are informational, not selectable. */
.pricing-plan-card { cursor: default; }
.pricing-plan-card:hover { border-color: #dee2e6; box-shadow: none; }
.pricing-plan-card.obp-plan-card--popular,
.pricing-plan-card.obp-plan-card--popular:hover {
  border-color: #f97316;
  box-shadow: 0 .5rem 1.5rem rgba(249, 115, 22, .15);
}

.obp-plan-upgrade-note { font-size: .82rem; color: #6c757d; }


/* ════════════════════════════════════════════════════════════════════════════
   Onboarding POS Selection  (Step 2 of onboarding wizard)
════════════════════════════════════════════════════════════════════════════ */

.pos-option-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  height: 100%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-align: center;
}
.pos-option-card:hover {
  border-color: #f97316;
  box-shadow: 0 0 0 .15rem rgba(249,115,22,.15);
  transform: translateY(-3px);
}
.pos-option-card--muted {
  border-color: #e9ecef;
  background: #f8f9fa;
}
.pos-option-card--muted:hover {
  border-color: #adb5bd;
  box-shadow: 0 0 0 .15rem rgba(108,117,125,.12);
}
.pos-option-card--disabled {
  cursor: not-allowed;
  border-color: #e9ecef;
  background: #f8f9fa;
  opacity: .65;
}
.pos-option-card--disabled:hover {
  border-color: #e9ecef;
  box-shadow: none;
  transform: none;
}
.pos-option-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.pos-option-badge-soon {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #6c757d;
  background: #e9ecef;
  border-radius: 999px;
  padding: .2rem .6rem;
  margin-bottom: .5rem;
}
.pos-option-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* ── Restaurant Dashboard — Subscription card ── */
.rdash-plan-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.rdash-plan-icon--free    { background: #f1f3f5; color: #6c757d; }
.rdash-plan-icon--plus    { background: #dbeafe; color: #1d4ed8; }
.rdash-plan-icon--pro     { background: #fef3c7; color: #b45309; }

.rdash-badge-pro {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.rdash-billing-meta {
  background: #f8f9fa;
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.rdash-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem 0;
}
.rdash-billing-row + .rdash-billing-row {
  border-top: 1px solid #e9ecef;
}
.rdash-status-badge {
  font-size: .7rem;
}
.rdash-upgrade-nudge {
  background: #fffbeb;
  border-color: #fde68a;
  font-size: .875rem;
}
.rdash-icon-md {
  font-size: 2rem;
}
.rdash-cancel-link {
  font-size: .8125rem;
  text-decoration: none;
  opacity: .65;
}
.rdash-cancel-link:hover {
  opacity: 1;
  color: #dc3545 !important;
}

/* ── Upgrade Plan page — billing cycle toggle ── */
.upg-cycle-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-weight: 500;
}
.upg-toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}
.upg-toggle-switch input { opacity: 0; width: 0; height: 0; }
.upg-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ced4da;
  border-radius: 1.5rem;
  transition: background .2s;
}
.upg-toggle-slider::before {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  left: .2rem;
  bottom: .2rem;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.upg-toggle-switch input:checked + .upg-toggle-slider          { background: #0d6efd; }
.upg-toggle-switch input:checked + .upg-toggle-slider::before  { transform: translateX(1.25rem); }
.upg-savings-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: .25rem;
}

/* ── Upgrade Plan page — current plan card state ── */
.upg-plan-card--current,
.upg-plan-card--current:hover {
  border: 2px solid #198754 !important;
  box-shadow: none;
  cursor: default;
}
.upg-current-badge {
  display: inline-block;
  background: #198754;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: .25rem;
  margin-bottom: .5rem;
}
.upg-portal-info {
  font-size: .875rem;
}

/* ── Cancel Subscription page ── */
.csub-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #fff3cd;
}
.csub-icon {
  font-size: 2rem;
}
.csub-period-notice {
  font-size: .9rem;
}


/* ── Pricing page ── */
.pricing-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
}
.pricing-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: .75rem; }
.pricing-hero p  { font-size: 1.1rem; color: #94a3b8; max-width: 560px; margin: 0 auto .75rem; }
.pricing-hero-badge { font-size: .82rem; color: #94a3b8; margin-top: 1.25rem; }
.pricing-hero-badge .bi { color: #22c55e; margin-right: .2rem; }

/* ── Pricing page — subscription plans grid ── */
.pricing-plans-section { padding: 3.5rem 1rem 2rem; background: #fff; }
.pricing-plans-container { max-width: 1020px; margin: 0 auto; }
.pricing-plan-card { cursor: default; }
.pricing-plan-note { font-size: .82rem; color: #64748b; }
.pricing-plan-note .bi { color: #f97316; }
.pricing-fee-choice-note {
  max-width: 720px; margin-left: auto; margin-right: auto;
  padding: .85rem 1.1rem; font-size: .9rem; color: #334155;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: .75rem;
}
.pricing-fee-choice-note .bi { color: #f97316; }

.pricing-section-label {
  text-align: center; font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #64748b; margin-bottom: 1.25rem;
}
.pricing-fee-section { background: #f8fafc; padding: 3.5rem 1rem; }
.pricing-fee-container { max-width: 600px; margin: 0 auto; }
.pricing-fee-card {
  background: #fff; border: 2px solid #e2e8f0; border-radius: 16px;
  padding: 2.5rem 2rem; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.pricing-fee-main { margin-bottom: 1rem; }
.pricing-fee-amount { font-size: 3rem; font-weight: 800; color: #0f172a; line-height: 1; }
.pricing-fee-currency { font-size: 1.5rem; vertical-align: super; }
.pricing-fee-plus { font-size: 2rem; color: #64748b; }
.pricing-fee-label { font-size: .95rem; color: #64748b; margin-top: .4rem; }
.pricing-fee-explain { font-size: .88rem; color: #64748b; max-width: 400px; margin: 0 auto; }
.pricing-promo-wrap { margin-top: 2rem; }
.pricing-promo-label { margin-bottom: 1rem; }
.pricing-promo-card {
  background: #fff7ed; border: 2px solid #fed7aa; border-radius: 12px;
  padding: 1.1rem 1.5rem; margin-bottom: .75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem;
}
.pricing-promo-badge {
  font-size: .72rem; font-weight: 700; background: #f97316;
  color: #fff; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap;
}
.pricing-promo-name { font-weight: 600; color: #0f172a; flex: 1; min-width: 140px; }
.pricing-promo-amount { font-size: 1.1rem; font-weight: 700; color: #ea580c; }
.pricing-promo-per { font-size: .8rem; color: #64748b; font-weight: 400; }
.pricing-promo-expires { font-size: .78rem; color: #92400e; width: 100%; }
.pricing-features-section { padding: 3.5rem 1rem; background: #fff; }
.pricing-features-container { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-features-heading {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: #0f172a; margin-bottom: .75rem;
}
.pricing-features-sub { color: #64748b; max-width: 520px; margin: 0 auto 2.5rem; }
.pricing-feature-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; text-align: left;
}
.pricing-feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #f8fafc; border-radius: 10px; padding: 1.1rem 1.25rem;
}
.pricing-feat-icon { font-size: 1.4rem; color: #f97316; flex-shrink: 0; margin-top: .05rem; }
.pricing-feat-detail { font-size: .82rem; color: #64748b; margin-top: .2rem; }
.pricing-how-section { padding: 3.5rem 1rem; background: #f8fafc; }
.pricing-how-container { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-how-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: .5rem; flex-wrap: wrap; margin-top: 2rem;
}
.pricing-how-step {
  background: #fff; border-radius: 12px; padding: 1.5rem 1.25rem;
  flex: 1; min-width: 200px; max-width: 260px; text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.pricing-how-num { font-size: 1.5rem; font-weight: 800; color: #f97316; margin-bottom: .5rem; }
.pricing-how-arrow { font-size: 1.5rem; color: #cbd5e1; align-self: center; flex-shrink: 0; }
.pricing-faq-section { padding: 3.5rem 1rem 4rem; background: #fff; }
.pricing-faq-container { max-width: 760px; margin: 0 auto; }
.pricing-faq-item { border-bottom: 1px solid #e2e8f0; }
.pricing-faq-q {
  font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  list-style: none; color: #0f172a; padding: 1.1rem 0;
}
.pricing-faq-q::-webkit-details-marker { display: none; }
.pricing-faq-chevron { color: #94a3b8; }
.pricing-faq-a { color: #475569; font-size: .92rem; line-height: 1.65; padding-bottom: 1rem; margin-bottom: 0; }
.pricing-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9; padding: 4rem 1rem; text-align: center;
}
.pricing-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: .75rem; }
.pricing-cta-inner p  { color: #94a3b8; margin-bottom: 2rem; font-size: 1.05rem; }
.pricing-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
