.upg-accordion {
	width: 100%;
}

.upg-accordion__item {
	position: relative;
}

.upg-accordion__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.upg-accordion__header {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	margin: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-align: left;
	padding: 16px;
	white-space: normal;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Default reset for accordion header in all interaction states. Elementor
   themes commonly inject a pink background on `button:focus` /
   `a:visited` etc. The rule below has the same specificity as those,
   loads after them, and so wins as the default. When the user sets the
   `title_bg` control, that selector targets the same states explicitly
   (see PHP), so user values still take precedence. */
.upg-accordion .upg-accordion__header,
.upg-accordion .upg-accordion__header:hover,
.upg-accordion .upg-accordion__header:focus,
.upg-accordion .upg-accordion__header:focus-visible,
.upg-accordion .upg-accordion__header:focus-within,
.upg-accordion .upg-accordion__header:active,
.upg-accordion .upg-accordion__header:visited {
	background-color: transparent;
	color: inherit;
	outline: none;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
}

.upg-accordion .upg-accordion__header:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.upg-accordion .upg-accordion__content-inner a,
.upg-accordion .upg-accordion__content-inner a:hover,
.upg-accordion .upg-accordion__content-inner a:focus,
.upg-accordion .upg-accordion__content-inner a:focus-visible,
.upg-accordion .upg-accordion__content-inner a:active,
.upg-accordion .upg-accordion__content-inner a:visited {
	background-color: transparent;
	color: inherit;
}

.upg-accordion__title {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}

.upg-accordion__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
	transition: transform 0.3s ease, color 0.2s ease;
}

.upg-accordion__icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.upg-accordion--icon-left .upg-accordion__header {
	flex-direction: row;
}

.upg-accordion__item.is-open .upg-accordion__icon {
	transform: rotate(180deg);
}

.upg-accordion__content {
	overflow: hidden;
	transition: height 0.3s ease;
}

.upg-accordion__content[hidden] {
	display: none;
}

.upg-accordion__content-inner {
	padding: 16px;
}

/* Override theme/Elementor default :visited color (commonly pink) so links
   inside the accordion content keep their normal color until the user sets
   explicit Link controls in the Style tab. */

.upg-accordion-placeholder {
	padding: 16px;
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	text-align: center;
	font-style: italic;
}
