/**
 * Options Accordion widget styles.
 *
 * @package PerranParthBeachWeddings
 */

.ppbw-options-accordion {
	--ppbw-acc-bg: #f9f7f2;
	--ppbw-acc-text: #1a1a1a;
	--ppbw-acc-divider: #1a1a1a;
	--ppbw-acc-font: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
	width: 100%;
	background-color: var(--ppbw-acc-bg);
	color: var(--ppbw-acc-text);
	font-family: var(--ppbw-acc-font);
}

.ppbw-options-accordion *,
.ppbw-options-accordion *::before,
.ppbw-options-accordion *::after {
	box-sizing: border-box;
}

.ppbw-options-accordion__inner {
	width: 100%;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.ppbw-options-accordion__list {
	border-top: 1px solid var(--ppbw-acc-divider);
}

.ppbw-options-accordion__item {
	border-bottom: 1px solid var(--ppbw-acc-divider);
	background-color: transparent;
	transition: background-color 0.2s ease;
}

.ppbw-options-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 24px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ppbw-options-accordion__trigger:focus-visible {
	outline: 2px solid var(--ppbw-acc-text);
	outline-offset: 2px;
}

.ppbw-options-accordion__title {
	flex: 1 1 auto;
	margin: 0;
	color: var(--ppbw-acc-text);
	font-family: inherit;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	transition: color 0.2s ease;
}

.ppbw-options-accordion__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--ppbw-acc-text);
	font-size: 18px;
	line-height: 1;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ppbw-options-accordion__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.ppbw-options-accordion__icon-opened {
	display: none;
}

.ppbw-options-accordion__item.is-active .ppbw-options-accordion__icon-closed {
	display: none;
}

.ppbw-options-accordion__item.is-active .ppbw-options-accordion__icon-opened {
	display: inline-flex;
}

.ppbw-options-accordion__panel {
	display: none;
	overflow: hidden;
}

.ppbw-options-accordion__panel.is-open {
	display: block;
	height: auto;
}

.ppbw-options-accordion__content {
	padding: 0 0 24px;
	color: var(--ppbw-acc-text);
	font-family: inherit;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
}

.ppbw-options-accordion__content > :first-child {
	margin-top: 0;
}

.ppbw-options-accordion__content > :last-child {
	margin-bottom: 0;
}

.ppbw-options-accordion__content a {
	transition: color 0.2s ease;
}

@media (max-width: 767px) {
	.ppbw-options-accordion__trigger {
		gap: 16px;
	}
}
