/* Contenitore principale */
.woocommerce-account {
  background: #0f0f0f;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  padding: 40px;
}

/* Sidebar navigazione */
.woocommerce-MyAccount-navigation {
  background: #1a1a1a;
  padding: 30px 20px;
  border-right: 3px solid #ff3c00;
  box-shadow: 4px 0 10px rgba(255, 60, 0, 0.2);
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-MyAccount-navigation ul li {
  padding:0px!important;
}
.woocommerce-MyAccount-navigation ul li a {
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  display: block;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #ff3c00;
  color: #000;
  border-left: 3px solid #ffffff;
}

/* Sezione contenuti */
.woocommerce-MyAccount-content {
  padding: 40px;
  background: #121212;
  border-radius: 0 10px 10px 0;
  animation: fadeIn 0.6s ease-in-out;
}

/* Tabelle ordini e dettagli */
.woocommerce table.shop_table {
  background: #1f1f1f;
  color: #fff;
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 0 10px rgba(255, 60, 0, 0.1);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: 1px solid #333;
  padding: 12px;
}
.woocommerce table.shop_table th {
  background-color: #ff3c00;
  color: #000;
}

/* Pulsanti */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {background: #ff3c00;color: #000;font-weight: 700;text-transform: uppercase;padding: 12px 25px;border: none;transition: 0.3s ease-in-out;}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {background: #fff;color: #ff3c00;box-shadow: 0 0 10px #ff3c00;}

/* Moduli input */
.woocommerce form input,
.woocommerce form select,
.woocommerce form textarea {background-color: #1a1a1a;border: 1px solid #444;color: #fff;padding: 10px;border-radius: 4px;width: 100%;transition: border-color 0.3s;}
.woocommerce form input:focus, 
.woocommerce form select:focus, 
.woocommerce form textarea:focus {border-color: #ff3c00;outline: none;}

/* Animazioni */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation {
    position: relative;
    border-right: none;
    border-bottom: 3px solid #ff3c00;
    margin-bottom: 30px;
  }
  .woocommerce-MyAccount-content {
    border-radius: 10px;
  }
}









.account-box {padding: 24px;background: #ffffff;border-radius: 16px;box-shadow: 0 5px 15px rgba(0,0,0,0.07);text-align: center;}
.account-box h2 {font-size: 24px;margin-bottom: 12px;}
.account-box p {color: #666;font-size: 16px;}
.btn-primary {display: inline-block;margin-top: 16px;padding: 10px 20px;background: #0073aa;color: #fff;border-radius: 8px;text-decoration: none;transition: 0.3s ease;}
.btn-primary:hover {background: #005f8a;}

    .dashboard-domini {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    .dashboard-container {
        display: flex;
        gap: 20px;
        margin-top: 20px;
        min-height: 400px; /* Altezza minima per il contenitore */
    }
    .domini-sidebar {
        width: 300px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        flex-shrink: 0;
    }
    .sidebar-header {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    .sidebar-header h3 {
        margin: 0;
        font-size: 16px;
    }
.sidebar-header h3 a{font-family: inherit;
  font-size: var(--wp--preset--font-size--base);
  border: none;
  background: var(--wp--preset--color--primary);
  color: #fff!important;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  -webkit-text-decoration: none;
  text-decoration: none;
  cursor: pointer;
  transition: 0.4s ease-in-out;
  margin:5px;
}}
  
    .domini-lista {
        padding: 10px;
    }
    .dominio-item {
        padding: 10px;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 5px;
        transition: all 0.2s ease;
        border: 1px solid transparent;
        user-select: none;
    }
    .dominio-item:hover {
        background: #f5f5f5;
        border-color: #e0e0e0;
    }

    .dominio-item.active .hosting-badge {
        background: #1976d2;
        color: white;
    }
    .hosting-badge {
        background: #e3f2fd;
        color: #1976d2;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }
    .dominio-content {
        flex: 1;
        min-width: 0;
        position: relative;
        background: #f5f5f5; /* Sfondo per debug */
        padding: 20px;
        border-radius: 8px;
    }
    .dominio-card {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        width: 100%;
        position: relative;
        z-index: 1;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
        margin-bottom: 20px;
    display: none;
}

.dominio-card {
    display: none;
}

.dominio-card.active {
    display: block;

        background: #e3f2fd;
        border-color: #1976d2;
        color: #1976d2;

}

    .card-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        border-radius: 8px 8px 0 0;
    }
    .card-content {
        padding: 20px;
    }
    .info-section {
        margin-bottom: 20px;
    }
    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 10px;
    }
    .info-item {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 4px;
    }
    .label {
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 5px;
    }
    .value {
        font-size: 14px;
        color: #333;
    }
    .value.warning {
        color: #f44336;
    }
    .badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        margin-left: 8px;
    }
    .badge.warning {
        background: #ffebee;
        color: #f44336;
    }
    .nameserver-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    .nameserver-inputs input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .dns-records {
        margin-bottom: 15px;
    }
    .dns-record {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }
    .dns-record input {
        flex: 1;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .remove-dns {
        background: #f44336;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 0 10px;
        cursor: pointer;
    }
    .dns-actions {
        display: flex;
        gap: 10px;
    }
    .button {
        background: #f5f5f5;
        color: #333;
        padding: 8px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .button:hover {
        background: #e0e0e0;
    }
    .button-primary {
        background: #1976d2;
        color: white;
    }
    .button-primary:hover {
        background: #1565c0;
    }
    .button-small {
        padding: 4px 8px;
        font-size: 12px;
    }
    .no-domini {
        text-align: center;
        padding: 40px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .auth-code {
        background: #f8f9fa;
        padding: 15px;
        margin: 15px 0;
        border-radius: 4px;
        font-family: monospace;
        font-size: 18px;
        word-break: break-all;
    }

.prezzi-domini {
  font-family: 'Segoe UI', sans-serif;
  padding: 2rem;
  background: #f9f9f9;
  text-align: center;
}

.prezzi-domini h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.griglia-prezzi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.card-dominio {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.card-dominio:hover {
  transform: scale(1.05);
}

.card-dominio span {
  display: block;
  font-size: 1.2rem;
  color: #555;
}

.card-dominio strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: #111;
}
.is-layout-constrained > .modal {
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100vw !important;
}
.modal {
  position: fixed;
  left: 0!important; right: 0!important; bottom: 0!important;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
}
/* Contenuto interno della modale */
/* Contenuto della modale */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px !important; /* Sovrascrive il valore ereditato da WordPress */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}
/* Pulsante chiusura */
.close-btn {
  margin-top: 20px;
  background: #0073aa;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
    .auth-code {
        background: #f8f9fa;
        padding: 15px;
        margin: 15px 0;
        border-radius: 4px;
        font-family: monospace;
        font-size: 18px;
        word-break: break-all;
    }
    
/* Contenitore centrale */
.opzioni-container {
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

/* Titolo e sottotitolo */
.opzioni-container p {
  font-size: 20px;
  font-weight: 600;
}

/* Radio nascosti */
input[type="radio"] {
  display: none;
}

/* Etichette come pulsanti */
.radio-label {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 10px 10px;
  margin: 5px 5px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 15px;
}
input[type="radio"]:checked + .radio-label {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
  box-shadow: 0 2px 10px rgba(0, 115, 170, 0.2);
}

/* Box hosting */
#opzioni_hosting {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

#opzioni_hosting h4 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* Bottone acquisto */
#acquista-dominio {
  background-color: #4abb14;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s ease;
}

#acquista-dominio:hover {
  background-color: #3C9810;
}

