/*
 * plans-15 (template/plans/plans-15.php, category «پلن ها»): a host built as a
 * series of resources and a size of space, beside a navy summary of the plan
 * they make. base.css and plans.css come first (the period switch, the shared
 * look of a price). Design 2 «سری و حجم را خودتان بسازید» of the plans of
 * /host/high-traffic/, picked by the owner on 2026-11-14; the sizes of the
 * canvas at 1440 are rem of 14px, the root MojoCSS gives that width (and the
 * other widths their own, as the canvas did). The choices are radio inputs:
 * their checked state draws the option chosen, and the part `series` of
 * assets/js/components.js shows the plans of the series and the summary of the
 * plan chosen (the `hidden` blocks).
 */

.hd-p15 [hidden] {
	display: none !important;
}

.hd-p15-cfg {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 24rem;
	gap: 1.43rem;
	align-items: start;
}

.hd-p15-steps {
	display: flex;
	flex-direction: column;
	gap: 1.43rem;
	min-width: 0;
}

/* A step: a white card around its fieldset (step 2: the fieldset of each
   series), so the legend is a heading inside the card, not on its edge. */
.hd-p15-step {
	min-width: 0;
	margin: 0;
	padding: 1.5rem;
	border: 0;
	border-radius: 1.71rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px #DCE9F5, 0 1.4rem 2.6rem -1.8rem rgba(16, 63, 99, .3);
}

.hd-p15-fs,
.hd-p15-zg {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.hd-p15-sh {
	display: flex;
	align-items: center;
	gap: .7rem;
	float: none;
	width: 100%;
	margin: 0 0 1.2rem;
	padding: 0;
	font-size: 1.29rem;
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-p15-sn {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--hd-blue);
	color: #fff;
	font-size: 1rem;
	font-weight: 900;
}

/* The radio inputs stay in the page for the keyboard and screen readers. */
.hd-p15-rs {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Step 1: the series. */
.hd-p15-opts {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .75rem;
}

.hd-p15-so {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .2rem;
	margin: 0;
	padding: 1rem .9rem .95rem;
	border-radius: 1.2rem;
	background: #F4F9FE;
	box-shadow: inset 0 0 0 1.5px #D3E4F4;
	cursor: pointer;
	transition: box-shadow .3s ease, transform .2s ease;
}

.hd-p15-so:hover {
	box-shadow: inset 0 0 0 1.5px var(--hd-blue);
}

.hd-p15-so:active {
	transform: scale(.975);
}

/* The navy of the series chosen: a circle that grows over the card from
   where it was pressed (--x and --y, set by the script; the middle with the
   keyboard), with the lighter top of the design over it; on the card left it
   fades. Under the words (the card isolates its layers). */
.hd-p15-fill {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.hd-p15-fill::before,
.hd-p15-fill::after {
	content: "";
	position: absolute;
	opacity: 0;
}

.hd-p15-fill::before {
	top: var(--y, 50%);
	left: var(--x, 50%);
	width: 360%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--hd-navy);
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0s .4s, opacity .35s ease;
}

.hd-p15-fill::after {
	inset: 0;
	background: linear-gradient(180deg, #164B74, rgba(22, 75, 116, 0));
	transition: opacity .3s ease;
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-fill::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	transition: transform .65s cubic-bezier(.22, .8, .24, 1), opacity .15s ease;
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-fill::after {
	opacity: 1;
	transition: opacity .4s ease .25s;
}

/* Its yellow edge closes in from a little outside, and a yellow tick pops in
   at the corner. */
.hd-p15-so::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 2px var(--hd-yellow);
	opacity: 0;
	transform: scale(1.06);
	transition: opacity .2s ease, transform .3s ease;
	pointer-events: none;
}

.hd-p15-rs:checked + .hd-p15-so::after {
	opacity: 1;
	transform: none;
	transition: opacity .25s ease .1s, transform .55s cubic-bezier(.34, 1.56, .64, 1) .1s;
}

.hd-p15-ck {
	position: absolute;
	top: .85rem;
	inset-inline-end: .8rem;
	display: grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	background: var(--hd-yellow);
	color: var(--hd-navy);
	opacity: 0;
	transform: scale(.3) rotate(-60deg);
	transition: opacity .15s ease, transform .2s ease;
}

.hd-p15-ck svg {
	width: .95rem;
	height: .95rem;
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-ck {
	opacity: 1;
	transform: none;
	transition: opacity .2s ease .18s, transform .55s cubic-bezier(.34, 1.56, .64, 1) .18s;
}

.hd-p15-lv {
	display: flex;
	align-items: flex-end;
	gap: .18rem;
	height: 1.1rem;
	margin-bottom: .35rem;
}

.hd-p15-lv i {
	width: .42rem;
	border-radius: 2px;
	background: #CFE0F2;
	transform-origin: 50% 100%;
	transition: background-color .3s ease;
}

.hd-p15-lv i:nth-child(1) { height: 30%; }
.hd-p15-lv i:nth-child(2) { height: 47%; }
.hd-p15-lv i:nth-child(3) { height: 64%; }
.hd-p15-lv i:nth-child(4) { height: 82%; }
.hd-p15-lv i:nth-child(n+5) { height: 100%; }

.hd-p15-lv i.on {
	background: var(--hd-blue);
}

.hd-p15-oc {
	font-size: 1.43rem;
	line-height: 1.3;
	font-weight: 900;
	letter-spacing: .02em;
	color: var(--hd-navy);
	transition: color .25s ease;
}

.hd-p15-ol {
	font-size: .86rem;
	line-height: 1.6;
	font-weight: 700;
	color: #456583;
	white-space: nowrap;
	transition: color .25s ease;
}

.hd-p15-ob {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	min-height: 1.6rem;
	padding: 0 .6rem;
	border-radius: 99px;
	background: var(--hd-yellow);
	color: var(--hd-navy);
	font-size: .71rem;
	line-height: 1.4;
	font-weight: 900;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

.hd-p15-ob svg {
	width: .86rem;
	height: .86rem;
}

/* The series chosen: the navy and the yellow edge are the layers above; its
   words turn light as the navy reaches them, its bars yellow one by one. */
.hd-p15-rs:checked + .hd-p15-so {
	box-shadow: 0 1rem 1.8rem -1rem rgba(16, 63, 99, .7);
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-oc {
	color: #fff;
	transition-delay: .1s;
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-ol {
	color: #CBDEF1;
	transition-delay: .14s;
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i {
	background: rgba(255, 255, 255, .2);
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i.on {
	background: var(--hd-yellow);
}

.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(1) { transition-delay: .12s; }
.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(2) { transition-delay: .19s; }
.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(3) { transition-delay: .26s; }
.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(4) { transition-delay: .33s; }
.hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(n+5) { transition-delay: .4s; }

.hd-p15-rs:focus-visible + :is(.hd-p15-so, .hd-p15-zc) {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
}

/* Step 2: the sizes of the series chosen, or its plans. A chip draws its
   face on ::before, under the pill of the size chosen (.hd-p15-pill, put
   there by the script), which is under the words of every chip: the box
   isolates the three layers, and a chip itself never gets a transform or an
   opacity (that would lift its face over the pill), only its face and its
   words do. Without the script the chip chosen is blue itself. */
.hd-p15-chips {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
}

.hd-p15-zc {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: .25rem;
	min-width: 5.4rem;
	min-height: max(3.14rem, 40px);
	margin: 0;
	padding: .55rem 1rem;
	border-radius: 99px;
	font-size: 1.21rem;
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-navy);
	cursor: pointer;
	transition: color .2s ease;
}

.hd-p15-zc::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: #F4F9FE;
	box-shadow: inset 0 0 0 1.5px #D3E4F4;
	transition: box-shadow .2s ease;
}

.hd-p15-zc small {
	font-size: .79rem;
	font-weight: 700;
	color: #456583;
	transition: color .2s ease;
}

.hd-p15-zc.is-t {
	flex-direction: column;
	align-items: center;
	gap: 0;
	min-width: 8.5rem;
	border-radius: 1rem;
}

.hd-p15-zc:hover::before {
	box-shadow: inset 0 0 0 1.5px var(--hd-blue);
}

.hd-p15-rs:checked + .hd-p15-zc {
	color: #fff;
}

.hd-p15-rs:checked + .hd-p15-zc::before {
	background: var(--hd-blue);
	box-shadow: 0 .8rem 1.4rem -.8rem rgba(2, 71, 174, .7);
}

.hd-p15-rs:checked + .hd-p15-zc small {
	color: #D6E6F7;
}

/* The pill slides from the size before to the size chosen: the script puts
   it with a transform, and .is-glide eases the move; the words of the chip
   chosen turn white as it arrives. */
.hd-p15-pill {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	pointer-events: none;
}

.hd-p15-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 99px;
	background: var(--hd-blue);
	box-shadow: 0 .8rem 1.4rem -.8rem rgba(2, 71, 174, .7);
}

.hd-p15-chips.is-t .hd-p15-pill::before {
	border-radius: 1rem;
}

.hd-p15-pill.is-glide {
	transition: transform .5s cubic-bezier(.22, .8, .24, 1);
}

.hd-p15.has-pill .hd-p15-pill {
	display: block;
}

.hd-p15.has-pill .hd-p15-rs:checked + .hd-p15-zc::before {
	background: #F4F9FE;
	box-shadow: inset 0 0 0 1.5px #D3E4F4;
}

.hd-p15.has-pill .hd-p15-rs:checked + .hd-p15-zc,
.hd-p15.has-pill .hd-p15-rs:checked + .hd-p15-zc small {
	transition-delay: .16s;
}

.hd-p15-zn {
	margin: 1rem 0 0;
	font-size: .93rem;
	line-height: 1.7;
	font-weight: 700;
	color: #456583;
}

/* Under the steps: the word on entry processes and the line of help. */
.hd-p15-ep {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	font-size: .93rem;
	line-height: 1.9;
	font-weight: 600;
	color: #2F5677;
}

.hd-p15-ep p {
	margin: 0;
}

.hd-p15-ep b,
.hd-p15-ep strong {
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-p15-epi {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	margin-top: .1rem;
	border-radius: 50%;
	background: #E1EEFA;
	color: var(--hd-blue);
}

.hd-p15-epi svg,
.hd-p15-hi svg {
	width: 1.15rem;
	height: 1.15rem;
}

.hd-p15-help {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .9rem 1.2rem;
	border-radius: 1.43rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px #DCE9F5;
}

.hd-p15-hi {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: #FFF3C4;
	color: var(--hd-navy);
}

.hd-p15-hi svg {
	width: 1.5rem;
	height: 1.5rem;
}

.hd-p15-ht {
	flex: 1;
	margin: 0;
	font-size: 1rem;
	line-height: 1.8;
	font-weight: 700;
	color: var(--hd-navy);
	text-wrap: pretty;
}

.hd-p15-hb {
	flex: none;
}

.hd-p15-hb .button {
	height: auto;
	min-height: max(3.21rem, 40px);
	padding: 0 1.5rem;
	border-radius: 99px;
	background: #fff;
	color: var(--hd-blue);
	font-size: 1rem;
	font-weight: 900;
	white-space: nowrap;
	box-shadow: inset 0 0 0 1.5px #BBD3EC;
}

/* The summary: the plan chosen, its order button, the features and the locations. */
.hd-p15-sum {
	position: relative;
	overflow: hidden;
	padding: 1.6rem 1.5rem 1.5rem;
	border-radius: 1.71rem;
	background: radial-gradient(120% 55% at 100% 0, #1B5584 0, var(--hd-navy) 62%);
	color: #fff;
	box-shadow: 0 1.6rem 2.8rem -1.8rem rgba(16, 63, 99, .65);
}

.hd-p15-st {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 800;
	color: #CBDEF1;
}

.hd-p15-pn {
	margin: .2rem 0 0;
	font-size: 2.14rem;
	line-height: 1.35;
	font-weight: 900;
	letter-spacing: .01em;
	word-spacing: .12em;
	color: var(--hd-yellow);
}

.hd-p15-ql {
	margin: .9rem 0 0;
	padding: 0;
	list-style: none;
}

.hd-p15-ql li {
	position: relative;
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .11);
	font-size: .93rem;
	line-height: 1.5;
}

/* The share of the figure in the largest of its kind on the component (--to,
   from the template): a thin yellow line over the row's rule, from its start. */
.hd-p15-qm {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(270deg, var(--hd-yellow), #FFE27A);
	box-shadow: 0 0 .45rem rgba(255, 204, 0, .45);
	transform: scaleX(var(--to, 0));
	transform-origin: 100% 50%;
}

[dir=ltr] .hd-p15-qm {
	background: linear-gradient(90deg, var(--hd-yellow), #FFE27A);
	transform-origin: 0 50%;
}

.hd-p15-qi {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: .6rem;
	background: rgba(255, 255, 255, .1);
	color: var(--hd-yellow);
}

/* A ring that leaves the icon of a figure that changed. */
.hd-p15-qi::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1.5px var(--hd-yellow);
	opacity: 0;
	pointer-events: none;
}

.hd-p15-qi svg {
	width: 1.15rem;
	height: 1.15rem;
}

.hd-p15-qk {
	font-weight: 600;
	color: #C9DDF0;
}

.hd-p15-qv {
	margin-inline-start: auto;
	font-weight: 900;
	color: #fff;
	white-space: nowrap;
}

.hd-p15 .hd-p15-pr {
	margin: 1rem 0 .9rem;
}

.hd-p15 .hd-p15-pr .hd-pp {
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0 .5rem;
}

.hd-p15 .hd-p15-pr .hd-pp small {
	font-size: .93rem;
	color: #CBDEF1;
	opacity: 1;
}

.hd-p15 .hd-p15-pr .hd-pp-n b {
	font-size: 2rem;
	line-height: 1.25;
	font-weight: 900;
	color: #fff;
}

.hd-p15 .hd-p15-pr .hd-pp-n .hd-unit {
	font-size: .86rem;
	color: #DCEBF8;
}

/* The order button of the plan: the theme's button, yellow on the navy box. */
.hd-p15 .button.hd-p15-btn {
	display: flex;
	width: 100%;
	height: auto;
	min-height: max(3.21rem, 40px);
	padding: 0 1.2rem;
	gap: .55rem;
	border-radius: 99px;
	background: var(--hd-yellow);
	color: var(--hd-navy);
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.4;
	word-spacing: .08em;
	box-shadow: 0 .9rem 1.6rem -.9rem rgba(0, 0, 0, .55);
}

.hd-p15-btn.hd-go::after {
	width: 1.14rem;
	height: 1.14rem;
}

/* A light that crosses the order button when it becomes the button of
   another plan, from the start side; under the words (.ripple-button is a
   layer of its own and hides its overflow). */
.hd-p15 .button.hd-p15-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 70%);
	transform: translateX(-110%);
	pointer-events: none;
}

[dir=rtl] .hd-p15 .button.hd-p15-btn::before {
	transform: translateX(110%);
}

.hd-p15-btn.button-disabled::after {
	display: none;
}

.hd-p15-sf {
	margin-top: 1.3rem;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255, 255, 255, .2);
}

.hd-p15-fl {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-p15-fl li {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 2.1rem;
	padding: 0 .7rem 0 .8rem;
	border-radius: 99px;
	background: rgba(255, 255, 255, .08);
	font-size: .79rem;
	line-height: 1.4;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
}

.hd-p15-fi {
	display: inline-flex;
	color: var(--hd-yellow);
}

.hd-p15-fi svg {
	width: 1rem;
	height: 1rem;
}

.hd-p15-places {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
	margin: .9rem 0 0;
	padding: 0;
	list-style: none;
}

.hd-p15-places li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 3.14rem;
	padding: 0 .6rem;
	border-radius: .9rem;
	background: rgba(255, 255, 255, .09);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
	font-size: 1.07rem;
	line-height: 1.4;
	font-weight: 900;
	color: #fff;
}

.hd-p15-places img {
	width: 2rem;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}

.hd-p15-note {
	margin-top: .85rem;
	font-size: .93rem;
	line-height: 1.8;
	font-weight: 600;
	color: #C9DDF0;
}

.hd-p15-note p {
	margin: 0;
}

.hd-p15-note b,
.hd-p15-note strong {
	font-weight: 900;
	color: var(--hd-yellow);
}

@media (max-width: 1139.98px) {
	.hd-p15-cfg {
		grid-template-columns: minmax(0, 1fr) 21.5rem;
	}

	.hd-p15-opts {
		gap: .55rem;
	}

	.hd-p15-so {
		padding: .9rem .7rem .85rem;
	}

	.hd-p15-ol {
		white-space: normal;
	}
}

/* One column: the summary under the steps. */
@media (max-width: 991.98px) {
	.hd-p15-cfg {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767.98px) {
	.hd-p15-opts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 1.1rem;
	}
}

@media (max-width: 575.98px) {
	.hd-p15-step {
		padding: 1.1rem .9rem;
	}

	.hd-p15-sh {
		font-size: 1.14rem;
	}

	.hd-p15-opts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-p15-so.has-badge {
		grid-column: 1 / -1;
	}

	.hd-p15-zc {
		min-width: 4.6rem;
		padding: .45rem .8rem;
		font-size: 1.07rem;
	}

	.hd-p15-sum {
		padding: 1.3rem 1.1rem;
	}

	.hd-p15-pn {
		font-size: 1.79rem;
	}

	.hd-p15-help {
		flex-wrap: wrap;
		padding: .9rem;
	}

	.hd-p15-ht {
		flex-basis: calc(100% - 3.6rem);
	}

	.hd-p15-hb,
	.hd-p15-hb .button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ motion
   The classes the script (the part `series`) gives: .is-wait until the
   section is first seen (the bars of the series chosen held low), then
   .is-live; .is-new on a group of sizes or a plan shown after a choice; .is-ch
   on the rows of that plan whose figure changed (their yellow line starts at
   the share of the plan before, --from); .is-pp after the first switch of the
   period; and on the summary .is-wait (its yellow lines empty) until it is
   first seen, then .is-in. A block shown again plays its animations again,
   as it comes back from display: none. Transforms and opacity only; none of
   it with less motion. */

.hd-p15.is-wait .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i {
	transform: scaleY(.2);
}

.hd-p15-sum.is-wait .hd-p15-qm {
	transform: scaleX(0);
}

/* The bars of the series chosen rise one by one as they turn yellow. */
.hd-p15.is-live .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i {
	animation: hd-p15-rise .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.hd-p15.is-live .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(1) { animation-delay: .08s; }
.hd-p15.is-live .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(2) { animation-delay: .15s; }
.hd-p15.is-live .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(3) { animation-delay: .22s; }
.hd-p15.is-live .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(4) { animation-delay: .29s; }
.hd-p15.is-live .hd-p15-rs:checked + .hd-p15-so .hd-p15-lv i:nth-child(n+5) { animation-delay: .36s; }

/* The sizes of a series newly chosen come up one by one (their faces and
   words, not the chips themselves), the pill pops in with the one chosen,
   the note after them. */
.hd-p15.is-live .hd-p15-zg.is-new .hd-p15-zc::before,
.hd-p15.is-live .hd-p15-zg.is-new .hd-p15-zc > * {
	animation: hd-p15-up .45s cubic-bezier(.22, .8, .24, 1) both;
	animation-delay: calc(var(--i, 0) * 30ms);
}

.hd-p15.is-live .hd-p15-zg.is-new .hd-p15-pill::before {
	animation: hd-p15-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
	animation-delay: calc(var(--i, 0) * 30ms + 60ms);
}

.hd-p15.is-live .hd-p15-zg.is-new .hd-p15-zn {
	animation: hd-p15-up .45s cubic-bezier(.22, .8, .24, 1) .2s both;
}

/* The plan chosen: its name rolls up, then each figure that changed, a ring
   leaving its icon; the yellow lines move from the plan before; the price
   rolls up (at a switch of the period too) and a light crosses the button. */
.hd-p15.is-live .hd-p15-x.is-new .hd-p15-pn {
	animation: hd-p15-roll .5s cubic-bezier(.22, .8, .24, 1) both;
}

.hd-p15-ql li:nth-child(1) { --d: .06s; }
.hd-p15-ql li:nth-child(2) { --d: .12s; }
.hd-p15-ql li:nth-child(3) { --d: .18s; }
.hd-p15-ql li:nth-child(4) { --d: .24s; }
.hd-p15-ql li:nth-child(n+5) { --d: .3s; }

.hd-p15.is-live .hd-p15-x.is-new .is-ch .hd-p15-qv {
	animation: hd-p15-roll .45s cubic-bezier(.22, .8, .24, 1) var(--d, 0s) both;
}

.hd-p15.is-live .hd-p15-x.is-new .is-ch .hd-p15-qi::after {
	animation: hd-p15-ping .7s ease-out var(--d, 0s) both;
}

.hd-p15-sum.is-in .hd-p15-qm {
	animation: hd-p15-meter .8s cubic-bezier(.22, .8, .24, 1) var(--d, 0s) both;
}

.hd-p15.is-live .hd-p15-x.is-new .hd-pp.active .hd-pp-n,
.hd-p15.is-live.is-pp .hd-p15-x .hd-pp.active .hd-pp-n {
	animation: hd-p15-roll .5s cubic-bezier(.22, .8, .24, 1) .12s both;
}

.hd-p15.is-live .hd-p15-x.is-new .button.hd-p15-btn:not(.button-disabled)::before {
	animation: hd-p15-shine .9s cubic-bezier(.4, 0, .2, 1) .35s both;
}

[dir=rtl] .hd-p15.is-live .hd-p15-x.is-new .button.hd-p15-btn:not(.button-disabled)::before {
	animation-name: hd-p15-shine-rtl;
}

@keyframes hd-p15-rise {
	from {
		transform: scaleY(.2);
	}

	60% {
		transform: scaleY(1.12);
	}
}

@keyframes hd-p15-up {
	from {
		opacity: 0;
		transform: translateY(.7rem);
	}
}

@keyframes hd-p15-pop {
	from {
		opacity: 0;
		transform: scale(.55);
	}
}

@keyframes hd-p15-roll {
	from {
		opacity: 0;
		transform: translateY(70%);
	}
}

@keyframes hd-p15-ping {
	from {
		opacity: 1;
		transform: none;
	}

	to {
		opacity: 0;
		transform: scale(1.7);
	}
}

@keyframes hd-p15-meter {
	from {
		transform: scaleX(var(--from, 0));
	}
}

@keyframes hd-p15-shine {
	from {
		transform: translateX(-110%);
	}

	to {
		transform: translateX(110%);
	}
}

@keyframes hd-p15-shine-rtl {
	from {
		transform: translateX(110%);
	}

	to {
		transform: translateX(-110%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-p15 *,
	.hd-p15 *::before,
	.hd-p15 *::after {
		animation: none !important;
		transition: none !important;
	}
}

@media (forced-colors: active) {
	.hd-p15 :is(.hd-p15-so, .hd-p15-zc) {
		border: 1px solid CanvasText;
	}

	.hd-p15-rs:checked + :is(.hd-p15-so, .hd-p15-zc) {
		outline: 3px solid Highlight;
	}

	.hd-p15 :is(.hd-p15-pill, .hd-p15-qm, .hd-p15-fill),
	.hd-p15 .button.hd-p15-btn::before {
		display: none;
	}
}
