/**
 * Stili frontend: pulsante di recesso e wizard modale.
 *
 * @package DirittoRecessoWC
 */

.drwc-withdrawal-button-wrapper {
	margin: 16px 0;
}

.drwc-wizard-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.5 );
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drwc-wizard-modal-inner {
	background: #fff;
	max-width: 600px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 24px;
	border-radius: 4px;
	position: relative;
}

.drwc-wizard-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.drwc-items-table {
	width: 100%;
	margin: 12px 0;
	border-collapse: collapse;
}

.drwc-items-table td {
	padding: 6px 4px;
	border-bottom: 1px solid #eee;
}

.drwc-wizard-error {
	color: #b32d2e;
	margin-top: 12px;
	font-weight: bold;
}

.drwc-wizard-success-message {
	color: #2e7d32;
	font-weight: bold;
}

/* Mobile first: la modale occupa quasi tutto lo schermo su viewport piccoli */
@media ( max-width: 480px ) {
	.drwc-wizard-modal-inner {
		width: 96%;
		padding: 16px;
		max-height: 92vh;
	}
}
