/**
 * Customer Tabs widget.
 *
 * Specificity note: base rules use two class levels (e.g. `.tmt-ctabs .x`) so
 * they beat theme/kit rules like `.container button` or `.elementor-kit-N h3`,
 * while staying below the three-class selectors Elementor generates from the
 * panel controls - those must keep winning.
 */

.tmt-ctabs {
	--tmt-ctabs-sidebar-width: 28%;
	--tmt-ctabs-gap: 48px;
	--tmt-ctabs-indicator-color: #e4572e;
	--tmt-ctabs-indicator-width: 3px;

	display: flex;
	align-items: flex-start;
	gap: var(--tmt-ctabs-gap);
}

.tmt-ctabs .tmt-ctabs__sidebar {
	flex: 0 0 var(--tmt-ctabs-sidebar-width);
	max-width: var(--tmt-ctabs-sidebar-width);
	min-width: 0;
}

.tmt-ctabs .tmt-ctabs__content {
	flex: 1 1 auto;
	min-width: 0;
}

.tmt-ctabs .tmt-ctabs__label {
	margin: 0 0 32px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	color: #1b3a57;
}

/* Tab list ---------------------------------------------------------------- */

.tmt-ctabs .tmt-ctabs__tablist {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/*
 * The tabs are plain <button>s, so themes and Elementor kits love to give them
 * a pill background, a border, centred text and a shrink-wrapped width. This is
 * a reset - it stays below the specificity of the panel controls, which target
 * the same element for colour, typography and padding.
 */
.tmt-ctabs button.tmt-ctabs__tab,
.tmt-ctabs button.tmt-ctabs__tab:hover,
.tmt-ctabs button.tmt-ctabs__tab:focus,
.tmt-ctabs button.tmt-ctabs__tab:active {
	width: 100%;
	min-width: 0;
	min-height: 0;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

.tmt-ctabs button.tmt-ctabs__tab {
	position: relative;
	display: block;
	padding: 0 0 0 18px;
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	color: #7a8794;
	cursor: pointer;
	transition: color 0.2s ease;
}

.tmt-ctabs .tmt-ctabs__tab::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: var(--tmt-ctabs-indicator-width);
	background-color: var(--tmt-ctabs-indicator-color);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.tmt-ctabs .tmt-ctabs__tab:hover,
.tmt-ctabs .tmt-ctabs__tab:focus-visible {
	color: #1b3a57;
}

.tmt-ctabs .tmt-ctabs__tab:focus {
	outline: none;
}

.tmt-ctabs .tmt-ctabs__tab:focus-visible {
	outline: 2px solid var(--tmt-ctabs-indicator-color);
	outline-offset: 4px;
}

.tmt-ctabs .tmt-ctabs__tab.is-active {
	color: #1b3a57;
}

.tmt-ctabs .tmt-ctabs__tab.is-active::before {
	opacity: 1;
}

/* Panels ----------------------------------------------------------------- */

.tmt-ctabs .tmt-ctabs__panel[hidden] {
	display: none;
}

.tmt-ctabs .tmt-ctabs__panel:focus {
	outline: none;
}

.tmt-ctabs .tmt-ctabs__panel.is-active {
	animation: tmt-ctabs-fade 0.25s ease both;
}

@keyframes tmt-ctabs-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmt-ctabs .tmt-ctabs__panel.is-active {
		animation: none;
	}

	.tmt-ctabs .tmt-ctabs__tab,
	.tmt-ctabs .tmt-ctabs__tab::before {
		transition: none;
	}
}

/* Items ------------------------------------------------------------------ */

.tmt-ctabs .tmt-ctabs__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: 40px;
	column-gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmt-ctabs .tmt-ctabs__item {
	display: flex;
	align-items: flex-start;
	column-gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmt-ctabs .tmt-ctabs__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-top: 0.2em;
	font-size: 18px;
	line-height: 1;
	color: #e4572e;
}

.tmt-ctabs .tmt-ctabs__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.tmt-ctabs .tmt-ctabs__item-body {
	min-width: 0;
}

.tmt-ctabs .tmt-ctabs__item-title {
	margin: 0 0 10px;
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	color: #1b3a57;
}

.tmt-ctabs .tmt-ctabs__item-desc,
.tmt-ctabs .tmt-ctabs__empty {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4a5a6a;
}

/* Stacked layouts -------------------------------------------------------- */

@media (max-width: 1024px) {
	.tmt-ctabs-stack-tablet .tmt-ctabs {
		display: block;
	}

	.tmt-ctabs-stack-tablet .tmt-ctabs__sidebar,
	.tmt-ctabs-stack-tablet .tmt-ctabs__content {
		max-width: none;
		width: auto;
	}

	.tmt-ctabs-stack-tablet .tmt-ctabs__sidebar {
		margin-bottom: var(--tmt-ctabs-gap);
	}

	.tmt-ctabs-stack-tablet .tmt-ctabs__tablist {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 24px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.tmt-ctabs-stack-tablet .tmt-ctabs__tab {
		width: auto;
		flex: 0 0 auto;
		padding: 0 0 12px;
		font-size: 22px;
		white-space: nowrap;
	}

	.tmt-ctabs-stack-tablet .tmt-ctabs__tab::before {
		top: auto;
		inset-inline: 0;
		bottom: 0;
		width: auto;
		height: var(--tmt-ctabs-indicator-width);
	}
}

@media (max-width: 767px) {
	.tmt-ctabs-stack-mobile .tmt-ctabs {
		display: block;
	}

	.tmt-ctabs-stack-mobile .tmt-ctabs__sidebar,
	.tmt-ctabs-stack-mobile .tmt-ctabs__content {
		max-width: none;
		width: auto;
	}

	.tmt-ctabs-stack-mobile .tmt-ctabs__sidebar {
		margin-bottom: var(--tmt-ctabs-gap);
	}

	.tmt-ctabs-stack-mobile .tmt-ctabs__tablist {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 20px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.tmt-ctabs-stack-mobile .tmt-ctabs__tab {
		width: auto;
		flex: 0 0 auto;
		padding: 0 0 10px;
		font-size: 20px;
		white-space: nowrap;
	}

	.tmt-ctabs-stack-mobile .tmt-ctabs__tab::before {
		top: auto;
		inset-inline: 0;
		bottom: 0;
		width: auto;
		height: var(--tmt-ctabs-indicator-width);
	}
}
