/**
 * Stili per la dashboard utente.
 */

.eprize-dashboard-wrapper {
    max-width: 960px;
    margin: 2em auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.eprize-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e4f0;
}
.eprize-dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}
.eprize-dashboard-header a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-top: 5px;
}
.eprize-dashboard-header a:hover {
    color: #2980b9;
}

.eprize-user-code {
    font-size: 14px;
    color: #7f8c8d;
    margin: 5px 0 0 0;
}
.eprize-user-code strong {
    color: #34495e;
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.eprize-identity-verified-badge {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
    cursor: help;
}
.eprize-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e4f0;
    margin-bottom: 2em;
}
.eprize-tabs-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.eprize-tabs-nav-item:hover {
    color: #2c3e50;
}
.eprize-tabs-nav-item.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}
.eprize-tab-content {
    display: none;
}
.eprize-tab-content.active {
    display: block;
}
.eprize-dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 2em;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.eprize-dashboard-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: #2c3e50;
    padding-bottom: 0.75em;
    margin-bottom: 1.5em;
}
#eprize-profile-form .eprize-form-row {
    margin-bottom: 1.2em;
}
/* **NUOVO**: Stili per raggruppare i campi */
.eprize-form-row-group {
    display: flex;
    gap: 20px;
    margin-bottom: 1.2em;
}
.eprize-form-row-group .eprize-form-row {
    flex: 1;
    margin-bottom: 0;
}
/* Fine nuovi stili */

#eprize-profile-form .eprize-form-row p {
    margin: 0;
}
#eprize-profile-form .eprize-form-row p.description {
    font-size: 0.85em;
    color: #777;
    margin-top: 0.5em;
}
.eprize-dashboard-card table {
    width: 100%;
    border-collapse: collapse;
}
.eprize-dashboard-card th,
.eprize-dashboard-card td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
}
.eprize-dashboard-card th {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}
.eprize-dashboard-card td {
    color: #333;
    font-size: 15px;
}
.eprize-dashboard-card tbody tr:last-child td {
    border-bottom: none;
}
.eprize-dashboard-card .eprize-status-winner {
    color: #27ae60;
    font-weight: 600;
}
.eprize-win-details-row td {
    padding-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}
.eprize-win-details {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: -5px;
}
.eprize-win-details strong {
    color: #34495e;
}
.eprize-win-details code {
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
}
.eprize-win-details small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
}

/* Stili per Danger Zone e Modale */
.eprize-danger-zone {
    border: 1px solid #e74c3c;
    border-left-width: 4px;
    background-color: #fdf6f5;
}
.eprize-danger-zone h3,
.eprize-danger-zone h4 {
    color: #c0392b;
}
.eprize-submit-button.eprize-danger-button {
    background-color: #e74c3c;
    border-color: #c0392b;
}
.eprize-submit-button.eprize-danger-button:hover {
    background-color: #c0392b;
}

/* Stili per la modale */
.eprize-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.eprize-modal-content {
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.eprize-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}
.eprize-modal-content h3 {
    margin-top: 0;
}

/* =============================================
   Stili Integrazione WooCommerce Dashboard
   ============================================= */

/* Stile per la sotto-navigazione */
.eprize-sub-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e4f0;
    margin: -2em -2em 2em -2em; /* Esce dal padding della card per un effetto a tutta larghezza */
    padding: 0 2em;
    background-color: #f8f9fa;
}

.eprize-sub-tabs-nav-item {
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px; /* Allinea il bordo inferiore con quello del contenitore */
}

.eprize-sub-tabs-nav-item:hover {
    color: #2c3e50;
}

.eprize-sub-tabs-nav-item.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background-color: #fff;
}

/* Gestione dei pannelli di contenuto dei sotto-tab */
.eprize-sub-tab-content {
    display: none;
}

.eprize-sub-tab-content.active {
    display: block;
}

/* Stili per adattare il contenuto di WooCommerce */
.eprize-tab-content .woocommerce {
    color: #333; /* Colore testo generico */
}

/* Rimuove il messaggio di benvenuto di WooCommerce (ridondante) */
.eprize-tab-content .woocommerce-MyAccount-content > p:first-child {
    display: none;
}

/* Stile per le tabelle degli ordini e download */
.eprize-tab-content .woocommerce table.shop_table {
    border-radius: 0;
    border: 1px solid #e0e4f0;
    margin: 0;
    text-align: left;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.eprize-tab-content .woocommerce table.shop_table th,
.eprize-tab-content .woocommerce table.shop_table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    border-top: none;
    line-height: 1.5;
    vertical-align: middle;
}

.eprize-tab-content .woocommerce table.shop_table th {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

/* Stile per i pulsanti di WooCommerce */
.eprize-tab-content .woocommerce .woocommerce-Button,
.eprize-tab-content .woocommerce .button {
    background-color: #3498db !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    border: none !important;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    line-height: 1.5;
}
.eprize-tab-content .woocommerce .woocommerce-Button:hover,
.eprize-tab-content .woocommerce .button:hover {
    background-color: #2980b9 !important;
    color: #fff !important;
    transform: translateY(-2px);
}