/* ==========================================================
   ELLabs parent portal: sign in, sign up, enroll, dashboard.
   Uses the site's color tokens from Additional CSS.
   ========================================================== */

.ellabs-svg {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ellabs-portal {
	--ok: #4f8f1f;
	--line: rgba(36, 52, 66, .14);
	color: var(--ellabs-ink);
}

.ellabs-portal *,
.ellabs-portal *::before,
.ellabs-portal *::after {
	box-sizing: border-box;
}

.ellabs-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Header account pill ---------- */

.ellabs-header nav.wp-block-navigation {
	margin-left: auto;
}

.ellabs-account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 14px;
	padding: 7px 14px 7px 8px;
	border: 2px solid var(--ellabs-ink);
	border-radius: 999px;
	color: var(--ellabs-ink);
	font-weight: 800;
	font-size: .95rem;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .35s var(--ellabs-spring), background-color .2s;
}

.ellabs-account .ellabs-svg {
	width: 26px;
	height: 26px;
	padding: 4px;
	border-radius: 50%;
	background: var(--ellabs-sky-tint);
}

.ellabs-account__avatar {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ellabs-coral);
	color: #fff;
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: .9rem;
	animation: ellabs-p-pop .6s .4s var(--ellabs-spring) both;
}

@media (hover: hover) {
	.ellabs-account:hover {
		background: var(--ellabs-sun);
		transform: translateY(-2px) rotate(-2deg);
	}
}

@media (max-width: 599px) {
	.ellabs-account {
		margin-left: 8px;
		padding: 5px;
	}

	.ellabs-account span:not(.ellabs-account__avatar) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

/* ---------- Page stage behind the sign in and sign up cards ---------- */

.ellabs-portal-stage {
	position: relative;
	isolation: isolate;
	margin-block: 0 !important;
	padding: clamp(28px, 5vw, 72px) var(--wp--preset--spacing--30) clamp(56px, 7vw, 96px) !important;
	background:
		radial-gradient(rgba(36, 52, 66, .09) 1.5px, transparent 2px) 0 0 / 26px 26px,
		linear-gradient(160deg, var(--ellabs-sun-tint), #fff 45%, var(--ellabs-sky-tint));
}

/* ---------- Sign in and sign up ---------- */

.ellabs-auth {
	display: grid;
	grid-template-columns: .9fr 1fr;
	max-width: 1060px;
	margin: 0 auto;
	border-radius: 40px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 0 rgba(36, 52, 66, .06), 0 40px 80px -40px rgba(36, 52, 66, .45);
	animation: ellabs-p-rise .8s var(--ellabs-spring) both;
}

.ellabs-auth__art {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 560px;
	padding: clamp(28px, 4vw, 48px);
	overflow: hidden;
	background: var(--ellabs-sky);
	color: #fff;
}

.ellabs-auth--signup .ellabs-auth__art {
	background: var(--ellabs-coral);
}

.ellabs-auth__art-title {
	position: relative;
	margin: 0 0 22px;
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.02;
	animation: ellabs-p-rise .8s .15s var(--ellabs-spring) both;
}

.ellabs-auth__perks,
.ellabs-auth__steps {
	position: relative;
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 800;
}

.ellabs-auth__perks li,
.ellabs-auth__steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	animation: ellabs-p-slide .7s .35s var(--ellabs-spring) both;
}

.ellabs-auth__perks li:nth-child(2),
.ellabs-auth__steps li:nth-child(2) { animation-delay: .45s; }
.ellabs-auth__perks li:nth-child(3),
.ellabs-auth__steps li:nth-child(3) { animation-delay: .55s; }

.ellabs-auth__perks .ellabs-svg,
.ellabs-auth__steps b {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 7px;
	border-radius: 50%;
	background: #fff;
	color: var(--ellabs-ink);
	font-family: var(--wp--preset--font-family--fredoka);
}

.ellabs-auth__steps b {
	padding: 0;
	background: var(--ellabs-sun);
}

.ellabs-portal__otter {
	position: absolute;
	right: 18px;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	animation: ellabs-peek 1s .6s var(--ellabs-spring) both;
}

.ellabs-portal__otter .ellabs-hero__otter {
	width: clamp(130px, 15vw, 190px);
}

.ellabs-portal__otter .ellabs-hero__bubble {
	margin: 0 0 70px;
	animation-delay: 1.2s;
}

/* Floating paper shapes in the art panel */
.ellabs-shape {
	position: absolute;
	border-radius: 50%;
	opacity: .9;
	animation: ellabs-p-float 7s ease-in-out infinite;
}

.ellabs-shape--sun {
	top: -40px;
	right: -30px;
	width: 170px;
	height: 170px;
	background: var(--ellabs-sun);
}

.ellabs-shape--sky {
	bottom: 120px;
	left: -50px;
	width: 120px;
	height: 120px;
	border-radius: 30px;
	background: rgba(255, 255, 255, .22);
	animation-duration: 9s;
	animation-delay: -2s;
}

.ellabs-shape--coral {
	top: 46%;
	right: 22%;
	width: 26px;
	height: 26px;
	background: var(--ellabs-coral);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .35);
	animation-duration: 5s;
}

.ellabs-auth--signup .ellabs-shape--coral {
	background: var(--ellabs-sky);
}

.ellabs-shape--leaf {
	bottom: -60px;
	left: 30%;
	width: 150px;
	height: 150px;
	border-radius: 110px 18px;
	background: var(--ellabs-leaf);
	animation-duration: 8s;
	animation-delay: -4s;
}

.ellabs-auth__card {
	padding: clamp(28px, 5vw, 60px);
}

.ellabs-auth__card h1,
.ellabs-enroll h2 {
	margin: 0 0 8px;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 700;
	line-height: 1.05;
}

.ellabs-auth__lead {
	margin: 0 0 28px;
	font-size: 1.1rem;
	opacity: .8;
}

.ellabs-auth__switch {
	margin: 24px 0 0;
	text-align: center;
	font-weight: 600;
}

.ellabs-auth__switch a,
.ellabs-form__row a,
.ellabs-linkbtn {
	color: #1f7fb4;
	font-weight: 800;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ellabs-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}

/* The 6-digit code box: big, spaced-out digits */
#ellabs-code {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: .4em;
}

@media (max-width: 860px) {
	.ellabs-auth {
		grid-template-columns: 1fr;
		border-radius: 32px;
	}

	.ellabs-auth__art {
		min-height: 0;
		padding-bottom: 150px;
	}

	.ellabs-auth__perks,
	.ellabs-auth__steps {
		gap: 8px;
		font-size: .95rem;
	}

	.ellabs-portal__otter .ellabs-hero__otter {
		width: 120px;
	}

	.ellabs-portal__otter .ellabs-hero__bubble {
		margin-bottom: 50px;
	}
}

/* ---------- Form fields: floating labels, icons, friendly errors ---------- */

.ellabs-form {
	display: grid;
	gap: 16px;
}

.ellabs-field {
	position: relative;
	animation: ellabs-p-rise .6s var(--ellabs-spring) both;
}

.ellabs-form > .ellabs-field:nth-of-type(2),
.ellabs-block__fields > .ellabs-field:nth-child(2) { animation-delay: .06s; }
.ellabs-form > .ellabs-field:nth-of-type(3),
.ellabs-block__fields > .ellabs-field:nth-child(3) { animation-delay: .12s; }
.ellabs-form > .ellabs-field:nth-of-type(4) { animation-delay: .18s; }

.ellabs-field input,
.ellabs-field textarea {
	display: block;
	width: 100%;
	min-height: 60px;
	padding: 24px 18px 8px 54px;
	border: 2px solid var(--line);
	border-radius: 18px;
	background: #fbfcfd;
	color: var(--ellabs-ink);
	font: inherit;
	font-size: 1.05rem;
	transition: border-color .2s, box-shadow .25s, background-color .2s;
}

.ellabs-field textarea {
	min-height: 110px;
	padding-left: 18px;
	resize: vertical;
}

.ellabs-field--password input {
	padding-right: 54px;
}

.ellabs-field input:hover,
.ellabs-field textarea:hover {
	border-color: rgba(36, 52, 66, .3);
}

.ellabs-field input:focus,
.ellabs-field textarea:focus {
	outline: none;
	border-color: var(--ellabs-sky);
	background: #fff;
	box-shadow: 0 0 0 5px rgba(63, 164, 217, .18);
}

.ellabs-field label {
	position: absolute;
	top: 19px;
	left: 54px;
	right: 50px;
	color: rgba(36, 52, 66, .62);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	transform-origin: 0 0;
	transition: transform .25s var(--ellabs-spring), color .2s;
}

.ellabs-field textarea + label {
	left: 18px;
}

.ellabs-field label span {
	font-weight: 400;
}

.ellabs-field input:focus + label,
.ellabs-field input:not(:placeholder-shown) + label,
.ellabs-field input[type="date"] + label,
.ellabs-field textarea:focus + label,
.ellabs-field textarea:not(:placeholder-shown) + label {
	transform: translateY(-11px) scale(.78);
	color: var(--ellabs-ink);
}

.ellabs-field input:focus + label,
.ellabs-field textarea:focus + label {
	color: #1f7fb4;
}

.ellabs-field__icon {
	position: absolute;
	top: 12px;
	left: 12px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: var(--ellabs-sun-tint);
	pointer-events: none;
	transition: background-color .2s, transform .45s var(--ellabs-spring);
}

.ellabs-field__icon .ellabs-svg {
	width: 19px;
	height: 19px;
}

.ellabs-field:focus-within .ellabs-field__icon {
	background: var(--ellabs-sky-tint);
	color: #1f7fb4;
	transform: rotate(-8deg) scale(1.08);
}

.ellabs-field__eye {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ellabs-ink);
	cursor: pointer;
	transition: background-color .2s, transform .35s var(--ellabs-spring);
}

.ellabs-field__eye:hover {
	background: var(--ellabs-sky-tint);
}

.ellabs-field__eye:active {
	transform: scale(.88);
}

.ellabs-field__eye .ellabs-svg:last-child,
.ellabs-field__eye[aria-pressed="true"] .ellabs-svg:first-child {
	display: none;
}

.ellabs-field__eye[aria-pressed="true"] .ellabs-svg:last-child {
	display: block;
}

.ellabs-field__hint,
.ellabs-field__error {
	margin: 6px 4px 0;
	font-size: .9rem;
}

.ellabs-field__hint {
	opacity: .7;
}

.ellabs-field__error {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #b3283a;
	font-weight: 700;
	animation: ellabs-p-rise .35s var(--ellabs-ease) both;
}

.ellabs-field.has-error input,
.ellabs-field.has-error textarea {
	border-color: var(--ellabs-coral);
	background: #fff8f9;
}

.ellabs-field.has-error .ellabs-field__icon {
	background: var(--ellabs-coral-tint);
	color: #b3283a;
}

.ellabs-field.has-error,
.ellabs-form.is-shaking {
	animation: ellabs-p-shake .45s ease both;
}

.ellabs-field.is-valid .ellabs-field__icon {
	background: var(--ellabs-leaf-tint);
	color: var(--ok);
}

/* Checkbox */
.ellabs-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-weight: 600;
}

.ellabs-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.ellabs-check input {
	position: absolute;
	opacity: 0;
}

.ellabs-check span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 2px solid rgba(36, 52, 66, .3);
	border-radius: 9px;
	transition: background-color .2s, border-color .2s, transform .35s var(--ellabs-spring);
}

.ellabs-check span::after {
	content: "";
	width: 11px;
	height: 6px;
	margin-top: -3px;
	border: 3px solid var(--ellabs-ink);
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg) scale(0);
	transition: transform .3s var(--ellabs-spring);
}

.ellabs-check input:checked + span {
	border-color: var(--ellabs-sun);
	background: var(--ellabs-sun);
	transform: rotate(-6deg);
}

.ellabs-check input:checked + span::after {
	transform: rotate(-45deg) scale(1);
}

.ellabs-check input:focus-visible + span {
	outline: 3px solid var(--ellabs-sky);
	outline-offset: 2px;
}

/* Password strength */
.ellabs-meter {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin-top: -6px;
}

.ellabs-meter span {
	height: 7px;
	border-radius: 7px;
	background: rgba(36, 52, 66, .1);
	overflow: hidden;
}

.ellabs-meter span::before {
	content: "";
	display: block;
	height: 100%;
	background: var(--c, var(--ellabs-coral));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s var(--ellabs-spring);
}

.ellabs-meter[data-score="1"] { --c: var(--ellabs-coral); }
.ellabs-meter[data-score="2"] { --c: var(--ellabs-sun); }
.ellabs-meter[data-score="3"] { --c: var(--ellabs-sky); }
.ellabs-meter[data-score="4"] { --c: var(--ellabs-leaf); }

.ellabs-meter[data-score="1"] span:nth-child(-n+1)::before,
.ellabs-meter[data-score="2"] span:nth-child(-n+2)::before,
.ellabs-meter[data-score="3"] span:nth-child(-n+3)::before,
.ellabs-meter[data-score="4"] span:nth-child(-n+4)::before {
	transform: scaleX(1);
}

.ellabs-meter span:nth-child(2)::before { transition-delay: .05s; }
.ellabs-meter span:nth-child(3)::before { transition-delay: .1s; }
.ellabs-meter span:nth-child(4)::before { transition-delay: .15s; }

/* Submit */
.ellabs-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	margin-top: 6px;
	border: 0;
	cursor: pointer;
	font-size: 1.1rem;
}

.ellabs-submit .ellabs-svg {
	transition: transform .35s var(--ellabs-spring);
}

.ellabs-submit:hover .ellabs-svg {
	transform: translateX(4px) rotate(-8deg);
}

.ellabs-submit.is-busy {
	pointer-events: none;
}

.ellabs-submit.is-busy .ellabs-svg {
	animation: ellabs-p-spin .8s linear infinite;
}

/* Notes and banners */
.ellabs-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 14px 18px;
	border-radius: 18px;
	font-weight: 600;
	animation: ellabs-p-pop .5s var(--ellabs-spring) both;
}

.ellabs-note p {
	margin: 0;
}

.ellabs-note--error {
	background: var(--ellabs-coral-tint);
	color: #9e2233;
}

.ellabs-note--ok {
	background: var(--ellabs-leaf-tint);
	margin-bottom: 24px;
}

.ellabs-note--ok .ellabs-svg {
	color: var(--ok);
}

/* ---------- Enroll: choose new or returning ---------- */

.ellabs-choose {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(16px, 3vw, 32px);
	max-width: 980px;
	margin: 0 auto;
}

.ellabs-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: clamp(26px, 4vw, 44px);
	border-radius: 36px;
	overflow: hidden;
	color: var(--ellabs-ink);
	text-decoration: none;
	background: var(--solid);
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -8px 0 rgba(0, 0, 0, .12), 0 30px 40px -28px var(--solid);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
	transition: transform .5s var(--ellabs-spring), box-shadow .3s;
	animation: ellabs-p-rise .8s var(--ellabs-spring) both;
}

.ellabs-choice.is-tilting {
	transition: transform .1s linear, box-shadow .3s;
}

.ellabs-choice + .ellabs-choice {
	animation-delay: .12s;
}

.ellabs-choice::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2.5px) 0 0 / 22px 22px;
	-webkit-mask: linear-gradient(135deg, #000, transparent 60%);
	mask: linear-gradient(135deg, #000, transparent 60%);
	pointer-events: none;
}

.ellabs-choice--sun { --solid: var(--ellabs-sun); }
.ellabs-choice--sky { --solid: var(--ellabs-sky); color: #fff; }

.ellabs-choice__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 18px;
	border-radius: 24px;
	background: #fff;
	color: var(--ellabs-ink);
	box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .45);
	animation: ellabs-p-bob 3.2s ease-in-out infinite;
}

.ellabs-choice--sky .ellabs-choice__icon {
	animation-delay: -1.6s;
}

.ellabs-choice__icon .ellabs-svg {
	width: 34px;
	height: 34px;
}

.ellabs-choice__kicker {
	font-weight: 800;
	font-size: 1.1rem;
	opacity: .85;
}

.ellabs-choice__title {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 700;
	line-height: 1;
}

.ellabs-choice__text {
	max-width: 30ch;
	font-size: 1.08rem;
	line-height: 1.5;
}

.ellabs-choice__go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-top: 20px;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--ellabs-ink);
	color: #fff;
	font-weight: 800;
}

.ellabs-choice__go .ellabs-svg {
	transition: transform .35s var(--ellabs-spring);
}

@media (hover: hover) {
	.ellabs-choice:hover {
		--lift: -8px;
	}

	.ellabs-choice:hover .ellabs-choice__go .ellabs-svg {
		transform: translateX(6px);
	}
}

@media (max-width: 700px) {
	.ellabs-choose {
		grid-template-columns: 1fr;
	}
}

/* ---------- Enroll form ---------- */

.ellabs-enroll {
	max-width: 860px;
	margin: 0 auto;
}

.ellabs-enroll .ellabs-form {
	gap: 22px;
}

.ellabs-block {
	position: relative;
	display: grid;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: clamp(22px, 4vw, 36px);
	border: 0;
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 0 0 3px var(--tint), 0 30px 50px -40px rgba(36, 52, 66, .6);
	animation: ellabs-p-rise .7s var(--ellabs-spring) both;
}

.ellabs-block:nth-of-type(2) { animation-delay: .1s; }
.ellabs-block:nth-of-type(3) { animation-delay: .2s; }

.ellabs-block--sun { --tint: var(--ellabs-sun-tint); --solid: var(--ellabs-sun); }
.ellabs-block--sky { --tint: var(--ellabs-sky-tint); --solid: var(--ellabs-sky); }
.ellabs-block--leaf { --tint: var(--ellabs-leaf-tint); --solid: var(--ellabs-leaf); }

.ellabs-block legend {
	display: flex;
	align-items: center;
	gap: 12px;
	float: left;
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 600;
}

.ellabs-block legend + * {
	clear: both;
}

.ellabs-block__num {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--solid);
	font-size: 1.2rem;
	transform: rotate(-6deg);
}

.ellabs-block__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ellabs-block__fields > .ellabs-field:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.ellabs-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border-radius: 20px;
	background: var(--tint);
}

.ellabs-summary p {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px 8px 10px;
	border-radius: 999px;
	background: #fff;
	font-weight: 700;
	animation: ellabs-p-pop .5s var(--ellabs-spring) both;
}

.ellabs-summary p:nth-child(2) { animation-delay: .08s; }
.ellabs-summary p:nth-child(3) { animation-delay: .16s; }
.ellabs-summary p:nth-child(4) { animation-delay: .24s; }

.ellabs-summary .ellabs-svg {
	width: 18px;
	height: 18px;
}

.ellabs-edit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 9px 16px;
	border: 2px solid var(--ellabs-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ellabs-ink);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background-color .2s, transform .35s var(--ellabs-spring);
}

.ellabs-edit .ellabs-svg {
	width: 18px;
	height: 18px;
}

.ellabs-edit:hover {
	background: var(--ellabs-sun);
	transform: rotate(-3deg);
}

/* With the script on, locked blocks show the summary; Edit opens the fields */
.ellabs-js .ellabs-block.is-locked .ellabs-block__fields,
.ellabs-js .ellabs-block:not(.is-locked) .ellabs-summary {
	display: none;
}

.ellabs-block.is-opening .ellabs-block__fields {
	animation: ellabs-p-rise .5s var(--ellabs-spring) both;
}

/* Program cards */
.ellabs-programs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.ellabs-prog-pick {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px 16px;
	border: 3px solid transparent;
	border-radius: 24px;
	background: var(--tint);
	cursor: pointer;
	transition: transform .4s var(--ellabs-spring), border-color .2s, box-shadow .3s, background-color .2s;
}

.ellabs-prog-pick--sky { --tint: var(--ellabs-sky-tint); --solid: var(--ellabs-sky); }
.ellabs-prog-pick--sun { --tint: var(--ellabs-sun-tint); --solid: var(--ellabs-sun); }
.ellabs-prog-pick--coral { --tint: var(--ellabs-coral-tint); --solid: var(--ellabs-coral); }
.ellabs-prog-pick--leaf { --tint: var(--ellabs-leaf-tint); --solid: var(--ellabs-leaf); }

.ellabs-prog-pick input {
	position: absolute;
	opacity: 0;
}

.ellabs-prog-pick__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 8px;
	border-radius: 16px;
	background: var(--solid);
	transition: transform .5s var(--ellabs-spring);
}

.ellabs-prog-pick b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.2rem;
	font-weight: 600;
}

.ellabs-prog-pick small {
	font-size: .9rem;
	line-height: 1.35;
	opacity: .8;
}

.ellabs-prog-pick__tick {
	position: absolute;
	top: 12px;
	right: 12px;
	color: var(--ok);
	transform: scale(0);
	transition: transform .4s var(--ellabs-spring);
}

.ellabs-prog-pick:hover {
	transform: translateY(-4px);
}

.ellabs-prog-pick:hover .ellabs-prog-pick__icon {
	transform: rotate(-10deg) scale(1.08);
}

.ellabs-prog-pick:has(input:checked) {
	border-color: var(--ellabs-ink);
	background: #fff;
	box-shadow: 6px 6px 0 var(--solid);
	transform: translateY(-4px) rotate(-1deg);
}

.ellabs-prog-pick:has(input:checked) .ellabs-prog-pick__tick {
	transform: scale(1);
}

.ellabs-prog-pick:has(input:focus-visible) {
	outline: 3px solid var(--ellabs-sky);
	outline-offset: 3px;
}

.ellabs-enroll__send {
	display: grid;
	justify-items: center;
	gap: 8px;
	text-align: center;
}

.ellabs-enroll__send .ellabs-submit {
	width: min(100%, 360px);
}

.ellabs-enroll__send p {
	margin: 0;
	opacity: .75;
}

/* ---------- Shop order form ---------- */

.ellabs-select,
.ellabs-file,
.ellabs-qty {
	display: grid;
	gap: 6px;
	align-content: start;
}

.ellabs-select label,
.ellabs-file label,
.ellabs-qty label {
	font-size: .92rem;
	font-weight: 700;
	color: rgba(36, 52, 66, .72);
}

.ellabs-select select,
.ellabs-file input {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 2px solid var(--line);
	border-radius: 16px;
	background: #fbfcfd;
	color: var(--ellabs-ink);
	font: inherit;
	transition: border-color .2s, box-shadow .25s;
}

.ellabs-select select:focus,
.ellabs-file input:focus-visible {
	outline: none;
	border-color: var(--ellabs-sky);
	box-shadow: 0 0 0 5px rgba(63, 164, 217, .18);
}

.ellabs-select.has-error select,
.ellabs-file.has-error input {
	border-color: var(--ellabs-coral);
}

.ellabs-block__fields > .ellabs-select {
	align-self: end;
}

.ellabs-sizechart {
	border-radius: 20px;
	background: var(--tint);
}

.ellabs-sizechart summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	font-weight: 800;
	cursor: pointer;
}

.ellabs-sizechart img {
	display: block;
	width: calc(100% - 28px);
	height: auto;
	margin: 0 14px;
	border-radius: 14px;
}

.ellabs-sizechart p {
	margin: 10px 18px 16px;
	font-size: .95rem;
}

.ellabs-items {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
	padding: 14px 16px;
	border: 2px solid var(--line);
	border-radius: 22px;
	transition: border-color .2s, background-color .2s;
}

.ellabs-item.is-picked {
	border-color: var(--solid);
	background: var(--tint);
}

.ellabs-item__name {
	display: grid;
	gap: 2px;
}

.ellabs-item__name b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.2rem;
	font-weight: 600;
}

.ellabs-item__name span {
	font-size: .95rem;
	opacity: .8;
}

.ellabs-item__opts {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 10px;
}

.ellabs-item__opts .ellabs-select {
	width: 130px;
}

.ellabs-qty__box {
	display: flex;
	align-items: center;
	overflow: hidden;
	border: 2px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.ellabs-qty__box button {
	width: 46px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--ellabs-ink);
	font-size: 1.4rem;
	font-weight: 800;
	cursor: pointer;
}

.ellabs-qty__box button:hover {
	background: var(--ellabs-sun-tint);
}

.ellabs-qty__box input {
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--ellabs-ink);
	font: inherit;
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
}

.ellabs-qty__box input::-webkit-inner-spin-button,
.ellabs-qty__box input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ellabs-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 0;
	padding: 16px 20px;
	border-radius: 20px;
	background: var(--ellabs-ink);
	color: #fff;
}

.ellabs-total span {
	font-weight: 800;
}

.ellabs-total b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.8rem;
	font-weight: 600;
}

.ellabs-total small {
	flex-basis: 100%;
	color: var(--ellabs-sun);
	font-weight: 700;
}

.ellabs-bank {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 6px 18px;
	border-radius: 20px;
	background: var(--tint);
}

.ellabs-bank div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 0;
}

.ellabs-bank div + div {
	border-top: 1px dashed rgba(36, 52, 66, .2);
}

.ellabs-bank dt {
	opacity: .75;
}

.ellabs-bank dd {
	margin: 0;
	font-weight: 800;
}

@media (max-width: 560px) {
	.ellabs-item {
		display: grid;
	}

	.ellabs-item__opts {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ellabs-item__opts .ellabs-select {
		width: auto;
	}

	.ellabs-qty {
		grid-column: 1 / -1;
	}

	.ellabs-qty__box input {
		flex: 1;
	}
}

@media (max-width: 860px) {
	.ellabs-programs {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.ellabs-block__fields {
		grid-template-columns: 1fr;
	}

	.ellabs-block legend {
		font-size: 1.35rem;
	}
}

/* ---------- Dashboard ---------- */

.ellabs-portal-page {
	margin-block: 0 !important;
	padding: 0 !important;
}

.ellabs-dash {
	padding-bottom: clamp(48px, 7vw, 96px);
}

.ellabs-dash > :not(.ellabs-dash__hello) {
	width: min(1180px, 100% - 2 * var(--wp--preset--spacing--30));
	margin-inline: auto;
}

.ellabs-dash .ellabs-pagehead h1 {
	max-width: 16ch !important;
	font-size: clamp(2.6rem, 6.4vw, 5rem);
}

.ellabs-dash__date {
	margin: 0 0 10px !important;
	font-weight: 800;
	opacity: .7;
}

.ellabs-dash__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0 !important;
}

.ellabs-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px 7px 9px;
	border-radius: 999px;
	background: #fff;
	font-weight: 800;
	font-size: .95rem;
	box-shadow: 0 8px 16px -12px rgba(36, 52, 66, .5);
	animation: ellabs-p-pop .5s var(--ellabs-spring) both;
}

.ellabs-chip:nth-child(2) { animation-delay: .1s; }
.ellabs-chip:nth-child(3) { animation-delay: .2s; }

.ellabs-chip .ellabs-svg {
	width: 18px;
	height: 18px;
}

.ellabs-chip--sky .ellabs-svg { color: #1f7fb4; }
.ellabs-chip--sun .ellabs-svg { color: #b98900; }
.ellabs-chip--coral .ellabs-svg { color: #c9364a; }
.ellabs-chip--leaf .ellabs-svg,
.ellabs-chip--ok .ellabs-svg { color: var(--ok); }
.ellabs-chip--wait .ellabs-svg { color: #b98900; animation: ellabs-p-spin 6s linear infinite; }

/* Alerts */
.ellabs-dash__alerts {
	display: grid;
	gap: 12px;
	margin-top: -36px;
	position: relative;
	z-index: 2;
}

.ellabs-alert {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 0 0 3px var(--tint), 0 24px 40px -30px rgba(36, 52, 66, .6);
	animation: ellabs-p-rise .7s .2s var(--ellabs-spring) both;
}

.ellabs-alert + .ellabs-alert { animation-delay: .3s; }

.ellabs-alert > div {
	flex: 1;
}

.ellabs-alert b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.2rem;
	font-weight: 600;
}

.ellabs-alert p {
	margin: 2px 0 0;
}

.ellabs-alert__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 18px;
	background: var(--solid);
}

.ellabs-alert--due { --tint: var(--ellabs-sun-tint); --solid: var(--ellabs-sun); }
.ellabs-alert--due.is-late { --tint: var(--ellabs-coral-tint); --solid: var(--ellabs-coral); }
.ellabs-alert--due.is-late .ellabs-alert__icon { color: #fff; }
.ellabs-alert--info { --tint: var(--ellabs-sky-tint); --solid: var(--ellabs-sky-tint); }
.ellabs-alert--ok,
.ellabs-alert--calm { --tint: var(--ellabs-leaf-tint); --solid: var(--ellabs-leaf-tint); }
.ellabs-alert--ok .ellabs-alert__icon,
.ellabs-alert--calm .ellabs-alert__icon { color: var(--ok); }
.ellabs-alert--info .ellabs-alert__icon { color: #1f7fb4; }

.ellabs-alert--due .ellabs-alert__icon .ellabs-svg {
	transform-origin: 50% 10%;
	animation: ellabs-p-ring 2.4s ease-in-out infinite;
}

.ellabs-alert__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	text-decoration: none;
}

.ellabs-alert--due.is-late .ellabs-alert__btn {
	background: var(--ellabs-coral);
	color: #fff;
}

@media (max-width: 600px) {
	.ellabs-dash__alerts {
		margin-top: 0;
	}

	.ellabs-alert {
		flex-wrap: wrap;
	}

	.ellabs-alert__btn {
		width: 100%;
		justify-content: center;
	}
}

/* Big buttons */
.ellabs-dash__tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 32px;
}

.ellabs-tilebtn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 170px;
	padding: 22px;
	border: 0;
	border-radius: 30px;
	overflow: hidden;
	background: var(--solid);
	color: var(--ellabs-ink);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -8px 0 rgba(0, 0, 0, .12), 0 24px 36px -26px var(--solid);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
	transition: transform .5s var(--ellabs-spring), box-shadow .3s;
	animation: ellabs-p-rise .7s var(--ellabs-spring) both;
}

.ellabs-tilebtn.is-tilting {
	transition: transform .1s linear;
}

.ellabs-tilebtn:nth-child(2) { animation-delay: .08s; }
.ellabs-tilebtn:nth-child(3) { animation-delay: .16s; }
.ellabs-tilebtn:nth-child(4) { animation-delay: .24s; }

.ellabs-tilebtn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(rgba(255, 255, 255, .4) 2px, transparent 2.5px) 0 0 / 20px 20px;
	-webkit-mask: linear-gradient(120deg, transparent 40%, #000);
	mask: linear-gradient(120deg, transparent 40%, #000);
	pointer-events: none;
}

.ellabs-tilebtn--sky { --solid: var(--ellabs-sky); color: #fff; }
.ellabs-tilebtn--sun { --solid: var(--ellabs-sun); }
.ellabs-tilebtn--leaf { --solid: var(--ellabs-leaf); }
.ellabs-tilebtn--coral { --solid: var(--ellabs-coral); color: #fff; }

.ellabs-tilebtn__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: auto;
	border-radius: 18px;
	background: #fff;
	color: var(--ellabs-ink);
	box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .5);
	transition: transform .5s var(--ellabs-spring);
}

.ellabs-tilebtn__icon .ellabs-svg {
	width: 26px;
	height: 26px;
}

.ellabs-tilebtn b {
	margin-top: 18px;
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	font-weight: 600;
	line-height: 1.1;
}

.ellabs-tilebtn small {
	font-size: .95rem;
	font-weight: 700;
	opacity: .85;
}

.ellabs-tilebtn[aria-expanded="true"] {
	--lift: -6px;
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -8px 0 rgba(0, 0, 0, .12), 0 0 0 4px #fff, 0 0 0 7px var(--ellabs-ink), 0 24px 36px -26px var(--solid);
}

.ellabs-tilebtn[aria-expanded="true"] .ellabs-tilebtn__icon {
	animation: ellabs-p-bob 2.6s ease-in-out infinite;
}

@media (hover: hover) {
	.ellabs-tilebtn:hover {
		--lift: -6px;
	}

	.ellabs-tilebtn:hover .ellabs-tilebtn__icon {
		transform: rotate(-10deg) scale(1.1);
	}
}

@media (max-width: 860px) {
	.ellabs-dash__tiles {
		grid-template-columns: 1fr 1fr;
	}

	.ellabs-tilebtn {
		min-height: 150px;
	}
}

/* Panels */
.ellabs-dash__panels {
	margin-top: 24px;
}

.ellabs-panel {
	padding: clamp(22px, 4vw, 40px);
	border-radius: 34px;
	background: var(--tint);
}

.ellabs-panel + .ellabs-panel {
	margin-top: 24px;
}

.ellabs-js .ellabs-panel {
	display: none;
}

.ellabs-js .ellabs-panel.is-open {
	display: block;
	animation: ellabs-p-rise .55s var(--ellabs-spring) both;
}

.ellabs-panel--sky { --tint: var(--ellabs-sky-tint); --solid: var(--ellabs-sky); }
.ellabs-panel--sun { --tint: var(--ellabs-sun-tint); --solid: var(--ellabs-sun); }
.ellabs-panel--leaf { --tint: var(--ellabs-leaf-tint); --solid: var(--ellabs-leaf); }

.ellabs-panel h2 {
	margin: 0 0 20px;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.ellabs-empty {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px;
	border: 3px dashed rgba(36, 52, 66, .18);
	border-radius: 24px;
	background: rgba(255, 255, 255, .6);
	font-weight: 600;
}

.ellabs-empty p {
	margin: 0;
}

.ellabs-empty .ellabs-svg {
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	animation: ellabs-p-bob 3s ease-in-out infinite;
}

/* Attendance */
@property --ring {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

.ellabs-attend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(20px, 4vw, 48px);
	margin-bottom: 24px;
}

.ellabs-ring {
	--ring: var(--p);
	display: grid;
	place-items: center;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, #fff 74%, transparent 75%),
		conic-gradient(var(--ellabs-sky) calc(var(--ring) * 1%), rgba(36, 52, 66, .1) 0);
	animation: ellabs-p-ring-fill 1.6s .3s var(--ellabs-ease) both;
}

.ellabs-ring span {
	display: grid;
	text-align: center;
	font-weight: 700;
}

.ellabs-ring b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 2.6rem;
	line-height: 1;
}

.ellabs-legend {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
}

.ellabs-legend li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ellabs-legend li::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 6px;
	background: var(--c);
}

.ellabs-legend b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.4rem;
}

.is-present { --c: var(--ellabs-leaf); }
.is-late { --c: var(--ellabs-sun); }
.is-absent { --c: var(--ellabs-coral); }

.ellabs-days {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-days li {
	display: grid;
	justify-items: center;
	padding: 10px 6px;
	border-radius: 18px;
	background: #fff;
	box-shadow: inset 0 -5px 0 var(--c, rgba(36, 52, 66, .1));
	animation: ellabs-p-pop .45s var(--ellabs-spring) both;
}

.ellabs-days li:nth-child(n+2) { animation-delay: .04s; }
.ellabs-days li:nth-child(n+4) { animation-delay: .08s; }
.ellabs-days li:nth-child(n+6) { animation-delay: .12s; }
.ellabs-days li:nth-child(n+8) { animation-delay: .16s; }
.ellabs-days li:nth-child(n+10) { animation-delay: .2s; }
.ellabs-days li:nth-child(n+12) { animation-delay: .24s; }

.ellabs-days b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.6rem;
	line-height: 1.1;
}

.ellabs-days small {
	font-size: .8rem;
	font-weight: 800;
	opacity: .7;
}

/* Grades */
.ellabs-grades {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-grades li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 18px 20px;
	border-radius: 24px;
	background: #fff;
	animation: ellabs-p-rise .5s var(--ellabs-spring) both;
}

.ellabs-grades li:nth-child(2) { animation-delay: .06s; }
.ellabs-grades li:nth-child(3) { animation-delay: .12s; }
.ellabs-grades li:nth-child(n+4) { animation-delay: .18s; }

.ellabs-grades b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.25rem;
	font-weight: 600;
}

.ellabs-grade {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ellabs-sun);
	font-weight: 800;
	transform: rotate(-3deg);
}

.ellabs-grades p {
	flex-basis: 100%;
	margin: 0;
	opacity: .8;
}

/* Files */
.ellabs-files {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-files li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 12px 12px 14px;
	border-radius: 22px;
	background: #fff;
	animation: ellabs-p-slide .5s var(--ellabs-spring) both;
	transition: transform .35s var(--ellabs-spring);
}

.ellabs-files li:nth-child(2) { animation-delay: .06s; }
.ellabs-files li:nth-child(3) { animation-delay: .12s; }
.ellabs-files li:nth-child(n+4) { animation-delay: .18s; }

.ellabs-files li:hover {
	transform: translateX(4px);
}

.ellabs-files__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--ellabs-leaf-tint);
	color: var(--ok);
}

.ellabs-files__name {
	display: grid;
	flex: 1;
	min-width: 0;
}

.ellabs-files__name b {
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ellabs-files__name small {
	opacity: .7;
	font-weight: 700;
}

.ellabs-files__get {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--ellabs-ink);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: transform .35s var(--ellabs-spring), background-color .2s;
}

.ellabs-files__get:hover {
	background: #172431;
	transform: translateY(-2px);
}

.ellabs-files__get:hover .ellabs-svg {
	animation: ellabs-p-drop .6s var(--ellabs-spring);
}

@media (max-width: 520px) {
	.ellabs-files__get {
		padding: 10px;
		font-size: 0;
	}
}

/* Confetti on "account ready" and "enrollment sent" */
.ellabs-confetti {
	position: relative;
	overflow: visible;
}

.ellabs-confetti__bit {
	position: absolute;
	top: 30%;
	left: 50%;
	width: 10px;
	height: 14px;
	border-radius: 3px;
	pointer-events: none;
	animation: ellabs-p-confetti 1.4s var(--ellabs-ease) forwards;
}

/* ---------- Keyframes ---------- */

@keyframes ellabs-p-rise {
	from { opacity: 0; transform: translateY(24px) scale(.98); }
}

@keyframes ellabs-p-slide {
	from { opacity: 0; transform: translateX(-20px); }
}

@keyframes ellabs-p-pop {
	from { opacity: 0; transform: scale(.6); }
}

@keyframes ellabs-p-float {
	50% { transform: translate(8px, -14px) rotate(8deg); }
}

@keyframes ellabs-p-bob {
	50% { transform: translateY(-6px) rotate(-4deg); }
}

@keyframes ellabs-p-shake {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

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

@keyframes ellabs-p-ring {
	0%, 60%, 100% { transform: rotate(0); }
	10%, 30%, 50% { transform: rotate(14deg); }
	20%, 40% { transform: rotate(-14deg); }
}

@keyframes ellabs-p-ring-fill {
	from { --ring: 0; }
}

@keyframes ellabs-p-drop {
	40% { transform: translateY(4px); }
}

@keyframes ellabs-p-confetti {
	0% { opacity: 1; transform: translate(0, 0) rotate(0); }
	100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

@media (prefers-reduced-motion: reduce) {
	.ellabs-portal *,
	.ellabs-portal,
	.ellabs-account__avatar {
		animation: none !important;
		transition: none !important;
	}
}

.ellabs-portal-wrap {
	padding-inline: var(--wp--preset--spacing--30) !important;
}

/* Phones: keep the colorful panel short so the form is on the first screen */
@media (max-width: 600px) {
	.ellabs-auth__art {
		padding: 24px 24px 96px;
	}

	.ellabs-auth__art-title {
		max-width: 11ch;
		margin: 0;
		font-size: 1.9rem;
	}

	.ellabs-auth__perks,
	.ellabs-auth__steps,
	.ellabs-shape--coral {
		display: none;
	}

	.ellabs-portal__otter .ellabs-hero__otter {
		width: 96px;
	}

	.ellabs-portal__otter .ellabs-hero__bubble {
		margin-bottom: 36px;
	}
}

/* ---------- Browser autofill: keep our look and move the label up ---------- */

@keyframes ellabs-p-autofill {
	from { opacity: 1; }
}

.ellabs-field input:-webkit-autofill {
	-webkit-box-shadow: inset 0 0 0 60px #fbfcfd;
	-webkit-text-fill-color: var(--ellabs-ink);
	caret-color: var(--ellabs-ink);
	animation: ellabs-p-autofill .01s;
}

.ellabs-field input:-webkit-autofill:focus {
	-webkit-box-shadow: inset 0 0 0 60px #fff, 0 0 0 5px rgba(63, 164, 217, .18);
}

.ellabs-field input:-webkit-autofill::first-line {
	font-family: var(--wp--preset--font-family--nunito, Nunito), sans-serif;
	font-size: 1.05rem;
}

.ellabs-field input:-webkit-autofill + label,
.ellabs-field.is-filled label {
	transform: translateY(-11px) scale(.78);
	color: var(--ellabs-ink);
}

/* ---------- Name menu in the header ---------- */

.ellabs-menu {
	position: relative;
	margin-left: 14px;
}

.ellabs-menu > summary {
	margin-left: 0;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.ellabs-menu > summary::-webkit-details-marker {
	display: none;
}

.ellabs-account .ellabs-account__chev .ellabs-svg {
	width: 18px;
	height: 18px;
	padding: 0;
	border-radius: 0;
	background: none;
	transition: transform .4s var(--ellabs-spring);
}

.ellabs-menu[open] > summary {
	background: var(--ellabs-sun);
}

.ellabs-menu[open] .ellabs-account__chev .ellabs-svg {
	transform: rotate(180deg);
}

.ellabs-menu__panel {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 200;
	width: 260px;
	padding: 10px;
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 0 0 2px var(--ellabs-ink), 8px 8px 0 var(--ellabs-sun), 0 30px 50px -20px rgba(36, 52, 66, .5);
	transform-origin: calc(100% - 30px) 0;
	animation: ellabs-p-menu .4s var(--ellabs-spring) both;
}

.ellabs-menu__panel::before {
	content: "";
	position: absolute;
	top: -8px;
	right: 26px;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: #fff;
	box-shadow: -2px -2px 0 var(--ellabs-ink);
	transform: rotate(45deg);
}

.ellabs-menu__who {
	display: grid;
	margin: 0 0 6px;
	padding: 10px 12px 12px;
	border-bottom: 2px dashed rgba(36, 52, 66, .15);
	color: var(--ellabs-ink);
}

.ellabs-menu__who b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.15rem;
	font-weight: 600;
}

.ellabs-menu__who small {
	overflow: hidden;
	font-size: .88rem;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: .7;
}

.ellabs-menu__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 8px;
	border-radius: 16px;
	color: var(--ellabs-ink);
	font-weight: 800;
	text-decoration: none;
	transition: background-color .2s, transform .35s var(--ellabs-spring);
	animation: ellabs-p-slide .45s var(--ellabs-spring) both;
}

.ellabs-menu__item:nth-of-type(2) { animation-delay: .05s; }
.ellabs-menu__item:nth-of-type(3) { animation-delay: .1s; }
.ellabs-menu__item:nth-of-type(4) { animation-delay: .15s; }

.ellabs-menu__item .ellabs-svg {
	width: 36px;
	height: 36px;
	padding: 8px;
	border-radius: 12px;
	background: var(--tint, var(--ellabs-sky-tint));
	transition: transform .45s var(--ellabs-spring);
}

.ellabs-menu__item:nth-of-type(2) { --tint: var(--ellabs-sun-tint); }
.ellabs-menu__item:nth-of-type(3) { --tint: var(--ellabs-leaf-tint); }

.ellabs-menu__item--out {
	--tint: var(--ellabs-coral-tint);
	margin-top: 6px;
	color: #b3283a;
}

.ellabs-menu__item:hover,
.ellabs-menu__item:focus-visible {
	background: #f6f8fa;
	transform: translateX(4px);
}

.ellabs-menu__item:hover .ellabs-svg {
	transform: rotate(-10deg) scale(1.08);
}

@keyframes ellabs-p-menu {
	from { opacity: 0; transform: translateY(-10px) scale(.85); }
}

@media (max-width: 599px) {
	.ellabs-menu {
		margin-left: 8px;
	}

	.ellabs-menu__panel {
		width: min(260px, calc(100vw - 32px));
	}
}

/* ---------- Profile and Settings ---------- */

.ellabs-account-page {
	display: grid;
	gap: 22px;
	max-width: 860px;
	margin: 0 auto;
}

.ellabs-account-page .ellabs-form {
	gap: 22px;
}

.ellabs-account-page .ellabs-block .ellabs-submit {
	justify-self: start;
	width: auto;
	padding-inline: 28px;
}

.ellabs-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: fit-content;
	padding: 6px;
	border-radius: 999px;
	background: var(--ellabs-sky-tint);
	animation: ellabs-p-rise .6s var(--ellabs-spring) both;
}

.ellabs-subnav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 12px;
	border-radius: 999px;
	color: var(--ellabs-ink);
	font-weight: 800;
	text-decoration: none;
	transition: background-color .2s, transform .35s var(--ellabs-spring);
}

.ellabs-subnav .ellabs-svg {
	width: 18px;
	height: 18px;
}

.ellabs-subnav a:hover {
	background: rgba(255, 255, 255, .7);
	transform: translateY(-2px);
}

.ellabs-subnav a.is-current {
	background: #fff;
	box-shadow: 0 8px 16px -12px rgba(36, 52, 66, .6);
}

.ellabs-idcard {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	border-radius: 30px;
	background: var(--ellabs-leaf);
	box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -8px 0 rgba(0, 0, 0, .1);
	animation: ellabs-p-rise .7s .05s var(--ellabs-spring) both;
}

.ellabs-idcard__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 24px;
	background: var(--ellabs-coral);
	color: #fff;
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 2.2rem;
	font-weight: 700;
	box-shadow: 0 0 0 5px #fff;
	transform: rotate(-6deg);
	animation: ellabs-p-bob 3.2s ease-in-out infinite;
}

.ellabs-idcard div {
	display: grid;
	min-width: 0;
}

.ellabs-idcard b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 600;
	line-height: 1.15;
}

.ellabs-idcard small {
	overflow: hidden;
	font-size: .95rem;
	font-weight: 700;
	text-overflow: ellipsis;
}

.ellabs-block__num .ellabs-svg {
	width: 22px;
	height: 22px;
}

.ellabs-block__now {
	margin: 0;
	padding: 12px 16px;
	border-radius: 16px;
	background: var(--tint);
}


/* ---------- Family dashboard (/family/) ---------- */

.ellabs-fam .ellabs-dash__tiles {
	grid-template-columns: repeat(var(--n, 4), 1fr);
}

.ellabs-tilebtn--ink { --solid: var(--ellabs-ink); color: #fff; }
.ellabs-panel--coral { --tint: var(--ellabs-coral-tint); --solid: var(--ellabs-coral); }
.ellabs-panel--ink { --tint: #eef1f4; --solid: var(--ellabs-ink); }

.ellabs-alert__when {
	flex: none;
	font-size: .85rem;
	font-weight: 700;
	opacity: .6;
}

.is-excused { --c: var(--ellabs-sky); }

/* Pills */
.ellabs-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 800;
	white-space: nowrap;
}

.ellabs-pill--paid { background: var(--ellabs-leaf-tint); color: var(--ok); }
.ellabs-pill--due { background: var(--ellabs-sun); color: var(--ellabs-ink); }
.ellabs-pill--late { background: var(--ellabs-coral); color: #fff; }
.ellabs-pill--wait { background: var(--ellabs-sky-tint); color: #1f6f9b; }

/* My children */
.ellabs-kids {
	margin-top: 32px;
}

.ellabs-kids > h2,
.ellabs-sub {
	margin: 0 0 14px;
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.ellabs-sub {
	margin-top: 32px;
}

.ellabs-kids__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.ellabs-kid {
	--c: var(--ellabs-sky);
	position: relative;
	padding: 22px 22px 20px;
	border-radius: 28px;
	background: #fff;
	box-shadow: inset 0 6px 0 var(--c), 0 24px 40px -32px rgba(36, 52, 66, .6);
	animation: ellabs-p-rise .6s var(--ellabs-spring) both;
}

.ellabs-kid + .ellabs-kid { animation-delay: .1s; }
.ellabs-kid--sun { --c: var(--ellabs-sun); }
.ellabs-kid--leaf { --c: var(--ellabs-leaf); }
.ellabs-kid--coral { --c: var(--ellabs-coral); }

.ellabs-kid__badge {
	position: absolute;
	top: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: var(--c);
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.5rem;
	font-weight: 700;
	transform: rotate(-6deg);
}

.ellabs-kid h3 {
	display: grid;
	margin: 0;
	padding-right: 60px;
	font-size: 1.6rem;
}

.ellabs-kid h3 small,
.ellabs-attkid h3 small,
.ellabs-core__card h3 small {
	font-family: var(--wp--preset--font-family--nunito);
	font-size: .9rem;
	font-weight: 700;
	opacity: .65;
}

.ellabs-kid__program {
	margin: 6px 0 14px;
	font-weight: 800;
}

.ellabs-kid__facts {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-kid__facts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ellabs-kid__facts .ellabs-svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	opacity: .7;
}

.ellabs-kid__facts .is-makeup {
	margin: 2px -10px 0;
	padding: 6px 10px;
	border-radius: 12px;
	background: var(--ellabs-leaf-tint);
}

/* Billing */
.ellabs-bill {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 16px;
}

.ellabs-bill__balance,
.ellabs-bill__how,
.ellabs-row,
.ellabs-core__card,
.ellabs-details__card {
	border-radius: 24px;
	background: #fff;
}

.ellabs-bill__balance {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 6px;
	padding: 24px;
}

.ellabs-bill__balance small {
	font-weight: 800;
	opacity: .7;
}

.ellabs-bill__balance > b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: clamp(2.4rem, 5vw, 3.2rem);
	line-height: 1;
}

.ellabs-bill__balance.is-late > b {
	color: #c9364a;
}

.ellabs-bill__balance p {
	margin: 0;
	font-weight: 600;
}

.ellabs-bill__how {
	padding: 22px 24px;
}

.ellabs-bill__how h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.ellabs-bill__how dl {
	display: grid;
	gap: 6px;
	margin: 0 0 14px;
}

.ellabs-bill__how dl div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
}

.ellabs-bill__how dt {
	opacity: .7;
}

.ellabs-bill__how dd {
	margin: 0;
	font-weight: 800;
}

.ellabs-bill__how p {
	margin: 10px 0 0;
	font-size: .95rem;
	opacity: .8;
}

.ellabs-copy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--ellabs-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--ellabs-ink);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.ellabs-copy.is-done {
	border-color: var(--ok);
	background: var(--ellabs-leaf-tint);
	color: var(--ok);
}

.ellabs-copy .ellabs-svg {
	width: 18px;
	height: 18px;
}

/* Lists of statements and payments */
.ellabs-rows {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-row {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
}

.ellabs-row:not(:has(.ellabs-row__get)) {
	grid-template-columns: auto 1fr auto auto;
}

.ellabs-row__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: var(--tint);
}

.ellabs-row__icon .ellabs-svg {
	width: 20px;
	height: 20px;
}

.ellabs-row__main {
	display: grid;
	min-width: 0;
}

.ellabs-row__main small {
	opacity: .7;
}

.ellabs-row__amount {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.2rem;
	font-weight: 600;
}

.ellabs-row__get {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 14px;
	color: #1f7fb4;
	font-weight: 800;
	text-decoration: none;
}

.ellabs-row__get:hover {
	background: var(--ellabs-sky-tint);
}

.ellabs-row__get .ellabs-svg {
	width: 18px;
	height: 18px;
}

/* Receipt upload */
.ellabs-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.ellabs-drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 4px;
	margin: 16px 0 18px;
	padding: 26px 20px;
	border: 2.5px dashed rgba(36, 52, 66, .3);
	border-radius: 24px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.ellabs-drop:hover,
.ellabs-drop:focus-within,
.ellabs-drop.is-filled {
	border-color: var(--ellabs-sky);
	background: var(--ellabs-sky-tint);
}

.ellabs-drop input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.ellabs-drop__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 4px;
	border-radius: 18px;
	background: var(--ellabs-sun);
}

.ellabs-drop small {
	opacity: .7;
}

.ellabs-drop__name {
	font-weight: 800;
	color: #1f6f9b;
}

/* Attendance per child */
.ellabs-attkid + .ellabs-attkid {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 2px dashed rgba(36, 52, 66, .15);
}

.ellabs-attkid h3 {
	display: grid;
	margin: 0 0 16px;
	font-size: 1.5rem;
}

.ellabs-days li {
	position: relative;
}

.ellabs-days__note {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ellabs-sky);
}

.ellabs-notes {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.ellabs-notes li {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 20px;
	background: #fff;
}

.ellabs-notes .ellabs-svg {
	flex: none;
	width: 22px;
	height: 22px;
	color: #1f7fb4;
}

.ellabs-notes p {
	display: grid;
	margin: 0;
}

/* Calendar */
.ellabs-cal {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ellabs-cal__month {
	margin-top: 10px;
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.15rem;
	font-weight: 600;
}

.ellabs-cal__month:first-child {
	margin-top: 0;
}

.ellabs-cal__item {
	--c: var(--ellabs-sky);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px 12px 12px;
	border-radius: 22px;
	background: #fff;
	animation: ellabs-p-rise .5s var(--ellabs-spring) both;
}

.ellabs-cal__item.is-noclass { --c: var(--ellabs-coral); }
.ellabs-cal__item.is-makeup { --c: var(--ellabs-leaf); }
.ellabs-cal__item.is-event { --c: var(--ellabs-sun); }
.ellabs-cal__item.is-birthday { --c: #f3a6c3; }

.ellabs-cal__date {
	display: grid;
	place-items: center;
	flex: none;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: var(--c);
	line-height: 1.1;
}

.ellabs-cal__item.is-noclass .ellabs-cal__date {
	color: #fff;
}

.ellabs-cal__date small {
	font-size: .75rem;
	font-weight: 800;
	text-transform: uppercase;
}

.ellabs-cal__date b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.5rem;
}

.ellabs-cal__main {
	display: grid;
	gap: 2px;
}

.ellabs-cal__main small {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	opacity: .7;
}

.ellabs-cal__main small .ellabs-svg {
	width: 16px;
	height: 16px;
}

/* C.O.R.E. */
.ellabs-core {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.ellabs-core__card {
	padding: 22px;
}

.ellabs-core__card h3 {
	display: grid;
	margin: 0 0 16px;
	font-size: 1.4rem;
}

.ellabs-meter-sessions {
	display: flex;
	gap: 6px;
}

.ellabs-meter-sessions span {
	flex: 1;
	height: 14px;
	border-radius: 999px;
	background: var(--ellabs-leaf);
}

.ellabs-meter-sessions .is-used {
	background: rgba(36, 52, 66, .12);
}

.ellabs-core__left {
	margin: 12px 0 0;
	font-weight: 700;
}

.ellabs-core__left b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.5rem;
}

.ellabs-core__left.is-low b {
	color: #c9364a;
}

.ellabs-core__next {
	margin: 4px 0 0;
	opacity: .75;
}

/* Our details */
.ellabs-details {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.ellabs-details__card {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 20px 22px;
}

.ellabs-details__card small {
	font-weight: 800;
	opacity: .65;
}

.ellabs-details__card small:not(:first-child) {
	margin-top: 10px;
}

.ellabs-details__card b {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 1.3rem;
	font-weight: 600;
}

.ellabs-details__card p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	overflow-wrap: anywhere;
}

.ellabs-details__card .ellabs-svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	opacity: .6;
}

.ellabs-change {
	margin-top: 20px;
}

.ellabs-change summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--ellabs-ink);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.ellabs-change summary::-webkit-details-marker {
	display: none;
}

.ellabs-change[open] summary {
	margin-bottom: 16px;
}

.ellabs-change .ellabs-form {
	max-width: 640px;
}

@media (max-width: 860px) {
	.ellabs-fam .ellabs-dash__tiles {
		grid-template-columns: 1fr 1fr;
	}

	.ellabs-bill {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.ellabs-row,
	.ellabs-row:not(:has(.ellabs-row__get)) {
		grid-template-columns: 1fr auto;
		gap: 8px 12px;
	}

	.ellabs-row__icon {
		display: none;
	}

	.ellabs-row .ellabs-pill {
		justify-self: start;
	}

	.ellabs-row__get {
		min-height: 36px;
		margin: -4px -8px -4px 0;
		padding: 0 8px;
	}

	.ellabs-form__grid {
		grid-template-columns: 1fr;
	}

	.ellabs-alert__when {
		display: none;
	}
}

/* ---------- Staff dashboard: two big buttons ---------- */

.ellabs-dash__tiles--two {
	grid-template-columns: repeat(2, 1fr);
}

/* ---------- One Statement of Account (print = Save as PDF) ---------- */

.ellabs-soa {
	max-width: 820px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}

.ellabs-soa__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 20px;
}

.ellabs-soa__bar .wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ellabs-soa__bar svg {
	width: 18px;
	height: 18px;
}

.ellabs-soa__back {
	font-weight: 700;
}

.ellabs-soa__paper {
	padding: clamp(20px, 5vw, 48px);
	border: 1px solid #e3e8ee;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 34px -20px rgba(36, 52, 66, .28);
	font-size: 15px;
	line-height: 1.6;
}

.ellabs-soa__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 3px solid var(--ellabs-sun);
}

.ellabs-soa__head b {
	display: block;
	font-family: var(--wp--preset--font-family--fredoka, inherit);
	font-size: 1.25rem;
}

.ellabs-soa__head small {
	color: #5d6b78;
}

.ellabs-soa__no {
	text-align: right;
}

.ellabs-soa__meta,
.ellabs-soa__bank {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px 24px;
	margin: 20px 0;
}

.ellabs-soa__meta dt,
.ellabs-soa__bank dt {
	color: #5d6b78;
	font-size: .8rem;
	font-weight: 700;
}

.ellabs-soa__meta dd,
.ellabs-soa__bank dd {
	margin: 0;
	font-weight: 700;
}

.ellabs-soa__bank {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--ellabs-sun-tint);
}

.ellabs-soa__lines {
	width: 100%;
	margin: 20px 0;
	border-collapse: collapse;
}

.ellabs-soa__lines td {
	padding: 10px 0;
	border-bottom: 1px solid #e3e8ee;
	vertical-align: top;
}

.ellabs-soa__lines td:last-child {
	padding-left: 16px;
	text-align: right;
	white-space: nowrap;
}

.ellabs-soa__lines .is-total td {
	font-weight: 800;
	border-bottom: 2px solid var(--ellabs-ink);
}

.ellabs-soa__sign {
	margin-top: 28px;
	font-weight: 700;
}

@media print {
	header.wp-block-template-part,
	footer.wp-block-template-part,
	.ellabs-soa__bar {
		display: none !important;
	}

	.ellabs-soa {
		max-width: none;
		padding: 0;
	}

	.ellabs-soa__paper {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
}

/* ---------- Finance: Pay now opens the receipt upload ---------- */

.ellabs-pay {
	margin-top: 20px;
}

.ellabs-pay > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
}

.ellabs-pay > summary::-webkit-details-marker {
	display: none;
}

.ellabs-pay > summary svg {
	width: 20px;
	height: 20px;
}

.ellabs-pay[open] > summary {
	display: none;
}

.ellabs-pay__body {
	padding: clamp(18px, 4vw, 28px);
	border-radius: 24px;
	background: #fff;
}

.ellabs-pay__steps {
	margin: 0 0 18px;
	padding-left: 1.3em;
	line-height: 1.7;
}

.ellabs-drop.has-error {
	border-color: var(--ellabs-coral);
}
