.af-tc {
	--af-tc-text: var(--e-global-color-text, var(--wp--preset--color--contrast, #1a1a1a));
	--af-tc-surface: var(--e-global-color-primary, var(--wp--preset--color--primary, #f5f5f5));
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 16px;
	background: var(--af-tc-surface);
	color: var(--af-tc-text);
	line-height: 1.35;
}

.af-tc--empty {
	justify-content: center;
	opacity: 0.7;
	font-size: 13px;
}

.af-tc__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-align: center;
}

.af-tc__track {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.af-tc__item {
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.af-tc__item.is-active {
	opacity: 1;
	transform: translateY(0);
}

.af-tc__item[hidden] {
	display: none !important;
}

.af-tc__item.is-active[hidden] {
	display: block !important;
}

.af-tc__text {
	display: inline-block;
	max-width: 100%;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.af-tc__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.af-tc__arrow:hover,
.af-tc__arrow:focus-visible {
	background: color-mix(in srgb, currentColor 12%, transparent);
	outline: none;
}

.af-tc__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 767px) {
	.af-tc {
		gap: 8px;
		padding: 8px 12px;
	}

	.af-tc__text {
		font-size: 12px;
	}
}
