.td-before-after {
	--td-ba-position: 50%;
	width: 100%;
	margin: 0;
	letter-spacing: 0;
}

.td-before-after > figcaption.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.td-before-after__frame,
.td-before-after__single,
.td-before-after__split-panel {
	position: relative;
	overflow: hidden;
	background: #edf3f8;
	border-radius: 8px;
}

.td-before-after__frame {
	aspect-ratio: 4 / 3;
	isolation: isolate;
}

.td-before-after__layer {
	position: absolute;
	inset: 0;
}

.td-before-after__layer--after {
	z-index: 1;
}

.td-before-after__layer--before {
	z-index: 2;
	clip-path: inset(0 calc(100% - var(--td-ba-position)) 0 0);
}

.td-before-after__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.td-before-after__label {
	position: absolute;
	top: 12px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 12px;
	border-radius: 6px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	box-shadow: 0 4px 16px rgba(24, 27, 35, 0.14);
}

.td-before-after__label--before {
	left: 12px;
	background: #2f313e;
}

.td-before-after__label--after {
	right: 12px;
	background: #176b45;
}

.td-before-after__range {
	position: absolute;
	inset: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0.001;
	cursor: ew-resize;
	touch-action: pan-y;
}

.td-before-after__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--td-ba-position);
	z-index: 4;
	width: 2px;
	background: #fff;
	transform: translateX(-1px);
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(47, 49, 62, 0.12);
}

.td-before-after__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	width: 48px;
	height: 48px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(47, 49, 62, 0.76);
	box-shadow: 0 8px 24px rgba(24, 27, 35, 0.2);
	transform: translate(-50%, -50%);
}

.td-before-after__handle span {
	display: block;
	width: 9px;
	height: 9px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
}

.td-before-after__handle span:first-child {
	transform: rotate(-45deg);
}

.td-before-after__handle span:last-child {
	transform: rotate(135deg);
}

.td-before-after__range:focus-visible ~ .td-before-after__divider .td-before-after__handle {
	outline: 3px solid #6a4ccd;
	outline-offset: 3px;
}

.td-before-after--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.td-before-after__split-panel {
	aspect-ratio: 4 / 3;
	border-radius: 0;
}

.td-before-after__split-panel:first-child {
	border-radius: 8px 0 0 8px;
}

.td-before-after__split-panel:last-of-type {
	border-radius: 0 8px 8px 0;
}

.td-before-after--single .td-before-after__single {
	aspect-ratio: 4 / 3;
}

.cases-item--comparison {
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e5e8ec;
	border-radius: 8px;
	background: #fff;
}

.cases-item--comparison .case-card__media {
	width: 100%;
	padding: 0;
}

.cases-item--comparison .case-card__media {
	display: block;
	flex: none;
}

.cases-item--comparison .content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0 22px 20px;
}

.cases-item--comparison .title {
	display: block;
	max-width: 58rem;
	margin: 18px 22px 0;
	color: #2f313e;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	letter-spacing: 0;
}

.cases-item--comparison .title:hover {
	color: #5b35b5;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cases-item--comparison .text {
	display: -webkit-box;
	overflow: hidden;
	max-width: 66rem;
	margin: 8px 0 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #666a73;
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cases-item--comparison .text::after {
	display: none;
}

.case-card__links {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 14px;
}

.case-card__meta-link {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	align-items: baseline;
	min-width: 0;
	gap: 10px;
	color: #2f313e;
	text-decoration: none;
}

.case-card__meta-label {
	color: #858892;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
}

.case-card__meta-value {
	color: #4b2ca4;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
}

.case-card__meta-link:hover .case-card__meta-value {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cases-item--comparison .bottom {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 15px;
	padding: 14px 0 0;
	border-top: 1px solid #edf0f3;
}

.cases-item--comparison .case-card__patient {
	min-width: 0;
	color: #777a84;
	font-size: 13px;
	line-height: 1.4;
}

.case-card__detail-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	color: #2f313e;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.case-card__detail-link::after {
	content: "\2192";
	color: #4b2ca4;
	font-size: 17px;
	line-height: 1;
}

.case-card__detail-link:hover {
	color: #4b2ca4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-type-archive-case .section-cases-archive .cases-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.post-type-archive-case .section-cases-archive .cases-item--comparison + .cases-item--comparison {
	margin-top: 0;
	padding-top: 0;
	border-top: 1px solid #e3e8ed;
}

.section-cases-slider .cases-item--comparison {
	margin: 0 auto;
}

.section-cases-slider .cases-slider:not(.tns-slider) {
	height: 38rem;
}

.section-cases-slider .cases-item--comparison .content {
	min-height: 0;
}

.section-cases-slider .tns-outer {
	container-type: inline-size;
}

.section-cases-slider .tns-controls [data-controls] {
	bottom: auto;
	height: calc((100cqw - 2px) * 0.75);
}

@media (min-width: 768px) {
	.section-cases-slider .tns-controls [data-controls] {
		height: calc((100cqw - 130px) * 0.75);
	}
}

.case-header-text-duplicate #page-header .intro-wrap > .text {
	display: none;
}

.single-case #page-header .intro-wrap > .title {
	max-width: 58rem;
	line-height: 1.18;
}

.single-case .section-case-summary {
	padding: 1.2em 0 2em;
}

.single-case .case-summary--comparison {
	display: grid;
	grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.72fr);
	align-items: start;
	gap: 40px;
}

.single-case .case-summary--comparison .stages,
.single-case .case-summary--comparison .content {
	min-width: 0;
}

.single-case .case-summary--comparison .content {
	display: block;
	padding: 24px;
	border: 1px solid #e5e8ec;
	border-radius: 8px;
	background: #f8f9fa;
}

.case-detail__group + .case-detail__group,
.case-detail__result + .case-detail__group {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #e3e6ea;
}

.case-detail__eyebrow {
	margin-bottom: 10px;
	color: #7d8089;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0;
}

.case-detail__text {
	color: #3d404a;
	font-size: 14px;
	line-height: 1.6;
}

.case-detail__patient {
	margin-top: 10px;
	color: #737680;
	font-size: 13px;
	line-height: 1.4;
}

.case-detail__doctor-main {
	display: flex;
	align-items: center;
	gap: 14px;
}

.case-detail__doctor-photo {
	display: block;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 8px;
}

.case-detail__doctor-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.case-detail__doctor-copy {
	min-width: 0;
}

.case-detail__doctor-name,
.case-detail__service-link {
	color: #402696;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.case-detail__doctor-name:hover,
.case-detail__service-link:hover,
.case-detail__text-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.case-detail__doctor-caption {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 4px;
	color: #666a73;
	font-size: 13px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.case-detail__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.case-detail__actions .btn {
	min-height: 42px;
	padding: 11px 18px;
	font-size: 14px;
}

.case-detail__text-link {
	color: #444750;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.case-detail__service-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.case-detail__service-link::after {
	content: "\2192";
	font-size: 18px;
	line-height: 1;
}

.single-case .section-consultation {
	padding: 1.5em 0;
}

.single-case .consultation-wrap.horizontal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	margin-top: 0;
	padding: 26px 30px;
	border: 1px solid #e2def0;
	border-radius: 8px;
	background: #f5f3fb;
	color: #2f313e;
	-webkit-clip-path: none;
	clip-path: none;
}

.single-case .consultation-wrap.horizontal .image {
	display: none;
}

.single-case .consultation-wrap.horizontal .content,
.single-case .consultation-wrap.horizontal .contact {
	padding: 0;
}

.single-case .consultation-wrap .title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

.single-case .consultation-wrap .text {
	max-width: 42rem;
	margin-top: 7px;
	color: #60636d;
	font-size: 14px;
	line-height: 1.55;
}

.single-case .consultation-wrap .text br {
	display: none;
}

.single-case .consultation-wrap .contact {
	min-width: 235px;
}

.single-case .consultation-wrap .contact .heading {
	color: #7b7e88;
	font-size: 11px;
}

.single-case .consultation-wrap .contact .phone a {
	color: #2f313e;
	font-size: 17px;
}

.single-case .consultation-wrap .contact .button {
	margin: 10px 0 0;
}

.single-case .consultation-wrap .contact .button .btn {
	min-height: 44px;
	box-shadow: none;
	font-size: 14px;
}

.single-case .section-cases-slider {
	padding: 1.5em 0 3em;
}

.single-case .section-cases-slider .section-title {
	margin-bottom: 24px;
	font-size: 30px;
	line-height: 1.25;
}

.single-case .section-cases-slider .tns-outer {
	max-width: 960px;
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 991px) {
	.post-type-archive-case .section-cases-archive .cases-items {
		grid-template-columns: 1fr;
	}

	.single-case .case-summary--comparison {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.single-case .case-summary--comparison .content {
		width: 100%;
		max-width: none;
	}

	.single-case .consultation-wrap.horizontal {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.single-case .consultation-wrap .contact {
		min-width: 0;
	}
}

@media (max-width: 575px) {
	.cases-item--comparison .content {
		padding: 0 16px 18px;
	}

	.cases-item--comparison .title {
		margin: 16px 16px 0;
		font-size: 17px;
	}

	.case-card__links {
		gap: 7px;
	}

	.case-card__meta-link {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 8px;
	}

	.cases-item--comparison .bottom {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		margin-top: 14px;
		padding-top: 13px;
	}

	.case-card__detail-link {
		font-size: 13px;
	}

	.td-before-after__label {
		top: 8px;
		min-height: 32px;
		padding: 6px 10px;
		font-size: 0.8125rem;
	}

	.td-before-after__label--before {
		left: 8px;
	}

	.td-before-after__label--after {
		right: 8px;
	}

	.td-before-after__handle {
		width: 44px;
		height: 44px;
	}

	.single-case #page-header .intro-wrap > .title {
		font-size: 26px;
		line-height: 1.18;
	}

	.single-case .section-case-summary {
		padding-top: 0.8em;
	}

	.single-case .case-summary--comparison {
		gap: 18px;
	}

	.single-case .case-summary--comparison .content {
		padding: 18px;
	}

	.case-detail__doctor-photo {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}

	.case-detail__doctor-name,
	.case-detail__service-link {
		font-size: 15px;
	}

	.case-detail__actions {
		justify-content: space-between;
		gap: 12px;
	}

	.case-detail__actions .btn {
		min-height: 40px;
		padding: 10px 16px;
	}

	.single-case .consultation-wrap.horizontal {
		gap: 18px;
		padding: 20px;
	}

	.single-case .consultation-wrap .title {
		font-size: 21px;
	}

	.single-case .consultation-wrap .contact .button .btn {
		width: 100%;
	}

	.single-case .section-cases-slider .section-title {
		margin-bottom: 18px;
		font-size: 24px;
	}
}

@media (max-width: 340px) {
	.cases-item--comparison .case-card__patient {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.td-before-after__layer--before,
	.td-before-after__divider {
		transition: none;
	}
}
