/* Club membership offer (module iscrizioni-proposta-tessera). */

/* A. Checkbox in the event's purchase form, and B. the cart boxes. */
.fr-card-offer {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid var(--fr-line, rgba(0, 51, 102, .12));
	border-radius: var(--fr-r-sm, 16px);
	background: var(--fr-sand, #EBF2E1);
	color: var(--fr-ink, #13241A);
}

.fr-card-offer__check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
}

.fr-card-offer__check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--fr-green-deep, #3F6A1C);
}

.fr-card-offer__title {
	display: block;
	margin: 0 0 4px;
	font-weight: 700;
}

.fr-card-offer__text {
	display: block;
	margin: 0;
	font-size: .875rem;
	line-height: 1.45;
	color: var(--fr-gray-700, #2A3744);
}

.fr-card-offer__form {
	margin: 12px 0 0;
}

.fr-card-offer--drawer {
	margin: 0 0 16px;
}

/* C. Floating bar on the event page, phones only. It sits above the
   language switcher and the accessibility button, which own the bottom
   corner (the latter lives in a shadow root and cannot be moved). */
.fr-card-bar {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	z-index: calc(var(--fr-z-header, 200) - 2);
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px 10px 10px 16px;
	border-radius: var(--fr-r-sm, 16px);
	background: var(--fr-navy, #003366);
	color: var(--fr-on-dark, #F3F7F0);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

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

.fr-card-bar__text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: .8125rem;
	line-height: 1.35;
}

.fr-card-bar__text strong,
.fr-card-bar__text span {
	display: block;
}

.fr-card-bar__text span {
	color: var(--fr-on-dark-soft, rgba(243, 247, 240, .82));
}

.fr-card-bar__add.fr-btn {
	flex: none;
}

/* On a dark ground the theme's accent is lime, as in its navy panels. */
.fr-card-bar .fr-card-bar__add.fr-btn--accent {
	background: var(--fr-lime, #A8D16A);
	color: var(--fr-ink, #13241A);
}

/* Doubled class: beats the site-wide button colours (Elementor kit). */
.fr-card-bar .fr-card-bar__close {
	box-shadow: none;
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

/* Keep the back-to-top button clear of the bar while it shows. */
body.fr-has-card-bar {
	--fr-totop-bottom: 160px;
}

@media (min-width: 768px) {
	.fr-card-bar {
		display: none !important;
	}

	body.fr-has-card-bar {
		--fr-totop-bottom: 84px;
	}
}
