/* =========================================================================
   STILI PER IL MODULO DI RECESSO (TABELLA E LAYOUT)
   ========================================================================= */
#contenuto-recesso-form {
    padding: 20px 0;
}

/* Modulo tabella Contact Form 7 */
table#modulo-richiesta-recesso {
    border-collapse: separate !important;
    border-spacing: 40px !important;
}

table#modulo-richiesta-recesso label,
table#modulo-richiesta-recesso label textarea {
    width: 100%;
}

table#modulo-richiesta-recesso label input,
table#modulo-richiesta-recesso label textarea {
    letter-spacing: 0.08em;
}

table#modulo-richiesta-recesso label textarea {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 16px;
}

/* .box-info..login-richiesto-recesso quando l'utente non è connesso */

.login-richiesto-recesso {
    border: 1px solid #cfc8d8;
    border-radius: 5px;
    padding: 20px;
    margin: 0 0 40px;
}

.login-richiesto-recesso p.info {
    font-family: Open Sans, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 2em;
    letter-spacing: 1px;
    color: #666666;
    margin-bottom: 40px;
}

.login-richiesto-recesso p.info:last-of-type {
    margin-bottom: 0 !important;
}

/* Schermata di conferma verde (Recesso già inviato) */

.stato-recesso-inoltrato-box {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 30px;
}

.stato-recesso-inoltrato-box h2 {
    color: #155724 !important;
    margin-top: 0;
}

.stato-recesso-inoltrato-box p {
    margin-bottom: 0;
    font-size: 1.1em;
}


/* =========================================================================
   STILI PER I PULSANTI (THANK YOU PAGE & AREA RISERVATA)
   ========================================================================= */

/* --- Thank You Page --- */
.box-recesso-thankyou {
    margin-top: 24px;
    padding: 16px;
    background-color: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    clear: both;
}

.box-recesso-thankyou .testo-recesso-inviato {
    font-size: 0.9em;
    color: #155724;
    font-weight: bold;
    margin-bottom: 8px;
}

.box-recesso-thankyou .testo-recesso-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 12px;
}

.box-recesso-thankyou .recesso-badge-green,
.box-recesso-thankyou .recesso_inviato {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    pointer-events: none;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

.box-recesso-thankyou .recesso-btn-orange,
.box-recesso-thankyou .recesso {
    color: white !important;
    background-color: #ff9800;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
}

/* --- Area Riservata (Tabella Ordini) --- */
.woocommerce-orders-table__cell-order-actions .recesso-red-btn,
.woocommerce-orders-table__cell-order-actions .recesso {
    color: white !important;
    background-color: #dc3545 !important;
    margin-left: 16px !important;
}

.woocommerce-orders-table__cell-order-actions .recesso-green-btn,
.woocommerce-orders-table__cell-order-actions .recesso_inviato {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    white-space: nowrap; /* Mantiene la stringa della data su un'unica riga nel bottone */
    margin-left: 16px !important;
    pointer-events: auto;
}