/* Recesso Facile - stili lato cliente */

:root {
	--rf-accent: #c0392b;
	--rf-accent-dark: #a93226;
	--rf-blue: #2271b1;
	--rf-blue-dark: #185a92;
	--rf-radius: 10px;
}

.rf-order-recess-box {
	margin: 1.5em 0;
	padding: 1.1em 1.35em;
	border: 1px solid #e6e6e6;
	border-radius: var(--rf-radius);
	background: #fafafa;
	transition: box-shadow .2s ease;
}
.rf-order-recess-box:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
}
.rf-account-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em 1.25em;
	flex-wrap: wrap;
}
.rf-account-order-meta {
	color: #444;
	font-size: .98em;
}
.rf-order-recess-box .button.rf-open-modal {
	background: var(--rf-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: .7em 1.4em;
	font-weight: 600;
	letter-spacing: .2px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(192, 57, 43, .25);
	transition: background .15s ease, transform .05s ease;
}
.rf-order-recess-box .button.rf-open-modal:hover {
	background: var(--rf-accent-dark);
}
.rf-order-recess-box .button.rf-open-modal:active {
	transform: translateY(1px);
}
.rf-deadline-note {
	display: block;
	margin-top: .6em;
	color: #666;
}
.rf-already-requested {
	margin: 1.5em 0;
	padding: .9em 1.1em;
	background: #eef7ff;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
}

/* Modulo pubblico di ricerca ordine (shortcode / Elementor) */
.rf-lookup-wrapper {
	max-width: 460px;
	margin: 0 auto;
}
.rf-lookup-title {
	margin: 0 0 .4em;
}
.rf-lookup-intro {
	color: #555;
	margin-bottom: 1em;
}
.rf-lookup-form .rf-field {
	margin: 0 0 1em;
}
.rf-lookup-form label {
	display: block;
	font-weight: 600;
	margin-bottom: .35em;
}
.rf-lookup-form input[type="text"],
.rf-lookup-form input[type="email"] {
	width: 100%;
	padding: .6em;
	border: 1px solid #ccc;
	border-radius: 6px;
}
.rf-lookup-submit {
	background: #c0392b;
	color: #fff;
	border: none;
	padding: .7em 1.4em;
	border-radius: 6px;
	cursor: pointer;
}
.rf-lookup-submit:hover {
	background: #a93226;
}
.rf-lookup-submit:disabled {
	opacity: .6;
	cursor: default;
}

/* Condizioni di recesso + modulo tipo stampabile */
.rf-conditions h2 {
	margin-top: 0;
}
.rf-modulo-box {
	margin: 1.5em 0;
	padding: 1.5em 1.75em;
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	background: #fcfcfc;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.rf-modulo-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
	margin-bottom: .25em;
}
.rf-modulo-title {
	margin: 0;
}
/* Nessuna colorazione custom: il pulsante eredita lo stile standard del tema
   (classe .button), così resta coerente con il resto del sito e l'hover è
   sempre leggibile. Qui solo accorgimenti di layout. */
.rf-print-modulo {
	cursor: pointer;
	white-space: nowrap;
}
.rf-modulo-sub {
	color: #666;
	margin: .25em 0 1em;
}
.rf-modulo-fields {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rf-modulo-fields li {
	margin: 0 0 1.1em;
	line-height: 1.6;
}
.rf-fill {
	display: inline-block;
	min-width: 180px;
	border-bottom: 1px solid #999;
	height: 1.1em;
	vertical-align: bottom;
}
.rf-modulo-note {
	margin-top: 1.2em;
	color: #888;
}

/* Stampa: mostra SOLO il modulo, pulito, senza grafica del sito */
@media print {
	body.rf-printing * {
		visibility: hidden !important;
	}
	body.rf-printing .rf-print-target,
	body.rf-printing .rf-print-target * {
		visibility: visible !important;
	}
	body.rf-printing .rf-print-target {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		margin: 0;
		padding: 0;
		border: none;
		box-shadow: none;
		background: #fff;
	}
	body.rf-printing .rf-print-modulo {
		display: none !important;
	}
}

/* Modale */
.rf-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 99999;
	padding: 20px;
	overflow-y: auto;
}
.rf-modal-overlay.is-open {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
body.rf-modal-open {
	overflow: hidden;
}
.rf-modal {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 540px;
	width: 100%;
	margin: 5vh auto;
	padding: 34px 30px 30px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
	animation: rf-modal-in .25s cubic-bezier(.16, 1, .3, 1);
}
.rf-modal::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(90deg, var(--rf-accent), #e07b6f);
}
@keyframes rf-modal-in {
	from { opacity: 0; transform: translateY(18px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rf-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #b5b5b5;
	transition: color .15s ease;
}
.rf-modal-close:hover {
	color: #333;
}

/* Pulsanti del modale */
.rf-modal .button,
.rf-modal button.button {
	border-radius: 8px;
	padding: .7em 1.4em;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background .15s ease, opacity .15s ease;
}
.rf-modal .rf-next,
.rf-modal .rf-submit,
.rf-modal .button-primary {
	background: var(--rf-accent);
	color: #fff;
}
.rf-modal .rf-next:hover,
.rf-modal .rf-submit:hover,
.rf-modal .button-primary:hover {
	background: var(--rf-accent-dark);
}
.rf-modal .rf-prev {
	background: #f0f0f0;
	color: #444;
}
.rf-modal .rf-prev:hover {
	background: #e4e4e4;
}
.rf-modal .rf-submit:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Indicatore step */
.rf-steps-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
}
.rf-step-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}
.rf-step-dot.is-active {
	background: var(--rf-accent);
	color: #fff;
}
.rf-step-line {
	width: 50px;
	height: 2px;
	background: #e0e0e0;
	margin: 0 8px;
}

/* Step */
.rf-step {
	display: none;
}
.rf-step.is-active {
	display: block;
}
.rf-modal h2 {
	margin: 0 0 .5em;
	font-size: 1.3em;
}
.rf-intro,
.rf-confirm-text {
	color: #555;
	font-size: .95em;
	line-height: 1.5;
}
.rf-field {
	margin: 1.1em 0;
}
.rf-field label {
	display: block;
	font-weight: 600;
	margin-bottom: .35em;
}
.rf-field textarea {
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: .6em;
	font-family: inherit;
	resize: vertical;
}
.rf-field small {
	display: block;
	color: #888;
	margin-top: .4em;
}
.rf-order-summary {
	padding: .7em .9em;
	background: #f4f6f8;
	border-radius: 6px;
}

/* Recap step 2 */
.rf-recap {
	background: #f4f6f8;
	border-radius: 6px;
	padding: .8em 1em;
	margin: 1em 0;
}
.rf-recap > div {
	margin: .25em 0;
}
.rf-checkbox {
	display: flex;
	align-items: flex-start;
	gap: .6em;
	margin: 1em 0;
	cursor: pointer;
	line-height: 1.45;
}
.rf-checkbox input {
	margin-top: .25em;
}

/* Azioni */
.rf-actions {
	display: flex;
	justify-content: space-between;
	gap: .8em;
	margin-top: 1.5em;
}
.rf-actions .rf-next,
.rf-actions .rf-submit {
	margin-left: auto;
}

/* Feedback / errori */
.rf-feedback {
	display: none;
	margin-top: 1em;
	padding: .7em .9em;
	border-radius: 6px;
}
.rf-feedback.is-error {
	display: block;
	background: #fdecea;
	color: #b71c1c;
	border-left: 4px solid #b71c1c;
}

/* Esito */
.rf-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1em;
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	font-size: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rf-step-done {
	text-align: center;
}
.rf-step-done .rf-actions {
	justify-content: center;
}
