/**
 * Custom Tab Content → IES Tabbler visual language
 * Keeps widgetType custom-tab-content-widget; chrome matches ies-custom-tabbler.
 */

.custom-tab-wrapper .ctc-tabber-header {
	margin-bottom: 24px;
	text-align: center;
}

.custom-tab-wrapper .ctc-tabber-header .ctc-eyebrow,
.custom-tab-wrapper .ctc-tabber-header .sub-header {
	display: inline-block;
	margin: 0 0 12px;
	font-family: var(--ies-font-display, Onest, sans-serif);
	font-size: var(--ies-eyebrow-size, 14px);
	font-weight: var(--ies-eyebrow-weight, 700);
	letter-spacing: var(--ies-eyebrow-letter-spacing, 1px);
	color: var(--ies-eyebrow-color, var(--ies-primary, #5D43DE));
	line-height: 1.2;
}

.custom-tab-wrapper .ctc-tabber-header .ctc-heading {
	margin: 0 0 12px;
	font-family: var(--ies-font-display, Onest, sans-serif);
	font-size: var(--ies-h2-size, 36px);
	font-weight: var(--ies-h2-weight, 800);
	line-height: var(--ies-h2-line-height, 1.1);
	color: var(--ies-heading-color, var(--ies-navy, #11294B));
}

.custom-tab-wrapper .ctc-tabber-header .ctc-description {
	margin: 0 auto;
	max-width: 720px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.7);
}

/* Horizontal: pill track like Tabbler */
.custom-tab-wrapper.horizontal ul.custom-tab-nav {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 auto 0;
	padding: 5px;
	max-width: 90%;
	position: relative;
	top: 31px;
	z-index: 2;
	overflow-x: auto;
	border-radius: 50px;
	border: 1px solid var(--ies-primary-mid, #A4A2E6);
	background: var(--ies-white, #fff);
	list-style: none;
}

.custom-tab-wrapper.horizontal {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.custom-tab-wrapper.horizontal ul.custom-tab-nav .seprator {
	display: none;
}

.custom-tab-wrapper.horizontal li.custom-tab-nav-item {
	margin: 0 !important;
	max-width: none !important;
	width: auto !important;
	flex: 0 0 auto;
	padding: 12px 28px !important;
	border-radius: 50px !important;
	background: transparent !important;
	font-family: var(--ies-font-display, Onest, sans-serif);
	font-weight: 600;
	font-size: 16px;
	color: var(--ies-navy, #11294B);
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.custom-tab-wrapper.horizontal li.custom-tab-nav-item:hover,
.custom-tab-wrapper.horizontal li.custom-tab-nav-item.active {
	background: var(--ies-primary, #5D43DE) !important;
	color: var(--ies-white, #fff) !important;
	opacity: 1;
}

.custom-tab-wrapper.horizontal .custom-tab-content {
	width: 100%;
	border: 1px solid var(--ies-primary-mid, #A4A2E6);
	border-radius: 20px;
	padding: 69px 40px 38px;
	background: var(--ies-white, #fff);
	box-sizing: border-box;
}

.custom-tab-wrapper.horizontal .custom-tab-content-wrapper {
	gap: 42px;
	align-items: center;
}

.custom-tab-wrapper.horizontal .custom-tab-image img {
	border-radius: 16px;
	width: 100%;
	display: block;
}

/* Vertical / side → Figma Side Tabbed Content (node 2778:1108) */
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes.actived,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes.actived:hover,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item.active,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item.active:hover,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item.actives,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item.actives:hover {
	border: 1px solid var(--ies-primary-mid, #A4A2E6) !important;
	box-shadow: none !important;
	background: var(--ies-card-hover-bg, #EFECFC) !important;
	border-radius: 20px !important;
}

.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item:hover,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes:hover {
	opacity: 1;
}

/* Figma side tabs: no hairline dividers between collapsed steps */
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes {
	border-bottom: 0 !important;
}

.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item::before,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes::before {
	display: none !important;
}

/*
 * Side-tab chevrons — Figma 36px circles (active: purple + white up; inactive: lavender + navy down).
 * Overrides theme FontAwesome \f105/\f107 circles in style.css.
 */
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes {
	position: relative;
}

.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item::after,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes::after {
	content: "" !important;
	font: 0 / 0 a !important;
	color: transparent !important;
	display: block !important;
	box-sizing: border-box;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background-color: var(--ies-card-hover-bg, #EFECFC) !important;
	background-image: url("../icons/ctc-chevron-down.svg") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 17.45px 9.7px !important;
	transition: background-color 0.2s ease;
}

.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item.actives::after,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-item.active::after,
.custom-tab-wrapper.desktop-view.vertical li.custom-tab-nav-itemes.actived::after {
	right: 24px;
	top: 30px;
	transform: none;
	background-color: var(--ies-primary, #5D43DE) !important;
	background-image: url("../icons/ctc-chevron-up.svg") !important;
}

/* Buttons inside tabs use shared tokens */
.custom-tab-wrapper .button-wrapper .text-link a {
	font-family: var(--ies-font-display, Onest, sans-serif);
	font-size: var(--ies-button-font-size, 16px);
	font-weight: var(--ies-button-font-weight, 600);
	line-height: var(--ies-button-line-height, 1.2);
	padding: var(--ies-button-pad-y, 10px) var(--ies-button-pad-x, 24px);
	border-radius: var(--ies-button-radius, 50px);
}

.custom-tab-wrapper .button-wrapper .arrow-btn a {
	font-family: var(--ies-font-display, Onest, sans-serif);
	font-size: var(--ies-button-font-size, 16px);
	font-weight: var(--ies-button-font-weight, 600);
	color: var(--ies-button-link-color, var(--ies-navy, #11294B));
}

.custom-tab-wrapper .button-wrapper .arrow-btn a:hover {
	color: var(--ies-button-link-hover, var(--ies-primary, #5D43DE));
}

/* Mobile accordion titles + chevrons (same Figma language) */
.custom-tab-wrapper.mobile-view li.custom-tab-nav-items.actived .tab-title,
.custom-tab-wrapper.mobile-view li.custom-tab-nav-items.active .tab-title,
.custom-tab-wrapper.mobile-view .custom-tab-nav-items .tab-title:hover {
	background: var(--ies-card-hover-bg, #EFECFC) !important;
	border: 1px solid var(--ies-primary-mid, #A4A2E6);
	border-radius: 16px;
	color: var(--ies-navy, #11294B);
}

.custom-tab-wrapper.mobile-view li.custom-tab-nav-items .tab-title,
.custom-tab-wrapper.mobile-view li.custom-tab-nav-itemes .tab-title {
	position: relative;
}

.custom-tab-wrapper.mobile-view li.custom-tab-nav-items .tab-title::after,
.custom-tab-wrapper.mobile-view li.custom-tab-nav-itemes .tab-title::after {
	content: "" !important;
	font: 0 / 0 a !important;
	color: transparent !important;
	display: block !important;
	box-sizing: border-box;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background-color: var(--ies-card-hover-bg, #EFECFC) !important;
	background-image: url("../icons/ctc-chevron-down.svg") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 17.45px 9.7px !important;
}

.custom-tab-wrapper.mobile-view li.custom-tab-nav-items.active .tab-title::after,
.custom-tab-wrapper.mobile-view li.custom-tab-nav-items.actived .tab-title::after,
.custom-tab-wrapper.mobile-view li.custom-tab-nav-itemes.activated .tab-title::after,
.custom-tab-wrapper.mobile-view li.custom-tab-nav-itemes.actived .tab-title::after {
	background-color: var(--ies-primary, #5D43DE) !important;
	background-image: url("../icons/ctc-chevron-up.svg") !important;
}

@media (max-width: 767px) {
	.custom-tab-wrapper.horizontal ul.custom-tab-nav {
		top: 0;
		max-width: 100%;
		margin-bottom: 16px;
	}

	.custom-tab-wrapper.horizontal .custom-tab-content {
		padding: 30px 20px;
		border-radius: 16px;
	}

	.custom-tab-wrapper.horizontal .custom-tab-content-wrapper {
		flex-direction: column;
	}

	.custom-tab-wrapper.horizontal .custom-tab-image,
	.custom-tab-wrapper.horizontal .custom-tab-content-text {
		flex: 1 1 100%;
		max-width: 100%;
	}
}
