/* Let period controls follow the calculator's width, including its split layout. */
#pricing .price-calc-period {
  container: pricing-period / inline-size;
}

#pricing .price-calc-period > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pricing .price-calc-period label > input {
  flex: none;
}

#pricing .price-calc-period label > span {
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

@container pricing-period (min-width: 31rem) {
  #pricing .price-calc-period > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The decorative orbit, the illustration and its fallback share the same center. */
#pricing .blueprint-scene {
  --blueprint-art-start: 9px;
  --blueprint-art-end: 24px;
  container: pricing-blueprint / inline-size;
}

#pricing :is(.blueprint-pages, .blueprint-render) {
  inset-block: var(--blueprint-art-start) var(--blueprint-art-end);
}

#pricing .blueprint-orbit {
  top: calc(50% + (var(--blueprint-art-start) - var(--blueprint-art-end)) / 2);
  max-inline-size: calc(100% - 20px);
  max-block-size: calc(100% - var(--blueprint-art-start) - var(--blueprint-art-end) - 6px);
}

@container pricing-blueprint (max-width: 140px) {
  #pricing .blueprint-pages {
    transform: scale(.48);
  }
}

#pricing .trial-assurances strong {
  text-wrap: balance;
}

#pricing .trial-assurances .trial-phrase {
  display: inline-block;
  white-space: nowrap;
}

#pricing .trial-zero::after {
  right: 9px;
}

@media (min-width: 761px) {
  /* Fit the complete transparent plate and keep equal room above and below the text. */
  #pricing .trial-zero {
    grid-template-rows: minmax(28px, 1fr) auto minmax(28px, 1fr);
  }

  #pricing .trial-zero::before {
    background-size: 100% 100%;
  }
}

@media (max-width: 760px) {
  #pricing .trial-zero::after {
    top: 7px;
  }

  #pricing .trial-zero-label {
    padding-inline-end: 26px;
  }
}
