/* WC Pulsante Recesso – Frontend Styles */

/* ─── Wrapper ─────────────────────────────────────────────────────────────── */
.wcpr-wrapper {
	max-width: 680px;
	margin: 0 auto;
	font-size: 14px;
}

.wcpr-title {
	font-size: 1.4em;
	margin-bottom: .6em;
	padding-bottom: .4em;
	border-bottom: 2px solid #e0e0e0;
}

/* ─── Step indicator ──────────────────────────────────────────────────────── */
.wcpr-step-indicator {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #999;
}

.wcpr-step {
	padding: 4px 12px;
	border: 1px solid #ccc;
	border-radius: 20px;
	color: #999;
}

.wcpr-step--active {
	background: #1a73e8;
	border-color: #1a73e8;
	color: #fff;
	font-weight: bold;
}

.wcpr-step--done {
	background: #43a047;
	border-color: #43a047;
	color: #fff;
}

.wcpr-step-arrow {
	color: #bbb;
}

/* ─── Info / warning boxes ────────────────────────────────────────────────── */
.wcpr-box {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 18px;
	font-size: 13.5px;
	line-height: 1.5;
}

.wcpr-box--info {
	background: #e8f4fd;
	border-left: 4px solid #2196F3;
	color: #0d47a1;
}

.wcpr-box--warning {
	background: #fff8e1;
	border-left: 4px solid #f9a825;
	color: #5d4037;
}

/* ─── Items list ──────────────────────────────────────────────────────────── */
.wcpr-items-list {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 12px 18px;
	margin-bottom: 20px;
	list-style: disc;
}

.wcpr-items-list li { margin-bottom: 2px; }

/* ─── Form fields ─────────────────────────────────────────────────────────── */
.wcpr-form .wcpr-field-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

@media (max-width: 600px) {
	.wcpr-form .wcpr-field-group {
		grid-template-columns: 1fr;
	}
}

.wcpr-field-group .wcpr-field:last-child {
	grid-column: 1 / -1;
}

.wcpr-form .wcpr-field {
	margin-bottom: 14px;
}

.wcpr-form .wcpr-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	color: #444;
	font-size: 13px;
}

.wcpr-form .wcpr-field input[type="text"],
.wcpr-form .wcpr-field input[type="email"],
.wcpr-form .wcpr-field textarea {
	width: 100%;
	padding: 8px 11px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.wcpr-form .wcpr-field input[disabled] {
	background: #f5f5f5;
	color: #888;
	cursor: not-allowed;
	border-color: #e0e0e0;
}

.wcpr-optional {
	font-weight: normal;
	color: #999;
	font-size: 11px;
	margin-left: 5px;
}

/* ─── Legal declaration ───────────────────────────────────────────────────── */
.wcpr-legal-declaration {
	background: #f3f3f3;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 12px 16px;
	font-size: 13px;
	color: #555;
	font-style: italic;
	margin: 18px 0;
}

.wcpr-legal-declaration p { margin: 0; }

/* ─── Actions ─────────────────────────────────────────────────────────────── */
.wcpr-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.wcpr-btn-primary.button {
	background: #1a73e8 !important;
	border-color: #1558b0 !important;
	color: #fff !important;
	padding: 10px 22px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

.wcpr-btn-primary.button:hover {
	background: #1558b0 !important;
}

.wcpr-btn-danger.button {
	background: #c62828 !important;
	border-color: #8e0000 !important;
	color: #fff !important;
	padding: 10px 22px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

.wcpr-btn-danger.button:hover {
	background: #8e0000 !important;
}

.wcpr-btn-cancel.button {
	background: #f5f5f5 !important;
	border-color: #ccc !important;
	color: #555 !important;
}

/* ─── Step 2: summary table ───────────────────────────────────────────────── */
.wcpr-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
}

.wcpr-summary-table th {
	text-align: left;
	padding: 8px 12px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	width: 36%;
	font-weight: 600;
	color: #444;
	vertical-align: top;
}

.wcpr-summary-table td {
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	color: #333;
	vertical-align: top;
}

.wcpr-summary-table td ul {
	margin: 0;
	padding-left: 16px;
}

/* ─── Pulsante nella lista ordini ────────────────────────────────────────── */
.woocommerce-orders-table .button.wcpr-withdrawal-btn,
a.wcpr-withdrawal-btn {
	background-color: #c62828 !important;
	border-color: #8e0000 !important;
	color: #fff !important;
	font-weight: 600 !important;
}

.woocommerce-orders-table .button.wcpr-withdrawal-btn:hover,
a.wcpr-withdrawal-btn:hover {
	background-color: #8e0000 !important;
}

/* ─── Pulsante nella pagina ordine ───────────────────────────────────────── */
.wcpr-order-detail-button {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e5e5e5;
}

/* ─── Success box (pagina standalone) ────────────────────────────────────── */
.wcpr-success-box {
	background: #e8f5e9;
	border: 2px solid #43a047;
	border-radius: 6px;
	padding: 30px 25px;
	text-align: center;
	margin: 20px 0;
}

.wcpr-success-icon {
	font-size: 48px;
	color: #2e7d32;
	line-height: 1;
	margin-bottom: 12px;
}

.wcpr-success-box h2 {
	color: #1b5e20;
	margin: 0 0 12px;
}

.wcpr-success-box p {
	color: #2e7d32;
	margin: 6px 0;
}

/* ─── Error box (pagina standalone) ──────────────────────────────────────── */
.wcpr-box--error {
	background: #ffebee;
	border-left: 4px solid #e53935;
	color: #b71c1c;
}
