.pk-calculator,
.pk-calculator-catalog {
  --pk-calc-navy: #0d2340;
  --pk-calc-gold: #bd9148;
  --pk-calc-gold-soft: #faf7f0;
  --pk-calc-border: #d8dee7;
  --pk-calc-muted: #5b6675;
  --pk-calc-surface: #ffffff;
  color: var(--pk-calc-navy);
}

.pk-calculator {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(0.25rem, 1vw, 0.75rem);
  border: 1px solid var(--pk-calc-border);
  border-radius: 14px;
  background: var(--pk-calc-surface);
  box-shadow: 0 12px 38px rgba(13, 35, 64, 0.07);
}

.pk-calculator__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--pk-calc-navy);
  color: #fff;
}

.pk-calculator__switch label {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 800;
}

.pk-calculator__select-wrap {
  position: relative;
  width: min(100%, 420px);
}

.pk-calculator__select-wrap select {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 2.4rem 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  appearance: none;
  background: #fff;
  color: var(--pk-calc-navy);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.pk-calculator__select-wrap span {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  color: var(--pk-calc-navy);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.pk-calculator-catalog h2,
.pk-calculator-card h3 {
  color: var(--pk-calc-navy);
}

.pk-calculator-card__provider {
  margin: 0 0 0.45rem;
  color: var(--pk-calc-gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-calculator-catalog__notice {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
  border-left: 4px solid var(--pk-calc-gold);
  border-radius: 10px;
  background: var(--pk-calc-gold-soft);
}

.pk-calculator-catalog__notice > :first-child {
  margin-top: 0;
}

.pk-calculator-catalog__notice > :last-child {
  margin-bottom: 0;
}

.pk-calculator-card__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--pk-calc-navy);
  border-radius: 999px;
  background: var(--pk-calc-navy);
  color: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.pk-calculator-card__link:hover {
  background: #17385f;
  color: #fff;
}

.pk-calculator__fallback {
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.pk-calculator__direct-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--pk-calc-border);
  border-left: 4px solid var(--pk-calc-gold);
  border-radius: 10px;
  background: linear-gradient(120deg, var(--pk-calc-gold-soft), #fff 62%);
}

.pk-calculator__direct-open-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.pk-calculator__direct-open-copy strong {
  color: var(--pk-calc-navy);
  line-height: 1.25;
}

.pk-calculator__direct-open-copy span {
  color: var(--pk-calc-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pk-calculator__direct-open-link {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--pk-calc-navy);
  border-radius: 10px;
  background: var(--pk-calc-navy);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.pk-calculator__direct-open-link:hover {
  background: #17385f;
  color: #fff;
}

.pk-calculator__consent {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-block: 1px solid var(--pk-calc-border);
  background: linear-gradient(120deg, var(--pk-calc-gold-soft), #fff 55%);
}

.pk-calculator__consent h2 {
  margin: 0.3rem 0 0.6rem;
  color: var(--pk-calc-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.15;
}

.pk-calculator__consent > p:not(.pk-calculator__eyebrow) {
  margin: 0.55rem 0;
}

.pk-calculator__eyebrow {
  margin: 0;
  color: #8a6324;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pk-calculator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.9rem;
}

.pk-calculator__load,
.pk-calculator__actions .pk-calculator__fallback {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.pk-calculator__load {
  border: 1px solid var(--pk-calc-navy);
  color: #fff;
  background: var(--pk-calc-navy);
  cursor: pointer;
}

.pk-calculator__actions .pk-calculator__fallback {
  margin: 0;
  border: 1px solid var(--pk-calc-border);
  color: var(--pk-calc-navy);
  background: #fff;
}

.pk-calculator__status {
  margin: 0;
  padding: 0 0.75rem;
  color: var(--pk-calc-muted);
  font-size: 0.86rem;
}

.pk-calculator__disclosure {
	margin: 0;
	padding: 0.65rem 0.5rem 0.35rem;
  color: var(--pk-calc-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.pk-calculator__stage {
  box-sizing: border-box;
  width: 100%;
  overflow-x: auto;
	border-radius: 10px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.pk-calculator__stage iframe {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  max-width: 100%;
	margin: 0;
  border: 0;
  background: #fff;
}

.pk-calculator--wide .pk-calculator__stage iframe {
  width: 100% !important;
  min-width: var(--pk-calculator-fit-width);
  max-width: none;
}

/*
 * PROCHECK24 publishes several desktop-width calculators (800-1000 px).
 * When the available space is narrower, JavaScript applies the same proven
 * proportional fit used on ionchiochiu.de: the complete calculator stays in
 * view, pointer interaction remains on the original iframe and the wrapper
 * receives the correctly scaled height. No horizontal swipe is required.
 */
.pk-calculator.pk-calculator--wide .pk-calculator__stage[data-pk-fit-active="true"] {
  height: var(--pk-calculator-fit-height) !important;
  overflow: hidden !important;
  overscroll-behavior-inline: auto;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}

.pk-calculator.pk-calculator--wide .pk-calculator__stage[data-pk-fit-active="true"]::-webkit-scrollbar {
  display: none;
}

.pk-calculator.pk-calculator--wide .pk-calculator__stage[data-pk-fit-active="true"] iframe {
  width: var(--pk-calculator-fit-width) !important;
  min-width: var(--pk-calculator-fit-width) !important;
  max-width: none !important;
  transform: scale(var(--pk-calculator-fit-scale));
  transform-origin: 0 0;
}

.pk-calculator__fallback:focus-visible,
.pk-calculator__load:focus-visible,
.pk-calculator__direct-open-link:focus-visible,
.pk-calculator__disclosure a:focus-visible,
.pk-calculator__select-wrap select:focus-visible,
.pk-calculator-card a:focus-visible {
  outline: 3px solid rgba(189, 145, 72, 0.5);
  outline-offset: 3px;
}

.pk-calculator-error {
  padding: 1rem;
  border: 1px solid #8e1b1b;
  border-radius: 10px;
  background: #fff5f5;
  color: #8e1b1b;
}

.pk-calculator-catalog__section {
  margin-block: clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 6rem;
}

.pk-calculator-catalog__heading {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.pk-calculator-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pk-calculator-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--pk-calc-border);
  border-radius: 16px;
  background: var(--pk-calc-surface);
  box-shadow: 0 12px 34px rgba(13, 35, 64, 0.06);
}

.pk-calculator-card h3 {
  margin: 0 0 0.6rem;
}

.pk-calculator-card h3 a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.pk-calculator-card__link {
  margin-top: auto;
}

@media (max-width: 720px) {
  .pk-calculator-catalog__grid {
    grid-template-columns: 1fr;
  }

	.pk-calculator {
		padding: 0;
		border-inline: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.pk-calculator__stage {
		border-radius: 0;
	}

	.pk-calculator__switch {
		align-items: stretch;
		flex-direction: column;
		margin: 0 0 0.45rem;
		border-radius: 0;
	}

	.pk-calculator__select-wrap {
		width: 100%;
	}

	.pk-calculator__disclosure {
		padding-inline: 0.75rem;
	}

	.pk-calculator__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.pk-calculator__direct-open {
		align-items: stretch;
		flex-direction: column;
		margin-inline: 0.75rem;
	}

	.pk-calculator__direct-open-link {
		width: 100%;
	}

	.pk-calculator__load,
	.pk-calculator__actions .pk-calculator__fallback {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
  .pk-calculator *,
  .pk-calculator-catalog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
