/* Halo design tokens from design-system.pen (Light) */
:root {
  --background: #ffffff;
  --foreground: #2a2933;
  --card: #ffffff;
  --card-foreground: #2a2933;
  --primary: #5749f4;
  --primary-foreground: #ffffff;
  --secondary: #d9d9db;
  --secondary-foreground: #2a2933;
  --muted: #f5f5f5;
  --muted-foreground: #616167;
  --accent: #f5f5f5;
  --accent-foreground: #2a2933;
  --destructive: #cc3314;
  --border: #c5c5cb;
  --input: #c5c5cb;
  --ring: #e1e2e5;
  --tile: #f5f5f5;
  --success: #a1e5a1;
  --success-fg: #003300;
  --info: #c9d6f0;
  --info-fg: #001133;

  --radius-ui: 12px;
  --radius-pill: 12px;
  --radius-m: 12px;
  --radius-l: 12px;
  --radius-xs: 6px;

  --font: "Inter", system-ui, sans-serif;
  --shadow-card: 0 10px 8.75px #0000000a;
  --max: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--foreground);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(87, 73, 244, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(87, 73, 244, 0.06), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, var(--background) 40%, #f7f7f8 100%);
  line-height: 1.5;
}

body :not(input):not(textarea):not(select) {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

.widget {
  width: min(100% - 32px, var(--max));
  margin: 32px auto 24px;
}

.widget.show-sticky {
  padding-bottom: 88px;
}

.widget-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 16px;
  max-width: 42ch;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-track {
  height: 16px;
  background: var(--secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.step-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.step-dots li {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
}

.step-dots li.active,
.step-dots li.done {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel,
.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

.panel {
  padding: clamp(24px, 4vw, 40px);
}

.panel-card {
  padding: clamp(20px, 3vw, 32px);
}

.panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-copy {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-span {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--foreground);
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  border-radius: var(--radius-m);
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(87, 73, 244, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}

.choice-group {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.choice-group legend {
  margin-bottom: 8px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment:hover,
.segmented > .segment:hover {
  background: var(--muted);
}

.segment:has(input:checked),
.segment.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.segment:has(input:checked):hover,
.segment.active:hover,
.segmented > .segment.active:hover {
  background: #4638e0;
  border-color: #4638e0;
  color: var(--primary-foreground);
}

.segmented > .segment {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

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

.btn-lg {
  padding: 16px 24px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
  background: #4638e0;
  color: var(--primary-foreground);
  filter: none;
}

.btn-outline {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover:not(:disabled) {
  background: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Author display:flex must not override the hidden attribute (mobile WebKit). */
[hidden] {
  display: none !important;
}

.form-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: #ffbfb2;
  color: #590f00;
  font-size: 14px;
}

.form-error.is-success {
  background: color-mix(in srgb, var(--success) 55%, white);
  color: var(--success-fg);
}

.fx-rate-note,
.selection-hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.selection-hint {
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: #ffefe9;
  color: #8a1f0a;
  font-weight: 500;
}

.btn:focus-visible,
.segment:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.check:focus-visible {
  outline: 3px solid rgba(87, 73, 244, 0.45);
  outline-offset: 2px;
}

@media (max-width: 639px) {
  .widget.show-sticky {
    padding-bottom: 120px;
  }
}

.promo-input {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

.field-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #8a1f0a;
}

.field.invalid input,
.choice-group.invalid .segmented {
  border-color: #cc3314;
  box-shadow: 0 0 0 1px rgba(204, 51, 20, 0.25);
}

.choice-group.invalid .segmented {
  border-radius: var(--radius-pill);
}

.promo-hint {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  line-height: 1.4;
}

.promo-hint.is-pending {
  background: var(--muted);
  color: var(--muted-foreground);
}

.promo-hint.is-valid {
  background: #e8f6ec;
  color: #1f6b3a;
}

.promo-hint.is-invalid {
  background: #ffefe9;
  color: #8a1f0a;
}

.price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}

.price-was {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.price-now {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.sticky-promo {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(87, 73, 244, 0.12);
  color: #5749f4;
  font-size: 11px;
  font-weight: 600;
}

.sticky-was {
  font-size: 12px;
  font-weight: 500;
  color: #5749f4;
  opacity: 0.55;
  text-decoration: line-through;
}

/* Scan */
.scan-panel {
  text-align: center;
  padding-block: 48px;
}

.scan-visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
  transition: border-color 0.35s ease, animation 0.2s ease;
}

.scan-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(87, 73, 244, 0.15);
  display: grid;
  place-items: center;
  transition: background 0.35s ease;
}

.scan-tick {
  width: 28px;
  height: 28px;
  color: var(--primary);
  opacity: 0.45;
  transition: color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.scan-visual.is-success .scan-ring {
  animation: none;
  border-color: #2f9e44;
  border-top-color: #2f9e44;
}

.scan-visual.is-success .scan-core {
  background: rgba(47, 158, 68, 0.16);
}

.scan-visual.is-success .scan-tick {
  color: #2f9e44;
  opacity: 1;
  transform: scale(1.08);
}

.scan-panel.is-success .panel-title {
  color: #1b6b2e;
}

.scan-panel.is-success #scan-status {
  color: var(--muted-foreground);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scan-progress {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.scan-panel.is-success .scan-progress {
  color: #2f9e44;
}

.scan-log {
  display: none;
}

/* Quote layout */
.quote-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .quote-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

  .findings-card {
    position: sticky;
    top: 16px;
  }
}

.tag-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--info);
  color: var(--info-fg);
  font-size: 12px;
  font-weight: 500;
}

.ref-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.ref-links a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
}

.ref-links a:hover {
  text-decoration: underline;
}

.rate-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.rate-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(87, 73, 244, 0.22);
  box-shadow:
    0 10px 30px rgba(87, 73, 244, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.rate-glass::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 73, 244, 0.28), transparent 68%);
  pointer-events: none;
}

.rate-glass::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 73, 244, 0.16), transparent 70%);
  pointer-events: none;
}

.rate-glass > * {
  position: relative;
  z-index: 1;
}

.rate-glass .panel-title,
.rate-glass .panel-copy,
.rate-glass .label {
  color: #5749f4;
}

.rate-glass .panel-copy {
  opacity: 0.85;
}

.rate-glass .rate-presets .segment {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(87, 73, 244, 0.28);
  color: #5749f4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rate-glass .rate-presets .segment:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #5749f4;
}

.rate-glass .rate-presets .segment.active {
  background: #5749f4;
  border-color: #5749f4;
  color: #ffffff;
}

.rate-glass .rate-presets .segment.active:hover {
  background: #4638e0;
  border-color: #4638e0;
  color: #ffffff;
}

.rate-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rate-presets .segment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
  min-height: 44px;
  padding: 8px 12px;
}

.rate-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

.rate-guidance {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #5749f4;
  opacity: 0.9;
}

.services-card {
  margin-bottom: 16px;
}

.services-head {
  margin-bottom: 16px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-row {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  padding-right: 108px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--background);
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
}

.service-row.off {
  opacity: 0.55;
  background: var(--muted);
}

.service-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(87, 73, 244, 0.08);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--primary);
  text-align: right;
}

.price-badge .price-stack {
  align-items: flex-end;
}

.price-badge .price-was {
  font-size: 11px;
}

.price-badge .price-now {
  font-size: 14px;
  color: var(--primary);
}

.check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  appearance: none;
  border: 1px solid var(--input);
  border-radius: var(--radius-xs);
  background: var(--background);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.check:checked {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.service-meta {
  flex: 1;
  min-width: 0;
}

.service-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  padding-right: 4px;
}

.service-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-foreground);
  padding-left: 28px;
}

.service-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding-left: 28px;
}

.tier-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.tier-select .segment {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
}

.tier-select .tier-label {
  font-weight: 600;
}

.share-hint.is-success {
  color: #1f6b3a;
}

.share-hint.is-fallback {
  color: #4d2700;
}

.hours-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 6px 10px;
  background: var(--muted);
  border-radius: var(--radius-pill);
}

.tier-blurb {
  margin: 0;
  padding-left: 28px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.share-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-ui);
  background: var(--info);
  color: var(--info-fg);
  font-size: 14px;
  font-weight: 500;
}

.share-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #5749f4;
  font-weight: 500;
}

.quote-actions {
  flex-wrap: wrap;
}

.infra-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.infra-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--background);
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.infra-row.off {
  opacity: 0.55;
  background: var(--muted);
}

.infra-meta {
  flex: 1;
  min-width: 0;
}

.infra-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.infra-row .check {
  margin-top: 4px;
}

.payment-block {
  margin-top: 20px;
  padding-top: 4px;
}

.payment-block .panel-title {
  margin-bottom: 8px;
}

.payment-lines {
  margin-top: 0;
}

.notes-field {
  margin-bottom: 8px;
}

.step-dots {
  display: none;
}

.sticky-total {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 16px 20px;
  border-radius: 0;
  border: 1px solid rgba(87, 73, 244, 0.18);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.72);
  color: #5749f4;
  box-shadow:
    0 -10px 32px rgba(87, 73, 244, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.widget.show-sticky .sticky-total {
  display: flex;
}

.sticky-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.sticky-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #5749f4;
  opacity: 0.75;
}

.sticky-amount {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #5749f4;
}

.sticky-meta,
.sticky-rate {
  font-size: 13px;
  font-weight: 500;
  color: #5749f4;
}

.sticky-rate {
  opacity: 0.8;
  font-size: 12px;
}

@media (min-width: 640px) {
  .sticky-total {
    left: 50%;
    right: auto;
    width: min(100% - 32px, var(--max));
    transform: translateX(-50%);
    border-radius: var(--radius-ui) var(--radius-ui) 0 0;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.review-summary {
  margin-top: 20px;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.review-summary dl.review-meta,
.review-meta {
  margin: 0;
  display: grid;
  gap: 12px;
}

.review-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.review-meta-cell {
  min-width: 0;
}

.review-summary dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-summary dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 639px) {
  .review-meta-row {
    grid-template-columns: 1fr;
  }
}

.review-lines {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.review-lines li {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.review-line-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-blurb {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.review-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-total-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
}

.review-total-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.review-total-amount {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
  color: var(--primary);
}

.review-total-amount .price-stack {
  align-items: flex-end;
}

.review-total-amount .price-was {
  font-size: 13px;
  font-weight: 500;
}

.review-total-amount .price-now {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.review-actions {
  flex-direction: column;
  margin-top: 24px;
  width: 100%;
}

.review-actions .btn {
  width: 100%;
}

.success-panel {
  text-align: center;
  padding-block: 56px;
}

.success-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: var(--success-fg);
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 639px) {
  .widget {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .widget.show-sticky {
    padding-bottom: 160px;
  }

  .sticky-total {
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
      0 -12px 36px rgba(87, 73, 244, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .service-row {
    border: none;
    background: #f5f5f7;
    box-shadow: none;
    padding: 16px;
    overflow: hidden;
  }

  .service-row.off {
    background: #ececef;
    box-shadow: none;
  }

  .service-top {
    padding-right: 92px;
    padding-left: 0;
    align-items: flex-start;
  }

  .service-top .check {
    margin-top: 4px;
  }

  /* Amount flush top-right — blue chip, white text */
  .price-badge {
    top: 0;
    right: 0;
    left: auto;
    padding: 8px 12px;
    border-radius: 0 0 0 10px;
    background: var(--primary);
    border: none;
    box-shadow: none;
    align-items: flex-end;
    text-align: right;
    color: #fff;
  }

  .price-badge .price-stack {
    align-items: flex-end;
  }

  .price-badge .price-was {
    color: rgba(255, 255, 255, 0.7);
  }

  .price-badge .price-now {
    color: #fff;
  }

  .service-desc,
  .service-bottom,
  .tier-blurb {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .service-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .tier-select {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .tier-select .segment {
    width: 100%;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 11px;
    justify-content: center;
  }

  .hours-pill {
    display: none;
  }
}
