.of2rf-box {
	max-width: 760px;
	margin: 24px auto;
	padding: clamp(22px, 4vw, 38px);
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .10);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
	box-sizing: border-box;
}

.of2rf-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.2;
}

.of2rf-intro {
	margin: 0 0 24px;
	color: #4b5563;
	line-height: 1.65;
}

.of2rf-form > p {
	margin: 0 0 18px;
}

.of2rf-form label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
}

.of2rf-form input[type="text"],
.of2rf-form input[type="email"],
.of2rf-form textarea,
.of2rf-form select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font: inherit;
	box-sizing: border-box;
}

.of2rf-form textarea {
	min-height: 110px;
	resize: vertical;
}

.of2rf-form input:focus,
.of2rf-form textarea:focus,
.of2rf-form select:focus,
.of2rf-pill:focus-visible,
.of2rf-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .28);
	outline-offset: 2px;
	border-color: #2563eb;
}

.of2rf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 20px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.of2rf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.of2rf-btn-primary {
	background: #1f2937;
	color: #fff;
}

.of2rf-btn-danger {
	background: #b42318;
	color: #fff;
}

.of2rf-btn[disabled],
.of2rf-form.is-submitting .of2rf-btn {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.of2rf-notice {
	margin: 0 0 20px;
	padding: 13px 15px;
	border-left: 4px solid #64748b;
	border-radius: 6px;
	background: #f8fafc;
	line-height: 1.55;
}

.of2rf-notice-success {
	border-color: #15803d;
	background: #f0fdf4;
}

.of2rf-notice-error {
	border-color: #b42318;
	background: #fef3f2;
}

.of2rf-notice-info {
	border-color: #2563eb;
	background: #eff6ff;
}

.of2rf-summary {
	width: 100%;
	margin: 20px 0 26px;
	border-collapse: collapse;
}

.of2rf-summary th,
.of2rf-summary td {
	padding: 11px 12px;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}

.of2rf-summary th {
	width: 35%;
	background: #f8fafc;
}

.of2rf-ack label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
}

.of2rf-ack input {
	margin-top: 4px;
	flex: 0 0 auto;
}

.of2rf-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.of2rf-pill:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(15, 23, 42, .15), 0 10px 22px rgba(15, 23, 42, .20) !important;
}

.of2rf-pill:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .28);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.of2rf-box {
		margin: 16px 0;
		padding: 20px 16px;
		border-radius: 12px;
	}

	.of2rf-btn {
		width: 100%;
	}

	.of2rf-summary,
	.of2rf-summary tbody,
	.of2rf-summary tr,
	.of2rf-summary th,
	.of2rf-summary td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.of2rf-summary td {
		border-top: 0;
	}
}

/* Azioni integrate negli ordini WooCommerce. */
.of2rf-order-detail-action {
	margin: 24px 0 30px;
}

.of2rf-order-detail-action .of2rf-order-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.of2rf-order-detail-status {
	margin: 24px 0 30px;
}

.woocommerce-orders-table__cell-order-actions .of2rf-request,
.woocommerce-orders-table__cell-order-actions .of2rf-requested {
	white-space: nowrap;
}

@media (max-width: 640px) {
	.of2rf-order-detail-action .of2rf-order-action {
		width: 100%;
		box-sizing: border-box;
	}
}
