/**
 * FAQ page — styles for the [wow_faq] shortcode (functions.php). Loaded only
 * on pages whose content contains that shortcode.
 */

.wow-faq {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 64px;
	max-width: 1060px;
	margin: 0 auto;
	padding: 64px 32px 80px;
}

/* ── Section index (desktop) ─────────────────────────────────────────── */
.wow-faq__index ul {
	position: sticky;
	top: 120px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wow-faq__index li + li {
	margin-top: 14px;
}

.wow-faq__index a {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #777;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wow-faq__index a:hover,
.wow-faq__index a:focus-visible,
.wow-faq__index a.is-active {
	color: var(--wp--preset--color--accent);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.wow-faq__section {
	scroll-margin-top: 120px;
}

.wow-faq__section + .wow-faq__section {
	margin-top: 56px;
}

.wow-faq__section-title {
	margin: 0 0 8px;
	padding-bottom: 14px;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--wp--preset--color--accent);
	border-bottom: 1px solid #222;
}

/* ── Accordion items ─────────────────────────────────────────────────── */
.wow-faq__item {
	border-bottom: 1px solid #e6e6e6;
}

.wow-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--black);
	transition: color 0.2s ease;
}

.wow-faq__q::-webkit-details-marker {
	display: none;
}

.wow-faq__q:hover,
.wow-faq__item[open] > .wow-faq__q {
	color: var(--wp--preset--color--accent);
}

.wow-faq__plus {
	position: relative;
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
}

.wow-faq__plus::before,
.wow-faq__plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 1.5px;
	margin-top: -0.75px;
	background: currentColor;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wow-faq__plus::after {
	transform: rotate(90deg);
}

.wow-faq__item[open] .wow-faq__plus::after {
	transform: rotate(0deg);
}

.wow-faq__a-inner {
	padding: 0 40px 26px 0;
	font-size: 15px;
	line-height: 1.75;
	color: var(--wp--preset--color--text);
}

.wow-faq__a-inner p {
	margin: 0 0 14px;
}

.wow-faq__a-inner > :last-child {
	margin-bottom: 0;
}

.wow-faq__a-inner ul {
	margin: 0 0 14px;
	padding-left: 20px;
}

.wow-faq__a-inner li + li {
	margin-top: 4px;
}

.wow-faq__a-inner a {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* ── Tables (shipping rates, delivery times) ─────────────────────────── */
.wow-faq__table-wrap {
	margin: 4px 0 20px;
	overflow-x: auto;
}

.wow-faq__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.wow-faq__table th,
.wow-faq__table td {
	padding: 12px 14px 12px 0;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.wow-faq__table thead th {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #777;
	border-bottom-color: #ddd;
}

.wow-faq__table tbody th {
	font-weight: 600;
	color: var(--wp--preset--color--black);
}

.wow-faq__table-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #888;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.wow-faq {
		display: block;
		padding: 40px 20px 56px;
	}

	.wow-faq__index {
		display: none;
	}

	.wow-faq__section + .wow-faq__section {
		margin-top: 44px;
	}

	.wow-faq__q {
		font-size: 15px;
		padding: 18px 0;
	}

	.wow-faq__a-inner {
		padding-right: 0;
	}
}
