/* STREAMING_CHUNK: Definizione dello sfondo oscurato per la finestra modale... */
/* Dark overlay behind the modal */
#wt-withdrawal-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
}

/* STREAMING_CHUNK: Formattazione del contenitore principale della finestra modale... */
/* Main modal container */
#wt-withdrawal-modal-content {
background-color: #ffffff;
width: 90%;
max-width: 500px;
border-radius: 12px;
padding: 32px;
position: relative;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
animation: wtModalPop 0.3s ease-out forwards;
}

/* STREAMING_CHUNK: Configurazione delle animazioni di ingresso per la modale... */
/* Entrance animation */
@keyframes wtModalPop {
0% {
opacity: 0;
transform: scale(0.95) translateY(10px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
}
}

/* STREAMING_CHUNK: Tipografia e testi descrittivi della finestra modale... */
/* Modal title */
#wt-withdrawal-modal-content h3 {
margin-top: 0;
margin-bottom: 12px;
font-size: 1.5rem;
color: #333333;
line-height: 1.2;
}

/* Descriptive text */
#wt-withdrawal-modal-content p {
color: #666666;
margin-bottom: 24px;
font-size: 0.95rem;
line-height: 1.5;
}

/* STREAMING_CHUNK: Pulsante di chiusura della finestra modale... */
/* "X" close button */
.wt-withdrawal-close-btn {
position: absolute;
top: 16px;
right: 20px;
font-size: 28px;
color: #999999;
cursor: pointer;
line-height: 1;
transition: color 0.2s ease;
}

.wt-withdrawal-close-btn:hover {
color: #333333;
}

/* STREAMING_CHUNK: Struttura dei campi e delle etichette dei moduli... */
/* Form rows */
.wt-form-row {
margin-bottom: 20px;
}

.wt-form-row label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: #444444;
font-size: 0.9rem;
}

/* Required fields asterisk */
.wt-form-row label .required {
color: #e2401c;
}

/* STREAMING_CHUNK: Campi di input di testo e loro stati di focus... */
/* Text input fields */
.wt-form-row input[type="text"],
.wt-form-row input[type="email"] {
width: 100%;
padding: 12px 16px;
border: 1px solid #cccccc;
border-radius: 6px;
box-sizing: border-box;
font-size: 1rem;
color: #333333;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fields focus state */
.wt-form-row input[type="text"]:focus,
.wt-form-row input[type="email"]:focus {
outline: none;
border-color: #0b57d0;
box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

/* STREAMING_CHUNK: Struttura e pulsantiera delle azioni della modale... */
/* Action buttons container */
.wt-form-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 32px;
}

/* Base button style */
.wt-form-actions button {
padding: 12px 24px;
border-radius: 6px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
border: none;
}

/* Cancel button */
.wt-btn-cancel {
background-color: #f0f0f0;
color: #333333;
}

.wt-btn-cancel:hover {
background-color: #e4e4e4;
}

/* Confirm button */
.wt-btn-confirm {
background-color: #0b57d0;
color: #ffffff;
}

.wt-btn-confirm:hover {
background-color: #0945a5;
}

/* Disabled state (during AJAX loading) */
.wt-btn-confirm:disabled {
opacity: 0.7;
cursor: not-allowed;
}

/* STREAMING_CHUNK: Messaggistica di successo ed errore per AJAX... */
/* Return messages container (success/error) */
#wt-withdrawal-messages {
margin-top: 20px;
}

#wt-withdrawal-messages p {
margin: 0;
padding: 12px 16px;
border-radius: 6px;
font-weight: 500;
}

/* Success message style */
#wt-withdrawal-messages.wt-success p {
background-color: #e8f5e9;
color: #2e7d32;
border: 1px solid #c8e6c9;
}

/* Error message style */
#wt-withdrawal-messages.wt-error p {
background-color: #ffebee;
color: #c62828;
border: 1px solid #ffcdd2;
}

/* STREAMING_CHUNK: Stili del modulo Guest protetti da sovrascritture dei temi... */
/* --- INLINE GUEST FORM STYLES ---
We use the ID to increase specificity and !important to protect against aggressive theme overrides */
#wt-guest-withdrawal-container {
background-color: #ffffff !important;
border-radius: 12px !important;
padding: 32px !important;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
border: 1px solid #eaeaea !important;
max-width: 600px !important;
margin: 0 auto 40px auto !important;
box-sizing: border-box !important;
display: block !important;
text-align: left !important;
}

#wt-guest-withdrawal-container h3 {
margin-top: 0 !important;
color: #333333 !important;
font-size: 1.5rem !important;
text-align: left !important;
font-weight: bold !important;
margin-bottom: 12px !important;
}

#wt-guest-withdrawal-container p {
color: #666666 !important;
margin-bottom: 24px !important;
font-size: 0.95rem !important;
line-height: 1.5 !important;
text-align: left !important;
}

/* STREAMING_CHUNK: Forzatura del layout block sui campi del modulo guest... */
/* Force block display to prevent theme from making inputs and labels inline */
#wt-guest-withdrawal-container .wt-form-row {
display: block !important;
margin-bottom: 20px !important;
width: 100% !important;
}

#wt-guest-withdrawal-container .wt-form-row label {
display: block !important;
font-weight: 600 !important;
margin-bottom: 8px !important;
color: #444444 !important;
font-size: 0.9rem !important;
width: 100% !important;
text-align: left !important;
float: none !important;
}

/* STREAMING_CHUNK: Protezione dei campi di input del modulo guest... */
/* Protect the input fields from aggressive global theme resets */
#wt-guest-withdrawal-container .wt-form-row input[type="text"],
#wt-guest-withdrawal-container .wt-form-row input[type="email"] {
width: 100% !important;
display: block !important;
padding: 12px 16px !important;
border: 1px solid #cccccc !important;
border-radius: 6px !important;
box-sizing: border-box !important;
font-size: 1rem !important;
color: #333333 !important;
background-color: #ffffff !important;
height: auto !important;
margin: 0 !important;
max-width: 100% !important;
float: none !important;
}

/* STREAMING_CHUNK: Allineamento e stile del pulsante di conferma guest... */
/* Actions and Button Override */
#wt-guest-withdrawal-container .wt-form-actions {
display: flex !important;
justify-content: flex-end !important;
margin-top: 32px !important;
float: none !important;
clear: both !important;
}

/* Force our blue button over the theme's brown button */
#wt-guest-withdrawal-container .wt-form-actions button.wt-btn-confirm {
background-color: #291abc !important;
color: #ffffff !important;
padding: 12px 24px !important;
border-radius: 6px !important;
font-size: 1rem !important;
font-weight: 600 !important;
border: none !important;
text-transform: none !important;
box-shadow: none !important;
width: auto !important;
display: inline-block !important;
height: auto !important;
}

#wt-guest-withdrawal-container .wt-form-actions button.wt-btn-confirm:hover {
background-color: #6366f1 !important;
}

/* STREAMING_CHUNK: Notifiche e feedback per il modulo guest... */
#wt-guest-withdrawal-messages {
margin-top: 20px !important;
clear: both !important;
}

#wt-guest-withdrawal-messages p {
margin: 0 !important;
padding: 12px 16px !important;
border-radius: 6px !important;
font-weight: 500 !important;
}

#wt-guest-withdrawal-messages.wt-success p {
background-color: #e8f5e9 !important;
color: #2e7d32 !important;
border: 1px solid #c8e6c9 !important;
}

#wt-guest-withdrawal-messages.wt-error p {
background-color: #ffebee !important;
color: #c62828 !important;
border: 1px solid #ffcdd2 !important;
}

/* STREAMING_CHUNK: Regole globali del pulsante di recesso rosso (Account e Thank You Page)... */
/* --- WITHDRAWAL BUTTON STYLE (Orders, Thank You Page & Checkout) --- */
.woocommerce-orders-table__cell-order-actions a.withdrawal,
.woocommerce-order-details a.withdrawal,
.woocommerce-order-details .withdrawal,
a.button.withdrawal,
.withdrawal {
display: inline-block !important;
background-color: #d9534f !important;
border: none !important;
padding: 10px 20px !important;
font-weight: 600 !important;
border-radius: 4px !important;
text-decoration: none !important;
font-size: 14px !important;
line-height: 1.5 !important;
transition: background-color 0.2s ease !important;
box-shadow: none !important;
margin-left: 10px !important;
margin-top: 10px !important;
}

.woocommerce-orders-table__cell-order-actions a.withdrawal:hover,
.woocommerce-order-details a.withdrawal:hover,
.woocommerce-order-details .withdrawal:hover,
a.button.withdrawal:hover,
.withdrawal:hover {
background-color: #c9302c !important;
color: #ffffff !important;
}