:root {
	--dstx-action-blue: #245ac5;
	--dstx-action-hover: #19479e;
	--dstx-ink: #151e34;
	--dstx-soft-blue: #eef4fd;
	--dstx-border: #d7e0ee;
}

.ds-home a.ds-btn:not(.ds-secondary),
.post-type-archive-lp_course :is(.course-button-read-more a, a.wp-block-learnpress-course-button-read-more) {
	border: 1px solid var(--dstx-action-blue);
	background: var(--dstx-action-blue);
	color: #fff;
	border-radius: .5rem;
}

.ds-home a.ds-btn:not(.ds-secondary):hover,
.post-type-archive-lp_course :is(.course-button-read-more a, a.wp-block-learnpress-course-button-read-more):hover {
	border-color: var(--dstx-action-hover);
	background: var(--dstx-action-hover);
	color: #fff;
}

.ds-home a.ds-btn:focus-visible,
.post-type-archive-lp_course :is(.course-button-read-more a, a.wp-block-learnpress-course-button-read-more):focus-visible {
	outline: 3px solid var(--dstx-action-hover);
	outline-offset: 3px;
}

.dstx-home-choices > h2,
.dstx-adult-option h2 {
	margin-block: 0 .4rem;
}

.dstx-home-choices > p {
	margin-block: 0 1.5rem;
}

.dstx-choice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.dstx-choice-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--dstx-border);
	border-top: 3px solid var(--dstx-action-blue);
	border-radius: .75rem;
	background: #fff;
	color: var(--dstx-ink);
}

.dstx-choice-card h3 {
	margin: 0;
}

.dstx-choice-card p {
	margin-block: 0 1rem;
}

.dstx-choice-card p.dstx-choice-price {
	margin-block: .4rem .8rem;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
}

.dstx-choice-card .dstx-choice-link {
	box-sizing: border-box;
	width: 100%;
	margin-top: auto;
	text-align: center;
}

.dstx-adult-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--dstx-border);
	border-radius: .75rem;
	background: var(--dstx-soft-blue);
}

.dstx-adult-option p {
	margin-block: 0;
}

.post-type-archive-lp_course .ds-local-course-intro {
	margin-block: .6rem 1.25rem;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li.course {
	border-radius: .75rem;
}

.post-type-archive-lp_course .ds-adult-catalog-card {
	order: 1;
}

.post-type-archive-lp_course .wp-block-learnpress-course-item-template > .wp-block-group > .wp-block-group {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.post-type-archive-lp_course .wp-block-learnpress-course-item-template > .wp-block-group {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-type-archive-lp_course .wp-block-learnpress-course-item-template {
	height: 100%;
}

.post-type-archive-lp_course .wp-block-group:has(> .wp-block-learnpress-course-price):has(> .course-button-read-more) {
	flex: 1;
}

.post-type-archive-lp_course .wp-block-learnpress-course-item-template .course-button-read-more {
	margin-top: auto;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li.course .course-item-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: .4rem;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li.course .course-item-price .price {
	order: -2;
	font-size: 1.25rem;
	font-weight: 700;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li.course .course-item-price .origin-price {
	order: -1;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li.course .course-price-prefix {
	flex-basis: 100%;
	margin-top: .25rem;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li[data-ds-teen-offering] .course-price-suffix {
	display: none;
}

.post-type-archive-lp_course .wp-block-learnpress-list-courses li.course :is(.course-button-read-more a, a.wp-block-learnpress-course-button-read-more) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .5rem .75rem;
	font-weight: 650;
	text-align: center;
	text-decoration: none;
}

.dstx-parent-taught-overview .lp-block-course-sidebar :is(.wp-block-learnpress-course-featured, .wp-block-learnpress-course-student, .wp-block-learnpress-course-lesson, .wp-block-learnpress-course-quiz, .wp-block-learnpress-course-level) {
	display: none !important;
}

.dstx-tdlr-notice a,
.dstx-parent-taught-overview .lp-course-description a,
.dstx-teen-checkout :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) a {
	color: var(--dstx-action-hover);
	font-weight: 650;
	text-decoration: underline;
	text-decoration-thickness: .1em;
	text-underline-offset: .16em;
}

.dstx-tdlr-notice a,
.dstx-parent-taught-overview .lp-course-description a[href*="/parent-instructors.htm"] {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	inline-size: fit-content;
	max-inline-size: 100%;
	min-height: 44px;
	margin-block-start: .5rem;
	padding: .5rem .75rem;
	border: 1px solid var(--dstx-action-blue);
	border-radius: .5rem;
	background: #fff;
	line-height: 1.4;
}

.dstx-tdlr-notice a:hover,
.dstx-parent-taught-overview .lp-course-description a[href*="/parent-instructors.htm"]:hover {
	background: var(--dstx-soft-blue);
	color: var(--dstx-action-hover);
}

.dstx-tdlr-notice a:focus-visible,
.dstx-parent-taught-overview .lp-course-description a:focus-visible,
.dstx-teen-checkout :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) a:focus-visible {
	outline: 3px solid var(--dstx-action-hover);
	outline-offset: 3px;
}

.dstx-teen-checkout .gbsic-checkout-overview {
	display: none;
}

.dstx-checkout-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .65rem 1rem;
	margin-block: 0 .7rem;
	padding: clamp(.85rem, 3vw, 1.25rem);
	border: 1px solid var(--dstx-border);
	border-radius: .75rem;
	background: var(--dstx-soft-blue);
	color: var(--dstx-ink);
}

.dstx-checkout-summary h2 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.dstx-checkout-summary p {
	margin: .3rem 0 0;
	font-size: 1rem;
	line-height: 1.35;
}

.dstx-checkout-total {
	flex: 0 0 auto;
	text-align: end;
}

.dstx-checkout-total > span,
.dstx-checkout-total > strong {
	display: block;
}

.dstx-checkout-total > strong {
	font-size: 1.3rem;
}

ol.dstx-checkout-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .35rem;
	margin: 0 0 .75rem;
	padding: 0;
	list-style: none;
	counter-reset: dstx-checkout-step;
}

.dstx-checkout-steps li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	padding: .35rem .18rem;
	border: 1px solid var(--dstx-border);
	border-radius: .5rem;
	color: var(--dstx-ink);
	font-size: .84rem;
	line-height: 1.2;
	text-align: center;
	counter-increment: dstx-checkout-step;
}

.dstx-checkout-steps li::before {
	content: counter(dstx-checkout-step);
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--dstx-soft-blue);
	color: var(--dstx-action-hover);
	font-weight: 700;
}

.dstx-teen-checkout .woocommerce :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) :is(.woocommerce-info, .wc-block-components-notice-banner) {
	margin-block: .15rem;
	padding: .1rem 0;
	border: 0;
	background: transparent;
	color: var(--dstx-ink);
	font-size: .9rem;
}

.dstx-teen-checkout .woocommerce :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .woocommerce-info::before {
	content: none;
}

.dstx-teen-checkout .woocommerce :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .wc-block-components-notice-banner > svg {
	display: none;
}

.dstx-teen-checkout .gbsic-inline-section-heading {
	padding: .75rem 1rem;
	border-left-color: var(--dstx-action-blue);
	background: var(--dstx-soft-blue);
}

.dstx-teen-checkout form.checkout select.select2-hidden-accessible {
	width: 1px !important;
	height: 1px !important;
}

@media (min-width: 960px) {
	.post-type-archive-lp_course .wp-block-learnpress-course-item-template h3.wp-block-learnpress-course-title {
		min-block-size: 3.6em;
		line-height: 1.2;
	}
}

@media (max-width: 780px) {
	.dstx-choice-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	header .wp-block-navigation__responsive-container-open:not([hidden]),
	header .wp-block-navigation__responsive-container-close,
	.gt_switcher_wrapper a.glink {
		box-sizing: border-box;
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
	}

	.gt_switcher_wrapper a.glink {
		display: inline-flex;
		gap: .2rem;
	}

	.post-type-archive-lp_course .wp-block-learnpress-list-courses .wp-block-group:has(> .courses-order-by-wrapper) {
		flex-wrap: wrap !important;
		justify-content: flex-start;
		gap: .65rem 1rem;
	}

	.dstx-teen-checkout main.wp-block-group.has-global-padding {
		padding-inline: clamp(1rem, 5vw, 1.75rem);
	}

	.dstx-teen-checkout main .entry-content.wp-block-post-content {
		padding-inline: 0;
	}

	.dstx-teen-checkout #gbecg-contract-gate .gbecg-student-fields {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (max-width: 480px) {
	ol.dstx-checkout-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dstx-checkout-steps li {
		justify-content: flex-start;
		padding-inline: .55rem;
	}

	.dstx-checkout-summary h2 {
		font-size: 1.05rem;
	}

	.dstx-checkout-total > strong {
		font-size: 1.1rem;
	}
}
