/**
 * Book Client — plan picker + monthly/annual billing (doc-fill / portal).
 */
#docContent .line-items-fill--services,
#docContent .line-items-fill--services button,
#docContent .line-items-fill--services input {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.line-items-fill--services .li-services-panel {
  margin-top: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.line-items-fill--services .li-services-panel--commerce {
  border-color: #cbd5e1;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.1);
}

.line-items-fill--services .li-services-panel--commerce .li-services-panel__billing,
.line-items-fill--services .li-services-panel--commerce .li-services-panel__grid,
.line-items-fill--services .li-services-panel--commerce .line-items-totals--services {
  border-color: #e2e8f0;
}

.line-items-fill--services .li-services-panel--commerce .li-services-panel__billing {
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.line-items-fill--services .li-services-panel--commerce .line-items-totals--services {
  background: #f8fafc;
}

.line-items-fill--services .li-services-panel__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.line-items-fill--services .li-services-panel__hint {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.line-items-fill--services .li-service-selected-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 999px;
}

/* —— Billing cadence (inside plan panel)
   Segment grid top-aligns both choices; each opt uses a fixed row grid so headers line up on first paint. —— */
.line-items-fill--services .li-services-panel__billing,
.line-items-fill--services .li-saas-billing-choice--integrated {
  padding: 16px 20px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.line-items-fill--services .li-saas-billing-cadence {
  display: grid;
  gap: 12px;
}

.line-items-fill--services .li-saas-billing-cadence__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.line-items-fill--services .li-saas-billing-cadence__sub {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

.line-items-fill--services .li-saas-billing-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 6px;
  border-radius: 12px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.line-items-fill--services .li-saas-billing-segment__opt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-height: 112px;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 16px;
  padding-top: 28px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.line-items-fill--services .li-saas-billing-segment__opt:hover:not(:disabled) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.45);
}

.line-items-fill--services .li-saas-billing-segment__opt.is-selected {
  background: #fff;
  color: #0f172a;
  border-color: #2563eb;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.14);
}

.line-items-fill--services .li-saas-billing-segment__opt.is-selected[data-billing-interval="annual"] {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
  color: #5b21b6;
  border-color: #7c3aed;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.16);
}

.line-items-fill--services .li-saas-billing-segment__name {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.line-items-fill--services .li-saas-billing-segment__quote {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.line-items-fill--services .li-saas-billing-segment__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin-top: 0;
  min-height: 1.35rem;
}

.line-items-fill--services .li-saas-billing-segment__due-label {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.line-items-fill--services .li-saas-billing-segment__due-amt {
  display: block;
  width: 100%;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0f172a;
}

.line-items-fill--services .li-saas-billing-segment__due-unit {
  display: block;
  width: 100%;
  margin-top: -4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
}

.line-items-fill--services .li-saas-billing-segment__opt.is-selected .li-saas-billing-segment__due-amt {
  color: #0f172a;
}

.line-items-fill--services .li-saas-billing-segment__opt.is-selected[data-billing-interval="annual"] .li-saas-billing-segment__due-amt {
  color: #5b21b6;
}

.line-items-fill--services .li-saas-billing-segment__eff {
  display: block;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.line-items-fill--services .li-saas-billing-segment__eff--spacer {
  visibility: hidden;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.line-items-fill--services .li-saas-billing-segment__opt.is-selected .li-saas-billing-segment__eff {
  color: #7c3aed;
}

.line-items-fill--services .li-saas-billing-segment__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 6px;
  border-radius: 4px;
}

.line-items-fill--services .li-saas-due-today {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.line-items-fill--services .li-saas-due-today--muted {
  background: #fff;
  border-style: dashed;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.line-items-fill--services .li-saas-due-today__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.line-items-fill--services .li-saas-due-today__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.35;
  max-width: 11rem;
}

.line-items-fill--services .li-saas-due-today__caption {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

.line-items-fill--services .li-saas-due-today__amount {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #047857;
  line-height: 1;
}

.line-items-fill--services .li-saas-due-today__parts {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 4px;
}

.line-items-fill--services .li-saas-due-today__part {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}

.line-items-fill--services .li-saas-due-today__part strong {
  font-weight: 700;
  color: #0f172a;
}

/* —— Plan cards —— */
.line-items-fill--services .li-services-panel__grid {
  display: grid;
  gap: 12px;
  padding: 16px 20px 18px;
  min-width: 0;
}

.line-items-fill--services .li-service-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.line-items-fill--services .li-service-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.line-items-fill--services .li-service-card.is-selected {
  border: 2px solid #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 55%);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.line-items-fill--services .li-service-card__head {
  display: grid;
  gap: 6px;
}

.line-items-fill--services .li-service-card__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.line-items-fill--services .li-service-card__detail {
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

.line-items-fill--services .li-service-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.line-items-fill--services .li-service-card__meta {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.line-items-fill--services .li-service-card__meta strong {
  color: #0f172a;
  font-weight: 800;
}

.line-items-fill--services .li-service-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1;
  text-align: right;
}

.line-items-fill--services .li-service-card__price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
}

.line-items-fill--services .li-service-card__due-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.line-items-fill--services .li-service-card__due-amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #047857;
  line-height: 1;
}

.line-items-fill--services .li-service-card__actions {
  display: flex;
  justify-content: flex-end;
}

.line-items-fill--services .li-service-select-btn {
  min-width: 108px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.line-items-fill--services .li-service-select-btn:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.line-items-fill--services .li-service-card.is-selected .li-service-select-btn {
  background: #fff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.line-items-fill--services .li-service-select-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* Selection summary — commerce cluster footer */
.line-items-fill--services .line-items-totals--services {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.line-items-fill--services .line-items-totals-heading {
  padding: 14px 20px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.line-items-fill--services .line-items-totals--services .line-items-totals-row {
  padding: 10px 20px;
  font-size: 14px;
}

.line-items-fill--services .line-items-totals--services .line-items-totals-row:first-of-type {
  padding-top: 10px;
}

.line-items-fill--services .line-items-totals--services .line-items-totals-row--grand {
  padding: 12px 20px 16px;
  margin-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.line-items-fill--services .line-items-totals--services .line-items-totals-row--grand .line-items-totals-value {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.line-items-fill--services .line-items-totals-unit {
  margin-left: 3px;
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}

.line-items-fill--services .line-items-totals-hint {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .line-items-fill--services .li-saas-billing-segment {
    grid-template-columns: 1fr;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
  }

  .line-items-fill--services .li-saas-billing-segment__opt {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
  }

  .line-items-fill--services .li-saas-billing-segment__opt.is-selected {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  }

  .line-items-fill--services .li-saas-billing-segment__opt.is-selected[data-billing-interval="monthly"] {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }

  .line-items-fill--services .li-services-panel__grid {
    grid-template-columns: 1fr !important;
  }

  .line-items-fill--services .li-service-card__price {
    font-size: 24px;
  }
}
