/* ===================================
   CHECKOUT DOCK
   Light bar fixed to the bottom of the viewport, safe-area aware: paper background, hairline
   on top, price in ink, accent button. Hidden via the `hidden` attribute; the script toggles it.
   Body bottom padding is reserved only while the script marks
   <body class="tariff-dock-visible"> (no :has() needed).
   The base --tp-* tokens, the campaign re-tint and the section title come from tariff-page-tokens.css.
   =================================== */

.tariff-dock {
  --tp-dock-height: 68px;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  box-sizing: border-box;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--tp-line);
  background: var(--tp-paper);
  color: var(--tp-ink);
  font-family: var(--tp-font);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 -12px 32px -18px rgba(37, 39, 33, 0.25);
}
.tariff-dock[hidden] {
  display: none;
}

.tariff-dock *,
.tariff-dock *::before,
.tariff-dock *::after {
  box-sizing: inherit;
}

/* Reserved so the dock never covers the last lines of the page while it is shown. */
body.tariff-dock-visible {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

.tariff-dock__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1152px;
  margin: 0 auto;
}

.tariff-dock__price-block {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.tariff-dock__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.tariff-dock__price-prefix {
  font-size: 14px;
  color: var(--tp-ink-2);
}
.tariff-dock__price b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
  color: var(--tp-ink);
  font-variant-numeric: tabular-nums;
}
.tariff-dock__period {
  font-size: 14px;
  color: var(--tp-ink-2);
}
.tariff-dock__note {
  font-size: 13px;
  color: var(--tp-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tariff-dock__cta {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--tp-accent);
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.tariff-dock__cta:hover {
  background: var(--tp-accent-hover);
}
.tariff-dock__cta:focus-visible {
  outline: 3px solid var(--tp-accent-bright);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .tariff-dock {
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  /* The chat widget bubble sits fixed at the bottom right (about 80px wide); keep the button clear
     of it. The price collapses to one short line ("ab 16,90 €") so price and button share the row. */
  .tariff-dock__inner {
    gap: 10px;
    padding-right: 84px;
  }
  .tariff-dock__price-block {
    flex: 0 0 auto;
  }
  .tariff-dock__price {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .tariff-dock__price b {
    font-size: 18px;
  }
  .tariff-dock__price-prefix,
  .tariff-dock__period,
  .tariff-dock__note {
    display: none;
  }
  .tariff-dock__cta {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tariff-dock__cta {
    transition: none;
  }
}
