/**
 * Paket configurator page template.
 * Apple-style two column layout: sticky gallery left, scrolling rail right.
 * Figma node 3289:8639 + apple.com configurator interaction patterns.
 */

/* Keep the footer hidden. Show the main site header at the top of the page,
   then slide it away on scroll so the configurator ribbon can take its place. */
body.page-template-paket-configurator {
  --paketConfigurator-site-header: var(--templateTheme-header-scroll-offset);
}

body.page-template-paket-configurator.is-configurator-scrolled:not(.menu-open) {
  --paketConfigurator-site-header: 0px;
}

body.page-template-paket-configurator .footer {
  display: none;
}

body.page-template-paket-configurator .site-header {
  transition: transform var(--templateTheme-dur-md)
    var(--templateTheme-ease-soft);
}

body.page-template-paket-configurator.is-configurator-scrolled:not(.menu-open)
  .site-header {
  transform: translateY(-100%);
  pointer-events: none;
}

.paketConfigurator-page {
  --paketConfigurator-topbar: 52px;
  --paketConfigurator-jump: 0px;
  --paketConfigurator-chrome: calc(
    var(--paketConfigurator-site-header) + var(--paketConfigurator-topbar) +
      var(--paketConfigurator-jump)
  );
  background: #fff;
  color: #232323;
}

/* ---------------------------------- Layout ---------------------------------- */

.paketConfigurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  column-gap: clamp(40px, 5vw, 72px);
  row-gap: 0;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(
      var(--templateTheme-header-scroll-offset) +
        var(--paketConfigurator-topbar) + clamp(20px, 3.5vh, 36px)
    )
    clamp(16px, 3vw, 44px) clamp(64px, 8vw, 128px);
}

@media (min-width: 981px) {
  .paketConfigurator {
    padding-right: clamp(64px, 6vw, 88px);
  }
}

/* ----------------------- Topbar ribbon (Apple-style) -------------------------- */

.paketConfigurator__topbar {
  position: fixed;
  top: calc(
    var(--templateTheme-wp-admin-bar) + var(--paketConfigurator-site-header)
  );
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--paketConfigurator-topbar);
  overflow: visible;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  transition: top var(--templateTheme-dur-md) var(--templateTheme-ease-soft);
}

.paketConfigurator__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 44px);
}

.paketConfigurator__topbar-paket {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
}

.paketConfigurator__topbar-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paketConfigurator__topbar-title--switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  cursor: pointer;
  overflow: hidden;
}

.paketConfigurator__topbar-title--switch:hover {
  color: #6e6e73;
}

.paketConfigurator__topbar-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paketConfigurator__topbar-chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: #6e6e73;
  transition: transform 0.22s ease;
}

.paketConfigurator__topbar-title--switch[aria-expanded="true"]
  .paketConfigurator__topbar-chevron,
.paketConfigurator__topbar-price[aria-expanded="true"]
  .paketConfigurator__topbar-chevron {
  transform: rotate(180deg);
}

.paketConfigurator__paket-menu[hidden],
.paketConfigurator__breakdown[hidden] {
  display: none !important;
}

.paketConfigurator__paket-menu,
.paketConfigurator__breakdown {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 120;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 18px 40px -16px rgba(0, 0, 0, 0.28);
}

.paketConfigurator__paket-menu {
  left: 0;
}

.paketConfigurator__paket-menu-label {
  margin: 0 8px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.paketConfigurator__paket-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.paketConfigurator__paket-menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #1d1d1f;
}

a.paketConfigurator__paket-menu-item:hover {
  background: #f5f6f7;
}

.paketConfigurator__paket-menu-item.is-current {
  background: #f5f6f7;
  font-weight: 600;
}

.paketConfigurator__paket-menu-name {
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.paketConfigurator__paket-menu-price {
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.48);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.paketConfigurator__topbar-side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.paketConfigurator__topbar-pricewrap {
  position: relative;
}

.paketConfigurator__topbar-price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: right;
  cursor: pointer;
  color: inherit;
}

.paketConfigurator__topbar-price:hover .paketConfigurator__topbar-amount {
  color: #6e6e73;
}

.paketConfigurator__topbar-amount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.paketConfigurator__topbar-amount .paketConfigurator__topbar-chevron {
  width: 11px;
  height: 11px;
}

.paketConfigurator__topbar-startcost {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.48);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.paketConfigurator__breakdown {
  right: 0;
  padding: 14px 16px 16px;
}

.paketConfigurator__breakdown-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.paketConfigurator__breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paketConfigurator__breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.paketConfigurator__breakdown-name {
  min-width: 0;
}

.paketConfigurator__breakdown-value {
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.paketConfigurator__breakdown-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paketConfigurator__breakdown-total .paketConfigurator__breakdown-row {
  font-weight: 600;
}

.paketConfigurator__breakdown-total .paketConfigurator__breakdown-value {
  color: #1d1d1f;
}

.paketConfigurator__breakdown .paketConfigurator__price-note {
  margin-top: 10px;
}

.paketConfigurator__topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #232323;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paketConfigurator__topbar-cta:hover {
  background: #3a3a3a;
}

.paketConfigurator__topbar-cta:active {
  transform: scale(0.96);
}

/* Short label only on narrow ribbons. */
.paketConfigurator__topbar-cta-short {
  display: none;
}

.paketConfigurator__media {
  position: sticky;
  top: calc(
    var(--templateTheme-wp-admin-bar) + var(--paketConfigurator-chrome) + 16px
  );
  height: auto;
  min-width: 0;
}

.paketConfigurator__rail {
  position: relative;
  min-width: 0;
}

.paketConfigurator__rail-inner {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 30vh, 320px);
}

.paketConfigurator__stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.paketConfigurator__pager {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -52px;
  width: 10px;
  z-index: 4;
}

.paketConfigurator__pager[hidden] {
  display: none;
}

.paketConfigurator__pager-track {
  position: sticky;
  top: calc(
    var(--templateTheme-wp-admin-bar) + var(--paketConfigurator-chrome) +
      (
        100dvh - var(--templateTheme-wp-admin-bar) -
          var(--paketConfigurator-chrome)
      ) /
      2
  );
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.paketConfigurator__pager-item {
  position: relative;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d2d2d7;
  cursor: pointer;
  transition:
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease;
}

.paketConfigurator__pager-item::before {
  content: "";
  position: absolute;
  inset: -6px -10px;
}

.paketConfigurator__pager-item:hover,
.paketConfigurator__pager-item:focus-visible {
  background: #86868b;
}

.paketConfigurator__pager-item.is-active {
  height: 24px;
  background: #1d1d1f;
  cursor: default;
}

.paketConfigurator__pager-item.is-active:hover,
.paketConfigurator__pager-item.is-active:focus-visible {
  background: #1d1d1f;
}

.paketConfigurator__pager-item:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 3px;
}

.paketConfigurator__section--card,
.paketConfigurator__group,
.paketConfigurator__cf7 .paketConfigurator__form-section,
.paketConfigurator__summary,
.paketConfigurator__addon-upsell,
[data-configurator-jump-target] {
  scroll-margin-top: calc(
    var(--templateTheme-wp-admin-bar) + var(--paketConfigurator-chrome) + 24px
  );
}

.paketConfigurator__form-section p {
  margin: 0;
}

/* --------------------------------- Gallery ---------------------------------- */

/* Stage sized to the image ratio so the grey box hugs the photo. */
.paketConfigurator__gallery {
  position: relative;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f9fa;
}

.paketConfigurator__gallery-track {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--paketConfigurator-media-ratio, 841 / 544);
  max-height: calc(
    100vh - var(--templateTheme-wp-admin-bar) -
      var(--paketConfigurator-chrome) - 32px
  );
}

.paketConfigurator__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.32, 0.08, 0.24, 1);
}

.paketConfigurator__slide.is-active {
  opacity: 1;
}

.paketConfigurator--animate .paketConfigurator__slide.is-active img {
  animation: paketConfigurator-slide-settle 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes paketConfigurator-slide-settle {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}

.paketConfigurator__slide {
  padding: 0;
}

.paketConfigurator__slide img,
.paketConfigurator__gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paketConfigurator__slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.paketConfigurator__slide-mark {
  color: rgba(0, 0, 0, 0.16);
}

.paketConfigurator__slide-mark svg {
  width: 64px;
  height: auto;
}

/* Figma 3289:8652 — glass prev / dots / next, bottom-center of the image. */
.paketConfigurator__gallery-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.paketConfigurator__gallery-btn,
.paketConfigurator__gallery-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.paketConfigurator__gallery-btn {
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 35px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paketConfigurator__gallery-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.paketConfigurator__gallery-btn:active {
  transform: scale(0.94);
}

.paketConfigurator__gallery-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.paketConfigurator__gallery-btn--prev .paketConfigurator__gallery-btn-icon {
  transform: rotate(90deg);
}

.paketConfigurator__gallery-btn--next .paketConfigurator__gallery-btn-icon {
  transform: rotate(-90deg);
}

.paketConfigurator__gallery-btn-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.paketConfigurator__gallery-dots {
  padding: 0 10px;
  border-radius: 14px;
  gap: 10px;
}

.paketConfigurator__gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.25s ease;
}

.paketConfigurator__gallery-dot.is-active {
  background: #fff;
}

/* ---------------------------------- Intro ------------------------------------- */

/* Figma 3289:8632 — topText (paket name), H3 heading, Bröd L lead. */
.paketConfigurator__intro {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.paketConfigurator__top-text {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.32px;
  color: #060606;
}

.paketConfigurator__title {
  margin: 0;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.42px;
  line-height: 1;
  color: #232323;
}

.paketConfigurator__lead {
  margin: 0;
  padding-top: 4px;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  letter-spacing: 0;
  color: #000;
  opacity: 0.8;
}

/* --------------------------------- Sections ---------------------------------- */

.paketConfigurator__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Figma 3289:8749 — section titles only (Beskrivning, form sections, Tillägg, Sammanfattning). */
.paketConfigurator__section-title,
.paketConfigurator__cf7 .paketConfigurator__form-title,
.paketConfigurator__summary-title {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.24px;
  line-height: 1;
  color: #000;
}

/* Stacked section header (add-ons): clearly larger than group headings so it
   reads as the start of a new section instead of blending with the options. */
.paketConfigurator__section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.paketConfigurator__section-sub,
.paketConfigurator__cf7 .paketConfigurator__form-desc,
.paketConfigurator__group-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.58);
}

.paketConfigurator__block-title,
.paketConfigurator__group-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.18px;
  line-height: 1;
  color: #000;
}

.paketConfigurator__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.58);
}

.paketConfigurator__text--intro {
  margin-bottom: 8px;
}

.paketConfigurator__divider {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Check list ("Det här ingår") */

.paketConfigurator__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paketConfigurator__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paketConfigurator__list-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(219, 250, 156, 0.55);
  color: #232323;
}

.paketConfigurator__list-check svg {
  width: 13px;
  height: 13px;
}

.paketConfigurator__list-text {
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: rgba(0, 0, 0, 0.72);
}

/* ------------------------------- Add-on groups -------------------------------- */

.paketConfigurator__group {
  /* Generous rhythm between groups so one add-on is in focus at a time. */
  margin: clamp(56px, 14vh, 140px) 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.paketConfigurator__group:first-of-type {
  margin-top: clamp(20px, 4vh, 40px);
}

.paketConfigurator__group-title {
  padding: 0;
  float: none;
  width: auto;
  margin-bottom: 10px;
}

.paketConfigurator__group-desc {
  margin: 0 0 14px;
}

.paketConfigurator__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paketConfigurator__option {
  display: block;
  cursor: pointer;
}

.paketConfigurator__option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.paketConfigurator__option-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  box-shadow:
    inset 0 0 0 1px transparent,
    0 0 0 rgba(0, 0, 0, 0);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.paketConfigurator__option-main {
  display: block;
  cursor: pointer;
}

.paketConfigurator__option--expand {
  cursor: default;
}

.paketConfigurator__option:hover .paketConfigurator__option-body {
  border-color: rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px transparent,
    0 6px 18px -10px rgba(0, 0, 0, 0.22);
}

.paketConfigurator__option--superseded {
  cursor: default;
  pointer-events: none;
}

.paketConfigurator__option--superseded .paketConfigurator__option-body,
.paketConfigurator__option--superseded:hover .paketConfigurator__option-body {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f3f3f1;
  box-shadow: none;
  transform: none;
  opacity: 0.55;
}

.paketConfigurator__option--superseded .paketConfigurator__option-label,
.paketConfigurator__option--superseded .paketConfigurator__option-desc,
.paketConfigurator__option--superseded .paketConfigurator__option-price {
  color: rgba(0, 0, 0, 0.38);
}

.paketConfigurator__option-input:focus-visible
  + .paketConfigurator__option-body {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__option-input:checked + .paketConfigurator__option-body {
  border-color: #232323;
  box-shadow:
    inset 0 0 0 1px #232323,
    0 8px 22px -12px rgba(0, 0, 0, 0.28);
  background: #fcfcfa;
}

.paketConfigurator__option-label-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.paketConfigurator__option-label {
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.paketConfigurator__option-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d8ff89;
  color: #000;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.paketConfigurator__option-input:checked
  + .paketConfigurator__option-body
  .paketConfigurator__option-label {
  font-weight: 600;
}

.paketConfigurator__option-desc {
  flex-basis: 100%;
  order: 3;
  max-width: 42em;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
}

.paketConfigurator__option-price {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.55);
  font-variant-numeric: tabular-nums;
}

.paketConfigurator__option-price.is-credit {
  color: #1d1d1f;
}

.paketConfigurator__option-price:empty {
  display: none;
}

.paketConfigurator__option--expand.is-open .paketConfigurator__option-body {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
  transform: none;
}

.paketConfigurator__option--expand.is-open:hover .paketConfigurator__option-body {
  transform: none;
}

.paketConfigurator__platforms[hidden] {
  display: none;
}

.paketConfigurator__platforms {
  padding: 4px 14px 16px;
  border: 1px solid #232323;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fcfcfa;
}

.paketConfigurator__platforms-label {
  margin: 0 2px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.5);
}

.paketConfigurator__platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.paketConfigurator__platform {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.paketConfigurator__platform-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.paketConfigurator__platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #1d1d1f;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.paketConfigurator__platform:hover .paketConfigurator__platform-card {
  border-color: rgba(0, 0, 0, 0.4);
}

.paketConfigurator__platform-input:focus-visible + .paketConfigurator__platform-card {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__platform-input:checked + .paketConfigurator__platform-card {
  border-color: #232323;
  box-shadow: inset 0 0 0 1px #232323;
  background: #fff;
}

.paketConfigurator__platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #1d1d1f;
}

.paketConfigurator__platform-logo svg {
  display: block;
  width: 22px;
  height: 22px;
}

.paketConfigurator__platform-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.paketConfigurator__platform-card:has(.paketConfigurator__platform-price) {
  min-height: 96px;
  gap: 4px;
  padding-bottom: 7px;
}

.paketConfigurator__platform-price {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.42);
  text-align: center;
}

.paketConfigurator__platform-input:checked + .paketConfigurator__platform-card .paketConfigurator__platform-price {
  color: rgba(0, 0, 0, 0.55);
}

.paketConfigurator__platforms-note {
  margin: 12px 2px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.42);
}

.paketConfigurator__choice-custom {
  margin-top: 12px;
}

.paketConfigurator__choice-custom[hidden] {
  display: none;
}

.paketConfigurator__choice-custom-label {
  display: block;
  margin: 0 2px 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.5);
}

.paketConfigurator__choice-custom-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.paketConfigurator__choice-custom-input::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.paketConfigurator__choice-custom-input:focus {
  outline: none;
  border-color: #232323;
  box-shadow: inset 0 0 0 1px #232323;
}

.paketConfigurator__choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.paketConfigurator__choice-chips:empty {
  display: none;
}

.paketConfigurator__choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
}

.paketConfigurator__choice-chip:hover,
.paketConfigurator__choice-chip:focus-visible {
  border-color: #232323;
}

.paketConfigurator__choice-chip:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__platform-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #1d1d1f;
}

/* Apple-style “need help choosing” row under each add-on group. */

.paketConfigurator__compare {
  margin-top: 10px;
  border-radius: 12px;
  background: #f5f5f7;
  overflow: hidden;
}

.paketConfigurator__compare-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: #1d1d1f;
  cursor: pointer;
}

.paketConfigurator__compare-trigger:hover {
  background: rgba(0, 0, 0, 0.03);
}

.paketConfigurator__compare-trigger:focus-visible {
  outline: 2px solid #232323;
  outline-offset: -2px;
}

.paketConfigurator__compare-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.paketConfigurator__compare-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.paketConfigurator__compare-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.55);
}

.paketConfigurator__compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #1d1d1f;
}

.paketConfigurator__compare-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

html.paketConfigurator-compare-open {
  overflow: hidden;
}

.paketConfigurator__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.paketConfigurator__compare-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  height: fit-content;
  max-height: min(90dvh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.45);
}

.paketConfigurator__compare-dialog--wide {
  width: min(1080px, calc(100vw - 32px));
}

.paketConfigurator__compare-dialog:focus {
  outline: none;
}

.paketConfigurator__compare-dialog::backdrop {
  background: rgba(22, 22, 23, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.paketConfigurator__compare-dialog-inner {
  max-height: min(90dvh, 920px);
  overflow: auto;
  padding: 36px 40px 40px;
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.paketConfigurator__compare-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
  color: #1d1d1f;
  cursor: pointer;
}

.paketConfigurator__compare-close:hover,
.paketConfigurator__compare-close:focus-visible {
  background: #d2d2d7;
}

.paketConfigurator__compare-close:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__compare-close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.paketConfigurator__compare-heading {
  margin: 0 48px 10px 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1d1d1f;
}

.paketConfigurator__compare-lead {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.paketConfigurator__compare-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.82);
}

.paketConfigurator__compare-body--after-diff {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.paketConfigurator__diff {
  margin: 4px 0 0;
}

.paketConfigurator__diff-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

.paketConfigurator__diff-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.paketConfigurator__diff--cols-2 .paketConfigurator__diff-table {
  min-width: 420px;
}

.paketConfigurator__diff--cols-3 .paketConfigurator__diff-table {
  min-width: 560px;
}

.paketConfigurator__diff--cols-4 .paketConfigurator__diff-table,
.paketConfigurator__diff--cols-5 .paketConfigurator__diff-table {
  min-width: 720px;
}

.paketConfigurator__diff-table th,
.paketConfigurator__diff-table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.paketConfigurator__diff-corner,
.paketConfigurator__diff-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 22%;
  min-width: 88px;
  padding-left: 16px;
  padding-right: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.48);
  background: #fff;
}

.paketConfigurator__diff-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.paketConfigurator__diff-term {
  line-height: 1.3;
}

.paketConfigurator__diff-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  font: italic 600 10px/1 Georgia, "Times New Roman", serif;
  cursor: help;
  flex: 0 0 16px;
}

.paketConfigurator__diff-info:hover,
.paketConfigurator__diff-info:focus-visible {
  border-color: #232323;
  color: #1d1d1f;
}

.paketConfigurator__diff-info:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__diff-info[aria-expanded="true"] {
  background: #232323;
  border-color: #232323;
  color: #fff;
}

.paketConfigurator__diff-hint {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.55);
}

.paketConfigurator__diff-table thead th {
  padding: 18px 12px 16px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.paketConfigurator__diff-table thead .paketConfigurator__diff-corner {
  z-index: 3;
  background: #f5f5f7;
  border-top-left-radius: 14px;
}

.paketConfigurator__diff-table thead th:last-child {
  border-top-right-radius: 14px;
}

.paketConfigurator__diff-plan.is-included,
.paketConfigurator__diff-table td.is-included {
  background: #f7f7f8;
}

.paketConfigurator__diff-table thead .paketConfigurator__diff-plan.is-included {
  background: #efeff2;
}

.paketConfigurator__diff-plan.is-current,
.paketConfigurator__diff-table td.is-current {
  background: rgba(35, 35, 35, 0.045);
}

.paketConfigurator__diff-table thead .paketConfigurator__diff-plan.is-current {
  background: #ececee;
  box-shadow: inset 0 3px 0 #232323;
}

.paketConfigurator__diff-plan.is-superseded,
.paketConfigurator__diff-table td.is-superseded {
  opacity: 0.4;
}

.paketConfigurator__diff-plan-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.paketConfigurator__diff-pill {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #232323;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paketConfigurator__diff-price {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
}

.paketConfigurator__diff-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 980px;
  background: #232323;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.paketConfigurator__diff-select:hover,
.paketConfigurator__diff-select:focus-visible {
  background: #000;
}

.paketConfigurator__diff-select:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__diff-chosen {
  display: none;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
}

.paketConfigurator__diff-plan.is-current .paketConfigurator__diff-select {
  display: none;
}

.paketConfigurator__diff-plan.is-current .paketConfigurator__diff-chosen {
  display: inline-block;
}

.paketConfigurator__diff-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
}

.paketConfigurator__diff-yes svg {
  display: block;
  width: 16px;
  height: 16px;
}

.paketConfigurator__diff-empty {
  color: rgba(0, 0, 0, 0.28);
}

.paketConfigurator__diff-value {
  color: #1d1d1f;
}

.paketConfigurator__compare-body > *:first-child {
  margin-top: 0;
}

.paketConfigurator__compare-body > *:last-child {
  margin-bottom: 0;
}

.paketConfigurator__compare-body p {
  margin: 0 0 12px;
}

.paketConfigurator__compare-body h3,
.paketConfigurator__compare-body h4 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.paketConfigurator__compare-body ul,
.paketConfigurator__compare-body ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.paketConfigurator__compare-body li + li {
  margin-top: 6px;
}

.paketConfigurator__compare-body li ul,
.paketConfigurator__compare-body li ol {
  margin: 8px 0 4px;
}

.paketConfigurator__compare-body table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 14px;
}

.paketConfigurator__compare-body th,
.paketConfigurator__compare-body td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.paketConfigurator__compare-body th {
  font-weight: 600;
  color: #1d1d1f;
}

.paketConfigurator__compare-body strong {
  font-weight: 600;
  color: #1d1d1f;
}

.paketConfigurator__compare-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 14px;
}

.paketConfigurator__compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

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

.paketConfigurator__upgrade-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0 0 28px;
}

.paketConfigurator__upgrade-col-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1d1d1f;
}

.paketConfigurator__upgrade-col-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 6px 0 0;
}

.paketConfigurator__upgrade-col-price {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #1d1d1f;
}

.paketConfigurator__upgrade-col-total {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.45);
}

.paketConfigurator__upgrade-col--target .paketConfigurator__upgrade-col-price {
  color: #1d1d1f;
}

.paketConfigurator__upgrade-rows {
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  list-style: none;
}

.paketConfigurator__upgrade-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #1d1d1f;
}

.paketConfigurator__upgrade-row + .paketConfigurator__upgrade-row {
  margin-top: 10px;
}

.paketConfigurator__upgrade-row-label {
  min-width: 0;
}

.paketConfigurator__upgrade-row-price {
  flex: 0 0 auto;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.paketConfigurator__upgrade-row--included .paketConfigurator__upgrade-row-price {
  color: #1d1d1f;
}

.paketConfigurator__upgrade-extras-title {
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.5);
}

.paketConfigurator__upgrade-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paketConfigurator__upgrade-list li {
  position: relative;
  padding: 0 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.72);
}

.paketConfigurator__upgrade-list li + li {
  margin-top: 8px;
}

.paketConfigurator__upgrade-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 12px;
  height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.paketConfigurator__upgrade-col:last-child .paketConfigurator__upgrade-list li {
  color: #1d1d1f;
}

.paketConfigurator__upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.paketConfigurator__upgrade-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #232323;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paketConfigurator__upgrade-switch:hover {
  background: #3a3a3a;
}

.paketConfigurator__upgrade-switch:active {
  transform: scale(0.96);
}

.paketConfigurator__upgrade-stay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #1d1d1f;
  cursor: pointer;
}

.paketConfigurator__upgrade-stay:hover,
.paketConfigurator__upgrade-stay:focus-visible {
  background: #f5f5f7;
}

.paketConfigurator__addon-upsell {
  position: relative;
  margin: 28px 0 0;
  padding: 20px 20px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
}

.paketConfigurator__addon-upsell[hidden] {
  display: none;
}

.paketConfigurator__addon-upsell-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1d1d1f;
  cursor: pointer;
}

.paketConfigurator__addon-upsell-close svg {
  width: 16px;
  height: 16px;
}

.paketConfigurator__addon-upsell-close:hover,
.paketConfigurator__addon-upsell-close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

.paketConfigurator__addon-upsell-title {
  margin: 0 28px 8px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1d1d1f;
}

.paketConfigurator__addon-upsell-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.62);
}

.paketConfigurator__addon-upsell-lead[hidden] {
  display: none;
}

.paketConfigurator__addon-upsell-price {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.paketConfigurator__addon-upsell-price[hidden] {
  display: none;
}

.paketConfigurator__addon-upsell-rows {
  margin: 0 0 16px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  list-style: none;
}

.paketConfigurator__addon-upsell-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #1d1d1f;
}

.paketConfigurator__addon-upsell-rows li + li {
  margin-top: 8px;
}

.paketConfigurator__addon-upsell-rows li span:last-child {
  flex: 0 0 auto;
  font-weight: 500;
  color: #1d1d1f;
}

.paketConfigurator__addon-upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paketConfigurator__addon-upsell-accept,
.paketConfigurator__addon-upsell-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.paketConfigurator__addon-upsell-accept {
  border: 0;
  background: #1d1d1f;
  color: #fff;
}

.paketConfigurator__addon-upsell-accept:hover {
  background: #000;
}

.paketConfigurator__addon-upsell-dismiss {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #1d1d1f;
}

.paketConfigurator__addon-upsell-dismiss:hover,
.paketConfigurator__addon-upsell-dismiss:focus-visible,
.paketConfigurator__addon-upsell-accept:focus-visible,
.paketConfigurator__addon-upsell-close:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__upgrade-stay:focus-visible,
.paketConfigurator__upgrade-switch:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .paketConfigurator__upgrade-cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .paketConfigurator__compare-dialog {
    width: calc(100vw - 24px);
    border-radius: 18px;
  }

  .paketConfigurator__compare-dialog-inner {
    padding: 24px 20px 28px;
  }

  .paketConfigurator__compare-heading {
    margin-right: 44px;
    font-size: 22px;
  }

  .paketConfigurator__diff-table th,
  .paketConfigurator__diff-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .paketConfigurator__diff-plan-name {
    font-size: 14px;
  }
}

/* ------------------------------ CF7 form fields ------------------------------- */

.paketConfigurator__form-missing {
  padding: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.3);
  border-radius: 11px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

.paketConfigurator__cf7 .paketConfigurator__form-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.paketConfigurator__cf7 > .paketConfigurator__stack,
.paketConfigurator__cf7 > [data-configurator-addons],
.paketConfigurator__cf7 > .paketConfigurator__form-section {
  margin-bottom: clamp(72px, 25vh, 320px);
}

.paketConfigurator__cf7 .paketConfigurator__form-divider {
  display: none;
}

.paketConfigurator__cf7 .paketConfigurator__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paketConfigurator__cf7 .paketConfigurator__field-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
}

.paketConfigurator__cf7 .paketConfigurator__field-hint {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.4);
}

.paketConfigurator__cf7 .paketConfigurator__field:has(input[type="file"]) > p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.paketConfigurator__cf7
  .paketConfigurator__field:has(input[type="file"])
  > p
  > br,
.paketConfigurator__cf7
  .paketConfigurator__field:has(input[type="file"])
  .paketConfigurator__field-hint {
  display: none;
}

.paketConfigurator__cf7 .wpcf7-form-control-wrap {
  display: block;
}

.paketConfigurator__cf7 input[type="text"],
.paketConfigurator__cf7 input[type="email"],
.paketConfigurator__cf7 input[type="tel"],
.paketConfigurator__cf7 input[type="url"],
.paketConfigurator__cf7 textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.paketConfigurator__cf7 textarea {
  height: 190px;
  resize: vertical;
}

.paketConfigurator__cf7 input::placeholder,
.paketConfigurator__cf7 textarea::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.paketConfigurator__cf7 input:focus,
.paketConfigurator__cf7 textarea:focus {
  outline: none;
  border-color: #232323;
  box-shadow: inset 0 0 0 1px #232323;
}

/* File inputs styled as the dark "Välj fil" button (no-JS fallback) */

.paketConfigurator__cf7 input[type="file"] {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
}

.paketConfigurator__cf7 input[type="file"]::file-selector-button {
  height: 44px;
  margin-right: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 11px;
  background: #232323;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.paketConfigurator__cf7 input[type="file"]::file-selector-button:hover {
  background: #3a3a3a;
}

/* Custom file control: button (native input on top) + removable file list. */
.paketConfigurator__filefield {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.paketConfigurator__filewrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
}

.paketConfigurator__filewrap input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.paketConfigurator__file-btn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  background: #232323;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}

.paketConfigurator__filewrap:hover .paketConfigurator__file-btn {
  background: #3a3a3a;
}

.paketConfigurator__filewrap
  input[type="file"]:focus-visible
  ~ .paketConfigurator__file-btn {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.paketConfigurator__file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.paketConfigurator__file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 11px;
  background: #fff;
}

.paketConfigurator__file-item-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
  color: #1d1d1f;
}

.paketConfigurator__file-remove {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, 0.5);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.paketConfigurator__file-remove:hover,
.paketConfigurator__file-remove:focus-visible {
  color: #232323;
}

.paketConfigurator__file-remove:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 3px;
}

.paketConfigurator__file-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.62);
}

.paketConfigurator__file-help input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(35, 35, 35, 0.35);
  border-radius: 5px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px auto;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.paketConfigurator__file-help input[type="checkbox"]:hover {
  border-color: #232323;
}

.paketConfigurator__file-help input[type="checkbox"]:checked {
  border-color: #232323;
  background-color: #d8ff89;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none' viewBox='0 0 14 11'%3E%3Cpath stroke='%23232323' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 6l3.7 4L13 1'/%3E%3C/svg%3E");
}

.paketConfigurator__file-help input[type="checkbox"]:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

/* CF7 validation messages */

.paketConfigurator__cf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
}

.paketConfigurator__cf7 .wpcf7-spinner {
  display: block;
  margin: 8px auto 0;
}

/* --------------------------------- Summary ------------------------------------ */

.paketConfigurator__cf7 .paketConfigurator__summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px;
  border-radius: 16px;
  background: #f8f9fa;
  scroll-margin-top: 96px;
}

.paketConfigurator__summary-head {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.paketConfigurator__summary-title {
  margin: 0;
}

.paketConfigurator__summary-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paketConfigurator__summary-block--addons:has([hidden]) {
  display: none;
}

.paketConfigurator__summary-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #111;
}

.paketConfigurator__summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.paketConfigurator__summary-list--addons {
  margin: 0;
}

.paketConfigurator__summary-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.paketConfigurator__summary-item:first-child {
  padding-top: 2px;
}

.paketConfigurator--animate .paketConfigurator__summary-item--addon {
  animation: paketConfigurator-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes paketConfigurator-item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.paketConfigurator__summary-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #1d1d1f;
  transform: translateY(1px);
}

.paketConfigurator__summary-check svg {
  width: 13px;
  height: 13px;
}

.paketConfigurator__summary-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.62);
}

.paketConfigurator__summary-item-price {
  flex: 0 0 auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.48);
  white-space: nowrap;
}

.paketConfigurator__summary-item--addon .paketConfigurator__summary-check {
  color: #1d1d1f;
}

.paketConfigurator__summary-totals {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.paketConfigurator__summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.paketConfigurator__summary-total:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.paketConfigurator__summary-total--start:has([hidden]) {
  display: none;
}

.paketConfigurator__summary-total-label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.48);
}

.paketConfigurator__summary-total-value {
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #1d1d1f;
}

.paketConfigurator__summary-number {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}

.paketConfigurator__summary-suffix {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

.paketConfigurator__price-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.45);
}

.paketConfigurator__summary-startcost {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.48);
  font-variant-numeric: tabular-nums;
}

/* Submit button */

.paketConfigurator__cf7 .paketConfigurator__submit,
.paketConfigurator__cf7 input[type="submit"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 40px;
  border: 0;
  border-radius: 11px;
  background-color: #dbfa9c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23232323' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(50% + 78px) center;
  background-size: 20px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paketConfigurator__cf7 .paketConfigurator__submit:hover,
.paketConfigurator__cf7 input[type="submit"]:hover {
  filter: brightness(0.95);
}

.paketConfigurator__cf7 .paketConfigurator__submit:active,
.paketConfigurator__cf7 input[type="submit"]:active {
  transform: scale(0.985);
}

.paketConfigurator__submit-note {
  display: block;
  margin: 0;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.45);
  text-align: left;
}

.paketConfigurator__cf7 .paketConfigurator__summary > br,
.paketConfigurator__cf7 .paketConfigurator__summary > p:empty {
  display: none;
}

.paketConfigurator__cf7 .paketConfigurator__submitwrap .wpcf7-spinner {
  display: none;
}

/* ------------------------------ Scroll reveal --------------------------------- */

.paketConfigurator--animate .paketConfigurator__reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.paketConfigurator--animate .paketConfigurator__reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered options inside a revealed group */

.paketConfigurator--animate
  .paketConfigurator__reveal
  .paketConfigurator__option {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option {
  opacity: 1;
  transform: translateY(0);
}

.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option:nth-child(1) {
  transition-delay: 0.05s;
}
.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option:nth-child(2) {
  transition-delay: 0.1s;
}
.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option:nth-child(3) {
  transition-delay: 0.15s;
}
.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option:nth-child(4) {
  transition-delay: 0.2s;
}
.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option:nth-child(5) {
  transition-delay: 0.25s;
}
.paketConfigurator--animate
  .paketConfigurator__reveal.is-revealed
  .paketConfigurator__option:nth-child(6) {
  transition-delay: 0.3s;
}

/* --------------------------------- Chooser ------------------------------------ */

.paketConfigurator-chooser {
  padding: calc(
      var(--templateTheme-header-scroll-offset) + clamp(40px, 6vw, 88px)
    )
    0 clamp(40px, 6vw, 88px);
}

.paketConfigurator-chooser__header {
  max-width: 560px;
  margin-bottom: 40px;
}

.paketConfigurator-chooser__title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #1d1d1f;
}

.paketConfigurator-chooser__text {
  margin: 0;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.58);
}

.paketConfigurator-chooser__vat {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: rgba(0, 0, 0, 0.45);
}

.paketConfigurator-chooser__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.paketConfigurator-chooser__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: #1d1d1f;
  transition:
    border-color 0.22s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.paketConfigurator-chooser__card:hover {
  border-color: #232323;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.18);
}

.paketConfigurator-chooser__name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.paketConfigurator-chooser__subtitle {
  font-size: 13.5px;
  color: rgba(0, 0, 0, 0.5);
}

.paketConfigurator-chooser__price {
  margin-top: 12px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.paketConfigurator-chooser__price small {
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

.paketConfigurator-chooser__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14.5px;
  color: #1d1d1f;
}

.paketConfigurator-chooser__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.paketConfigurator-chooser__card:hover .paketConfigurator-chooser__cta svg {
  transform: translateX(4px);
}

/* -------------------------------- Responsive ---------------------------------- */

.paketConfigurator__jump {
  display: none;
}

@media (max-width: 980px) {
  .paketConfigurator-page {
    --paketConfigurator-jump: 40px;
  }

  .paketConfigurator {
    grid-template-columns: minmax(0, 1fr);
    padding-top: calc(
      var(--templateTheme-header-scroll-offset) +
        var(--paketConfigurator-topbar) + var(--paketConfigurator-jump) +
        clamp(20px, 3.5vh, 36px)
    );
  }

  .paketConfigurator__jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: fixed;
    top: calc(
      var(--templateTheme-wp-admin-bar) + var(--paketConfigurator-site-header) +
        var(--paketConfigurator-topbar)
    );
    left: 0;
    right: 0;
    z-index: 99;
    height: var(--paketConfigurator-jump);
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .paketConfigurator__jump-item {
    flex: 1 1 0;
    max-width: 140px;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.5);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
  }

  .paketConfigurator__jump-item.is-active {
    background: #1d1d1f;
    color: #fff;
  }

  .paketConfigurator__jump-item:focus-visible {
    outline: 2px solid #232323;
    outline-offset: 2px;
  }

  .paketConfigurator__title {
    font-size: clamp(32px, 8vw, 42px);
  }

  .paketConfigurator__media {
    position: relative;
    top: auto;
    height: auto;
    /* Space between the stacked gallery and the rail (row-gap is 0). */
    margin-bottom: clamp(32px, 6vw, 48px);
  }

  .paketConfigurator__gallery {
    height: auto;
    border-radius: 12px;
  }

  .paketConfigurator__gallery-track {
    height: auto;
    aspect-ratio: var(--paketConfigurator-media-ratio, 841 / 544);
    max-height: none;
    min-height: 0;
  }

  .paketConfigurator__rail {
    max-width: 560px;
  }

  .paketConfigurator__pager {
    display: none;
  }

  .paketConfigurator__topbar-startcost {
    display: none;
  }
}

@media (max-width: 560px) {
  /* Compact ribbon: shorter CTA label so name + price + button fit one line. */
  .paketConfigurator__topbar-cta {
    height: 30px;
    padding: 0 13px;
    font-size: 12px;
  }

  .paketConfigurator__topbar-cta-long {
    display: none;
  }

  .paketConfigurator__topbar-cta-short {
    display: inline;
  }

  .paketConfigurator__topbar-side {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .paketConfigurator__summary-number {
    font-size: 16px;
  }

  .paketConfigurator__cf7 .paketConfigurator__submit,
  .paketConfigurator__cf7 input[type="submit"] {
    background-position: calc(100% - 16px) center;
  }
}

/* --------------------- Submit flow: loading and success ----------------------- */

.paketConfigurator__submitwrap {
  position: relative;
  display: block;
  width: 100%;
}

.paketConfigurator__cf7 .paketConfigurator__submitwrap input[type="submit"] {
  transition:
    filter 0.2s ease,
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paketConfigurator__submitwrap.is-loading input[type="submit"],
.paketConfigurator__submitwrap.is-success input[type="submit"] {
  background-image: none;
  cursor: default;
}

.paketConfigurator__submitwrap.is-loading input[type="submit"] {
  animation: paketConfigurator-submit-pulse 1.4s ease-in-out infinite;
}

@keyframes paketConfigurator-submit-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.94);
  }
}

/* Spinner ring beside the "Skickar…" label */

.paketConfigurator__submit-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 52px);
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 999px;
  border: 2px solid rgba(35, 35, 35, 0.2);
  border-top-color: #232323;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.paketConfigurator__submitwrap.is-loading .paketConfigurator__submit-spinner {
  opacity: 1;
  animation: paketConfigurator-spin 0.8s linear infinite;
}

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

/* Drawn checkmark beside the "Skickat!" label */

.paketConfigurator__submit-check {
  position: absolute;
  top: 50%;
  left: calc(50% + 48px);
  width: 22px;
  height: 22px;
  margin-top: -11px;
  color: #232323;
  opacity: 0;
  pointer-events: none;
}

.paketConfigurator__submit-check svg {
  display: block;
  width: 100%;
  height: 100%;
}

.paketConfigurator__submit-check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.paketConfigurator__submitwrap.is-success .paketConfigurator__submit-check {
  opacity: 1;
}

.paketConfigurator__submitwrap.is-success
  .paketConfigurator__submit-check-path {
  animation: paketConfigurator-check-draw 0.45s cubic-bezier(0.22, 1, 0.36, 1)
    0.1s forwards;
}

@keyframes paketConfigurator-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Full-screen sent overlay before redirecting to the thank-you page */

.paketConfigurator__sent-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.paketConfigurator__sent-overlay.is-visible {
  opacity: 1;
}

.paketConfigurator__sent-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-inner {
  transform: translateY(0) scale(1);
}

.paketConfigurator__sent-badge {
  display: block;
  width: 72px;
  height: 72px;
  color: #232323;
}

.paketConfigurator__sent-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.paketConfigurator__sent-ring {
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  transform: rotate(-90deg);
  transform-origin: center;
}

.paketConfigurator__sent-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-ring {
  animation: paketConfigurator-ring-draw 0.6s cubic-bezier(0.22, 1, 0.36, 1)
    0.1s forwards;
}

.paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-tick {
  animation: paketConfigurator-tick-draw 0.4s cubic-bezier(0.22, 1, 0.36, 1)
    0.55s forwards;
}

@keyframes paketConfigurator-ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes paketConfigurator-tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.paketConfigurator__sent-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #1d1d1f;
}

.paketConfigurator__sent-text {
  margin: 0;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.55);
}

/* ------------------------------ Reduced motion -------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.page-template-paket-configurator .site-header,
  .paketConfigurator__topbar,
  .paketConfigurator__slide,
  .paketConfigurator__gallery-btn,
  .paketConfigurator__option-body,
  .paketConfigurator__summary-number,
  .paketConfigurator__topbar-cta,
  .paketConfigurator__topbar-chevron,
  .paketConfigurator__pager-item,
  .paketConfigurator__compare-icon,
  .paketConfigurator-chooser__card,
  .paketConfigurator-chooser__cta svg,
  .paketConfigurator__sent-overlay,
  .paketConfigurator__sent-inner {
    transition: none;
  }

  .paketConfigurator--animate .paketConfigurator__slide.is-active img,
  .paketConfigurator--animate .paketConfigurator__summary-item--addon,
  .paketConfigurator__submitwrap.is-loading input[type="submit"],
  .paketConfigurator__submitwrap.is-loading .paketConfigurator__submit-spinner,
  .paketConfigurator__submitwrap.is-success
    .paketConfigurator__submit-check-path,
  .paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-ring,
  .paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-tick {
    animation: none;
  }

  .paketConfigurator__submitwrap.is-success
    .paketConfigurator__submit-check-path,
  .paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-ring,
  .paketConfigurator__sent-overlay.is-visible .paketConfigurator__sent-tick {
    stroke-dashoffset: 0;
  }
}
