[data-cost-open][hidden], .cost-offer [hidden] { display: none; }
[data-cost-open], .cost-controls__choices input { cursor: pointer; }

.home-page #empCalculatorTeaser, .home-page #empComparisonTitle { overflow-wrap: anywhere; hyphens: auto; }
.cost-comparison { border-block: 1px solid var(--line); }
.cost-comparison .situation-grid article { min-height: 0; }
.cost-comparison .situation-grid h3 { margin: 0 0 16px; }
.cost-comparison__cell--5 { --comparison-share: 20%; }
.cost-comparison__cell--11 { --comparison-share: calc(100% / 11); }
.cost-comparison__cell--7 { --comparison-share: calc(100% / 7); }
.cost-comparison__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.cost-comparison__data strong {
  color: var(--purple);
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 500;
  line-height: .94;
  font-variant-numeric: tabular-nums;
}
.cost-comparison__bars { display: grid; gap: 10px; }
.cost-comparison__bars span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.cost-comparison__bar { display: block; width: 100%; height: 6px; background: var(--purple); }
.cost-comparison__bar--baseline { width: var(--comparison-share); background: var(--muted); }
.cost-comparison__reason { margin: 14px 0 0; color: var(--muted); }

.article-cta .cost-article-secondary { border: 1px solid var(--content-accent); cursor: pointer; }
.cost-insert-action { min-height: 44px; text-decoration: underline; text-underline-offset: .21em; }

html:has(.cost-dialog[open]) { overflow: hidden; }
.cost-dialog.question-panel {
  --cost-dialog-margin: 32px;
  position: fixed;
  inset-block-start: var(--cost-visible-top, 0px);
  inset-block-end: var(--cost-visible-bottom, 0px);
  width: min(700px, calc(100% - var(--cost-dialog-margin)));
  max-height: calc(var(--cost-visible-height, 100dvh) - var(--cost-dialog-margin));
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  text-align: start;
}
.cost-dialog[open] { display: flex; flex-direction: column; }
.cost-dialog::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.cost-dialog__header { padding: 18px 68px 15px 24px; border-bottom: 1px solid var(--line); }
.cost-dialog__header h2 { margin: 0; padding: 0; }
.cost-dialog__body { overflow: auto; overscroll-behavior: contain; padding: 16px 24px; }
.cost-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.cost-controls__people {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px;
  align-items: center;
}
.cost-controls__people label, .cost-controls__days legend { font-size: 15px; font-weight: 600; }
#empCostPeople { width: 7ch; height: 42px; padding-inline: 6px; text-align: center; }
#empCostPeopleRange { grid-column: 1 / -1; min-width: 0; width: 100%; margin: 0; accent-color: var(--purple); }
.cost-controls__days { min-width: 0; margin: 0; padding: 0; border: 0; }
.cost-controls__days legend { margin-bottom: 7px; padding: 0; }
.cost-controls__choices.question-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.cost-controls__choices label { position: relative; }
.cost-controls__choices span { width: 100%; min-height: 44px; padding: 0; }
.cost-controls__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 1; }
.cost-controls__choices input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--white); }
.cost-controls__choices input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }

.cost-quotes, .cost-differences { margin: 10px 0 0; }
.cost-quotes__row, .cost-differences > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 6px 12px;
  align-items: center;
  padding-block: 8px;
  border-top: 1px solid var(--line);
}
.cost-quotes__row--empatyzer { color: var(--purple); }
.cost-quotes__row dt { font-weight: 600; }
.cost-quotes__row small { display: block; color: var(--muted); font-weight: 400; line-height: 1.25; }
.cost-quotes__row dd, .cost-differences dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-quotes__row dd { font-size: clamp(17px, 3.8vw, 25px); }
.cost-differences { font-size: 14px; }
.cost-differences > div { padding-block: 4px; }
.cost-differences dd { color: var(--purple); }
.cost-differences dd.is-costlier { color: var(--ink); }
.cost-dialog__note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.cost-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cost-offer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cost-offer__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
.cost-offer__input input { height: 44px; font-size: 16px; }
.cost-offer__button { min-height: 44px; }
.cost-offer__hint, .cost-offer__error { grid-column: 1 / -1; margin: 0; }
.cost-offer__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 5px; font-size: 12px; }
.cost-offer__links a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.cost-offer__phone, .cost-offer__success { display: inline-flex; align-items: center; gap: 5px; }
.cost-offer svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cost-offer__success { margin: 0; color: var(--purple); font-weight: 600; }

@media (max-width: 960px) {
  .cost-comparison .situation-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .cost-dialog.question-panel { --cost-dialog-margin: 24px; }
  .cost-dialog__header { padding: 10px 48px 9px 14px; }
  .cost-dialog__body { padding: 10px 13px; }
  .cost-controls { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .cost-controls__choices span { min-height: 42px; }
  .cost-quotes, .cost-differences { margin-top: 6px; }
  .cost-quotes__row { padding-block: 6px; line-height: 1.25; }
  .cost-offer__button { max-width: 136px; padding: 5px 10px; font-size: 13px; }
}
@media (forced-colors: active) {
  .cost-comparison__bar { background: CanvasText; }
  .cost-controls__choices input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
}
