/* Buttercup Childcare - FAQ accordion */

.bc-faqs {
	max-width: 860px;
	margin: 0 auto;
}

.bc-faq-search {
	margin-bottom: 34px;
}

.bc-faq-search input[type="search"] {
	width: 100%;
	padding: 14px 16px;
	font-family: var(--bc-font, inherit);
	font-size: 16px;
	border: 1px solid rgba(29, 33, 41, 0.2);
	border-radius: 4px;
	background: var(--bc-white, #fff);
	color: var(--bc-ink, #1d2129);
}

.bc-faq-search input[type="search"]:focus-visible {
	outline: 3px solid var(--bc-accent, #f48847);
	outline-offset: 2px;
	border-color: var(--bc-accent, #f48847);
}

.bc-faq-noresults {
	margin: 14px 0 0;
	color: var(--bc-accent, #f48847);
}

.bc-faq-category {
	margin-bottom: 44px;
	scroll-margin-top: 190px;
}

.bc-faq-category:last-child {
	margin-bottom: 0;
}

.bc-faq-category-title {
	font-size: var(--bc-h4, 26px);
	color: var(--bc-accent, #f48847);
	margin: 0 0 16px;
}

.bc-faq-items {
	border-top: 1px solid rgba(29, 33, 41, 0.12);
}

.bc-faq-item {
	border-bottom: 1px solid rgba(29, 33, 41, 0.12);
}

.bc-faq-q {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 4px;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	font-family: var(--bc-font, inherit);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bc-ink, #1d2129);
}

.bc-faq-q:hover,
.bc-faq-q[aria-expanded="true"] {
	color: var(--bc-accent, #f48847);
}

.bc-faq-q:focus-visible {
	outline: 3px solid var(--bc-accent, #f48847);
	outline-offset: -3px;
}

.bc-faq-q-icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 5px;
}

.bc-faq-q-icon::before,
.bc-faq-q-icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.bc-faq-q-icon::before {
	top: 7px;
	left: 0;
	width: 16px;
	height: 2px;
}

.bc-faq-q-icon::after {
	top: 0;
	left: 7px;
	width: 2px;
	height: 16px;
}

.bc-faq-q[aria-expanded="true"] .bc-faq-q-icon::after {
	transform: scaleY(0);
	opacity: 0;
}

.bc-faq-a[hidden] {
	display: none;
}

.bc-faq-a-inner {
	padding: 0 4px 22px;
	font-size: 16px;
	line-height: 1.75;
}

.bc-faq-a-inner > *:first-child {
	margin-top: 0;
}

.bc-faq-a-inner > *:last-child {
	margin-bottom: 0;
}

.bc-faq-a-inner p,
.bc-faq-a-inner div {
	margin: 0 0 12px;
}

.bc-faq-a-inner ul,
.bc-faq-a-inner ol {
	margin: 0 0 12px;
	padding-left: 22px;
}

.bc-faq-a-inner li {
	margin-bottom: 6px;
}

.bc-faq-a-inner a {
	color: var(--bc-accent, #f48847);
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.bc-faq-item[hidden] {
	display: none;
}

@media (max-width: 620px) {
	.bc-faq-q { font-size: 16px; padding: 15px 2px; }
	.bc-faq-a-inner { font-size: 15.5px; }
	.bc-faq-category { scroll-margin-top: 150px; }
}
