.sonder-faq-wrapper {
	max-width: 800px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sonder-faq-wrapper.is-full-width {
	max-width: none;
}

.sonder-faq-search-container {
	margin-bottom: 25px;
	padding: 0 5px;
}

.sonder-faq-search-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-radius: 4px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background-color: transparent;
	color: inherit;
}

.sonder-faq-search-input:focus {
	border-color: rgba(128, 128, 128, 0.6);
	box-shadow: 0 0 5px rgba(128, 128, 128, 0.1);
}

.sonder-faq-collection {
	margin-bottom: 40px;
}

.sonder-faq-collection:last-child {
	margin-bottom: 0;
}

.sonder-faq-collection-title {
	font-size: 1.5em;
	margin-bottom: 20px;
	padding: 0 5px;
	border-bottom: 2px solid rgba(128, 128, 128, 0.1);
	padding-bottom: 10px;
	display: flex;
	align-items: center;
}

.sonder-faq-collection-title.align-left {
	justify-content: flex-start;
}

.sonder-faq-collection-title.align-center {
	justify-content: center;
}

.sonder-faq-collection-title.align-right {
	justify-content: flex-end;
}

.sonder-faq-collection-index {
	margin-right: 10px;
	opacity: 0.5;
	font-weight: 300;
}

.sonder-faq-item-index {
	margin-right: 15px;
	opacity: 0.4;
	font-size: 0.8em;
	font-weight: 400;
	min-width: 2.5em;
	display: inline-block;
}

.sonder-faq-item {
	border-bottom: 1px solid rgba(128, 128, 128, 0.2);
	margin-bottom: 0;
}

.sonder-faq-item:last-child {
	border-bottom: none;
}

.sonder-faq-question {
	padding: 20px;
	padding-right: 50px;
	cursor: pointer;
	position: relative;
	font-weight: 600;
	font-size: 1.1em;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
}

.sonder-faq-question.align-left {
	justify-content: flex-start;
}

.sonder-faq-question.align-center {
	justify-content: center;
	text-align: center;
}

.sonder-faq-question.align-right {
	justify-content: flex-end;
	text-align: right;
}

.sonder-faq-question:hover {
	background: rgba(128, 128, 128, 0.05);
}

.sonder-faq-icon {
	width: 20px;
	height: 20px;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.sonder-faq-icon:before,
.sonder-faq-icon:after {
	content: "";
	position: absolute;
	background-color: currentColor;
	transition: transform 0.3s ease;
}

.sonder-faq-icon:before {
	top: 9px;
	left: 0;
	width: 20px;
	height: 2px;
}

.sonder-faq-icon:after {
	top: 0;
	left: 9px;
	width: 2px;
	height: 20px;
}

.sonder-faq-item.active .sonder-faq-icon:after {
	transform: rotate(90deg);
}

.sonder-faq-item.active .sonder-faq-icon:before {
	transform: rotate(180deg);
}

.sonder-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
	padding: 0 20px;
	opacity: 0.8;
	line-height: 1.6;
}

.sonder-faq-item.active .sonder-faq-answer {
	max-height: 5000px; /* Large enough to fit content */
	padding: 0 20px 20px 20px;
}

.sonder-faq-answer img {
	max-width: 100%;
	height: auto;
	margin: 10px 0;
}

.sonder-faq-answer p {
	margin-bottom: 15px;
}

.sonder-faq-answer ul, .sonder-faq-answer ol {
	margin: 15px 0;
	padding-left: 20px;
}

.sonder-faq-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	padding: 0 5px;
	position: sticky;
	top: 0;
	background: inherit;
	z-index: 10;
	padding-top: 10px;
	padding-bottom: 10px;
}

.sonder-faq-tab {
	background: rgba(128, 128, 128, 0.05);
	border: 1px solid rgba(128, 128, 128, 0.2);
	padding: 8px 18px;
	border-radius: 25px;
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 500;
	transition: all 0.3s ease;
	color: inherit;
}

.sonder-faq-tab:hover {
	background: rgba(128, 128, 128, 0.1);
}

.sonder-faq-tab.active {
	background: #2980b9;
	color: white;
	border-color: #2980b9;
	box-shadow: 0 4px 10px rgba(41, 128, 185, 0.2);
}
