.hwm-withdrawal {
	max-width: 760px;
	margin: 0 auto;
	--hwm-btn-bg: #1d4ed8;
	--hwm-btn-bg-hover: #1640a0;
	--hwm-btn-text: #ffffff;
}

.hwm-withdrawal h2 {
	margin-bottom: 0.5em;
}

.hwm-summary-table,
.hwm-items-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.hwm-summary-table td {
	padding: 4px 8px;
	border-bottom: 1px solid #eee;
}

.hwm-summary-table td:first-child {
	color: #555;
	width: 220px;
}

.hwm-items-table th,
.hwm-items-table td {
	padding: 8px;
	border-bottom: 1px solid #e2e2e2;
	text-align: left;
	vertical-align: top;
}

/* Campi sempre leggibili indipendentemente dal tema: sfondo bianco fisso e bordo a contrasto. */
.hwm-withdrawal input[type="text"],
.hwm-withdrawal input[type="email"],
.hwm-withdrawal input[type="number"],
.hwm-withdrawal textarea,
.hwm-withdrawal select {
	display: block;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	background-color: #ffffff !important;
	color: #1f2937 !important;
	border: 1.5px solid #6b7280 !important;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.4;
}

.hwm-withdrawal input[type="text"]:focus,
.hwm-withdrawal input[type="email"]:focus,
.hwm-withdrawal input[type="number"]:focus,
.hwm-withdrawal textarea:focus,
.hwm-withdrawal select:focus {
	border-color: var( --hwm-btn-bg, #1d4ed8 ) !important;
	outline: 2px solid var( --hwm-btn-bg, #1d4ed8 );
	outline-offset: 1px;
}

.hwm-withdrawal label {
	display: inline-block;
	margin-bottom: 4px;
	color: #1f2937;
	font-weight: 600;
}

/* Pulsante: colore ad alto contrasto di default, sovrascrivibile dalle impostazioni.
   !important per restare leggibile anche sopra stili generici di tema/page builder. */
.hwm-withdrawal .hwm-button,
.hwm-withdrawal button[type="submit"] {
	background-color: var( --hwm-btn-bg, #1d4ed8 ) !important;
	color: var( --hwm-btn-text, #ffffff ) !important;
	border: 1px solid var( --hwm-btn-bg, #1d4ed8 ) !important;
	border-radius: 4px;
	padding: 10px 22px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 0.5em;
}

.hwm-withdrawal .hwm-button:hover,
.hwm-withdrawal button[type="submit"]:hover {
	background-color: var( --hwm-btn-bg-hover, #1640a0 ) !important;
	border-color: var( --hwm-btn-bg-hover, #1640a0 ) !important;
}

.hwm-withdrawal .button-link {
	background: none !important;
	border: none !important;
	color: #4b5563 !important;
	text-decoration: underline;
	padding: 0;
	cursor: pointer;
}

.hwm-error {
	color: #b32d2e;
	font-weight: bold;
}

.hwm-declaration-preview {
	background: #f7f7f7;
	border-left: 3px solid #999;
	padding: 10px 14px;
	color: #1f2937;
}

.hwm-footer-link {
	text-align: center;
	padding: 12px 0;
}
