.tma-faq {
	--tma-faq-question-color: #1d2327;
	--tma-faq-answer-color: #3c434a;
	--tma-faq-accent: #1d2327;
	--tma-faq-card-bg: #f6f6f4;
	--tma-faq-card-bg-hover: #ffb299;
	--tma-faq-card-radius: 20px;
	--tma-faq-card-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	margin: 1.5em 0;
}

.tma-faq__title {
	margin: 0 0 20px;
	color: var(--tma-faq-question-color);
	font-weight: 700;
	font-size: 1.4em;
	line-height: 1.3;
}

.tma-faq__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tma-faq--numbered .tma-faq__list {
	counter-reset: tma-faq-counter;
}

.tma-faq--numbered .tma-faq__item {
	counter-increment: tma-faq-counter;
}

.tma-faq__item {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	background: var(--tma-faq-card-bg);
	border-radius: var(--tma-faq-card-radius);
	box-shadow: var(--tma-faq-card-shadow);
	padding: 20px;
	transition: background-color 0.2s ease;
}

.tma-faq__item:hover {
	background: var(--tma-faq-card-bg-hover);
}

/* Beats the theme's `ul li:first-child, ol li:first-child { padding-top: 0; }`
   (theme-framework/theme-style/css/style.css), which is otherwise more
   specific than a single .tma-faq__item class and would zero this out. */
.tma-faq__list .tma-faq__item:first-child {
	padding-top: 20px;
}

.tma-faq__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tma-faq__question {
	display: flex;
	align-items: center;
	gap: 0.6em;
	width: 100%;
	margin: 0;
	color: var(--tma-faq-question-color);
	font-weight: 600;
	font-size: 1.05em;
	line-height: 1.4;
}

.tma-faq--numbered .tma-faq__question::before {
	content: counter(tma-faq-counter) '.';
	flex: 0 0 auto;
	color: var(--tma-faq-accent);
}

.tma-faq--bullets .tma-faq__question::before {
	content: '';
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tma-faq-accent);
}

.tma-faq--collapsible .tma-faq__question {
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	cursor: pointer;
}

.tma-faq__icon {
	flex: 0 0 auto;
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.tma-faq__question-text {
	flex: 1 1 auto;
}

.tma-faq__toggle {
	flex: 0 0 auto;
	position: relative;
	width: 12px;
	height: 12px;
}

.tma-faq__toggle::before,
.tma-faq__toggle::after {
	content: '';
	position: absolute;
	background: var(--tma-faq-accent);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.tma-faq__toggle::before {
	width: 12px;
	height: 2px;
}

.tma-faq__toggle::after {
	width: 2px;
	height: 12px;
	transition: transform 0.2s ease;
}

.tma-faq__item.is-open .tma-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.tma-faq__answer {
	margin-top: 0.6em;
	color: var(--tma-faq-answer-color);
	line-height: 1.6;
}

.tma-faq__answer > *:first-child {
	margin-top: 0;
}

.tma-faq__answer > *:last-child {
	margin-bottom: 0;
}

.tma-faq__answer p {
	margin: 0;
	padding: 0;
}

.tma-faq__answer p + p {
	margin-top: 0.6em;
}

.tma-faq__answer[hidden] {
	display: none;
}

@media (max-width: 480px) {
	.tma-faq__icon {
		width: 56px;
		height: 56px;
	}
}
