.pfa-bar {
	--pfa-bg: #b42318;
	--pfa-fg: #ffffff;
	--pfa-duration: 20s;
	position: relative;
	z-index: 50;
	width: 100%;
	background: var(--pfa-bg);
	color: var(--pfa-fg);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
}

.pfa-bar[hidden] {
	display: none;
}

.pfa-bar a {
	color: inherit;
	text-decoration: underline;
}

.pfa-viewport {
	overflow: hidden;
	padding: 10px 0;
}

.pfa-track {
	display: flex;
	width: max-content;
	animation: pfa-scroll var(--pfa-duration) linear infinite;
}

.pfa-item {
	flex: none;
	padding-right: 6rem;
	white-space: nowrap;
}

.pfa-bar:hover .pfa-track,
.pfa-bar:focus-within .pfa-track {
	animation-play-state: paused;
}

@keyframes pfa-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.pfa-track {
		animation: none;
		width: auto;
		justify-content: center;
		padding: 0 1rem;
	}

	.pfa-item {
		padding-right: 0;
		white-space: normal;
		text-align: center;
	}

	.pfa-item[aria-hidden="true"] {
		display: none;
	}
}

/* Form modal */

.pfa-modal {
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #1f2933;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.pfa-modal::backdrop {
	background: rgba(17, 24, 39, 0.6);
}

.pfa-modal[open] {
	display: flex;
	flex-direction: column;
}

.pfa-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px 12px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.pfa-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.pfa-modal .pfa-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	min-width: 0;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: #1f2933;
	font-family: inherit;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pfa-modal .pfa-modal__close:hover,
.pfa-modal .pfa-modal__close:focus {
	background: #f3f4f6;
	color: #1f2933;
}

.pfa-modal .pfa-modal__close:focus-visible {
	outline: 2px solid #144261;
	outline-offset: 2px;
}

.pfa-modal .pfa-modal__close::before,
.pfa-modal .pfa-modal__close::after {
	content: none;
}

.pfa-modal__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 200px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.pfa-modal__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
}

.pfa-modal__frame {
	display: block;
	width: 100%;
	height: 200px;
	border: 0;
}

body.pfa-modal-open {
	overflow: hidden;
}
