/* Cacher complètement la navigation WooCommerce dans Mon compte */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Faire prendre toute la largeur au contenu */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

/* Supprimer les pseudo-éléments qui réservent la place à gauche */
.woocommerce-account .woocommerce-MyAccount-content::before,
.woocommerce-account .woocommerce-MyAccount-content::after {
    content: none !important;
    display: none !important;
    width: auto !important;
    float: none !important;
}

/* Fond général du tableau de bord */
.woocommerce-account .nrix-dashboard {
    margin-top: 10px;
}
/* Conteneur des cards */
.nrix-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Card */
.nrix-dashboard-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 18px 22px 32px 22px;
    text-decoration: none;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
    transition: 0.15s ease;
    overflow: hidden; /* important pour contenir le float */
}

/* Icône flottante à gauche */
.nrix-dashboard-card-img {
    width: 64px;
    height: 64px;
    float: left !important;
    margin-right: 16px;
    margin-bottom: 6px;
}

/* Titre */
.nrix-dashboard-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    clear: none !important;
}

/* Texte */
.nrix-dashboard-card p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
    clear: none !important;
}

/* Hover */
.nrix-dashboard-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    border: 1px solid #794fe2;
    transform: translateY(-2px);
}

/* Bloc "Changement de mot de passe" - WooCommerce Mon Compte */
.woocommerce-account fieldset {
    background-color: #f2f2f2;
    border-radius: 10px;
}

/* Légende du fieldset */
.woocommerce-account fieldset legend {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .nrix-dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .nrix-dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Conteneur Login */ 
body.woocommerce-account:not(.logged-in) .entry-content .woocommerce {
    max-width: 760px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0 !important;
    border: none !important;
    box-shadow: none;
}

/* Bouton de login/inscription : largeur auto et centrage */
body.woocommerce-account .entry-content .woocommerce button.woocommerce-button[type="submit"] {
    padding: 10px 30px;
    margin: 0 auto;
    border-radius: 99px;
	  height: 48px;
}

/* Cacher le titre de page Astra sur la page Mon compte */
body.woocommerce-account .entry-title {
    display: none;
}

/* Style form actions */
.woocommerce-LostPassword .lost_password {
	font-weight: 600;
}

.ast-woo-account-form-link {
	font-weight: 700;
}

/* Registration */

.wc-register-extra-fields .form-row-first,
.wc-register-extra-fields .form-row-last{
  display:inline-block !important;
  vertical-align:top;
  box-sizing:border-box;
}

/* Numéro de voirie (plus étroit) */
.wc-register-extra-fields .form-row-first{
  width:30% !important;
  margin-right:2% !important;
}

/* Rue (plus large) */
.wc-register-extra-fields .form-row-last{
  width:68% !important;
}
/* Badge statut commande - My Account */
.nrix-order-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* En attente */
.nrix-order-status-badge.status-on-hold {
    background: #fff3cd;
    color: #856404;
}

/* En cours */
.nrix-order-status-badge.status-processing {
    background: #e6f4ea;
    color: #1e7e34;
}

/* Terminée */
.nrix-order-status-badge.status-completed {
    background: #e7f1ff;
    color: #084298;
}

/* Annulée */
.nrix-order-status-badge.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

/* Remboursée */
.nrix-order-status-badge.status-refunded {
    background: #f1f1f1;
    color: #555;
}

/* Échouée */
.nrix-order-status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Bouton "Voir" – My Account Orders */
.ast-orders-table__cell-order-actions a.view {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 99px;
    background-color: #111111;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
.ast-orders-table__cell-order-actions a.view:hover {
    background-color: #6009b0;
}

/* Focus (accessibilité) */
.ast-orders-table__cell-order-actions a.view:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}

/* Header adresse – layout responsive */
.woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
	padding: 8px;
}

.woocommerce-column__title, .woocommerce-Address-title > h2 {
	font-size: 1.3em;
}

.woocommerce-Address-title::before,
.woocommerce-Address-title::after,
.woocommerce-Address-title h2::before,
.woocommerce-Address-title h2::after,
.woocommerce-Address-title a.edit::before,
.woocommerce-Address-title a.edit::after {
    content: none !important;
    display: none !important;
}

/* Reset marges titres */
.woocommerce-Address-title h2 {
    margin: 0 !important;
}


/* Bouton "Modifier adresse" */
.woocommerce-Address-title a.edit {
    display: inline-block;
    padding: 6px 16px !important;
    border-radius: 99px;
    background-color: #111111;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.woocommerce-Address-title a.edit:hover {
    background-color: #6009b0;
}

/* Focus accessibilité */
.woocommerce-Address-title a.edit:focus {
    outline: none;
}

.nrix-myorders-order-number {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

/* Mobile – bouton pleine largeur si tu veux */
@media (max-width: 768px) {
    .ast-orders-table__cell-order-actions a.view {
        width: 100%;
        text-align: center;
    }
	    .woocommerce-Address-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce-Address-title a.edit {
        margin-top: 6px;
    }
}