/**
 * HNP Vétérinaires — styles front (bouton d'accès, bandeaux, prix vétérinaires,
 * onglets Mon compte). Couleurs alignées sur le thème HNP.
 */
:root {
    --hnp-vet-green: #82bd76;
    --hnp-vet-green-dark: #436c18;
    --hnp-vet-green-light: #e0e8d8;
    --hnp-vet-text: #4e4e4e;
}

.hnp-vet-icon,
.hnp-vet-access__icon,
.hnp-vet-banner__icon,
.hnp-vet-vat-notice__icon {
    flex: none;
    width: 1.1em;
    height: 1.1em;
}

/* ---------- Bouton / badge d'en-tête ---------- */
.hnp-vet-access {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .9rem;
    border: 1px solid var(--hnp-vet-green);
    border-radius: 9999px;
    color: var(--hnp-vet-green-dark);
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.hnp-vet-access:hover,
.hnp-vet-access:focus-visible {
    background: var(--hnp-vet-green);
    color: #fff;
}

.hnp-vet-access.is-vet {
    background: var(--hnp-vet-green);
    color: #fff;
}

.hnp-vet-access.is-pending {
    border-style: dashed;
}

/* Icône seule (mobile, et desktop jusqu’à 1919 px où le menu manque de place) :
   bouton rond de la taille des icônes panier / profil, libellé gardé pour les lecteurs d'écran. */
.hnp-vet-access--mobile {
    padding: .75rem;
}

.hnp-vet-access--mobile .hnp-vet-access__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 1919px) {
    .hnp-vet-access--desktop {
        padding: .75rem;
    }

    .hnp-vet-access--desktop .hnp-vet-access__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.hnp-vet-access--mobile .hnp-vet-access__icon,
.hnp-vet-access--desktop .hnp-vet-access__icon {
    width: 1rem;
    height: 1rem;
}

/* ---------- Bandeaux (connexion, tableau de bord) ---------- */
.hnp-vet-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--hnp-vet-green);
    background: var(--hnp-vet-green-light);
    color: var(--hnp-vet-text);
}

.hnp-vet-banner p {
    margin: 0;
}

.hnp-vet-banner .hnp-vet-banner__icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--hnp-vet-green-dark);
}

.hnp-vet-banner--access {
    align-items: flex-start;
}

.hnp-vet-banner--access > div {
    flex: 1 1 16rem;
}

.hnp-vet-banner__title {
    margin-bottom: .4rem !important;
    color: var(--hnp-vet-green-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.hnp-vet-banner__button {
    margin-left: auto;
}

/* ---------- Prix vétérinaire ---------- */
.hnp-vet-price {
    display: inline-flex;
    flex-direction: column;
    gap: .15rem;
    line-height: 1.3;
}

.hnp-vet-price__vet {
    color: var(--hnp-vet-green-dark);
    font-weight: 700;
}

.hnp-vet-price__rrp {
    color: var(--hnp-vet-text);
    font-size: .8em;
    font-weight: 400;
}

.hnp-vet-price__label {
    font-weight: 400;
}

.hnp-vet-price__tax {
    font-size: .8em;
    font-weight: 400;
}

.hnp-vet-badge {
    display: inline-block;
    width: fit-content;
    margin-left: .25rem;
    padding: .15rem .5rem;
    border-radius: 9999px;
    background: var(--hnp-vet-green-dark);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    vertical-align: middle;
}

.hnp-vet-price .hnp-vet-badge {
    margin-left: 0;
}

/* ---------- Mon compte ---------- */
.hnp-account-intro {
    margin-bottom: 1rem;
}

.hnp-vet-benefits__facts {
    margin: 0 0 1.75rem;
    padding: .85rem 1rem .85rem 2.25rem;
    border-left: 4px solid var(--hnp-vet-green);
    background: var(--hnp-vet-green-light);
    color: var(--hnp-vet-text);
    list-style: disc;
    font-size: .85rem;
    line-height: 1.6;
}

.hnp-vet-benefits__table .hnp-num {
    text-align: right;
    white-space: nowrap;
}

.hnp-vet-benefits__table thead th {
    background: #f7f7f7;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.hnp-vet-benefits__table td a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.hnp-vet-benefits__table td a:hover {
    color: var(--hnp-vet-green-dark);
}

.hnp-vet-benefits__table td:nth-child(3) {
    color: var(--hnp-vet-green-dark);
}

.hnp-discount {
    display: inline-block;
    min-width: 3.25rem;
    padding: .1rem .5rem;
    border-radius: 9999px;
    background: var(--hnp-vet-green-light);
    color: var(--hnp-vet-green-dark);
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

/* Desktop : nom du produit affiché une fois par groupe, séparateur entre produits. */
@media (min-width: 769px) {
    .hnp-vet-benefits__table tr.hnp-row-next td {
        border-top-color: transparent;
    }

    .hnp-vet-benefits__table tr.hnp-row-next td:first-child > * {
        visibility: hidden;
    }

    .hnp-vet-benefits__table tr.hnp-row-first:not(:first-child) td {
        border-top: 1px solid #d9d9d9;
    }
}

.hnp-vet-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.25rem;
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
}

.hnp-vet-tabs li {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e5e5;
    font-size: .9rem;
    line-height: 1.55;
    transition: border-color .2s;
}

.hnp-vet-tabs li:hover {
    border-color: var(--hnp-vet-green);
}

.hnp-vet-tabs a {
    color: var(--hnp-vet-green-dark);
    font-size: 1rem;
    font-weight: 700;
}

.hnp-vat-field .description {
    display: block;
    margin-top: .25rem;
    font-size: .8rem;
}

.hnp-vat-status--valid {
    color: var(--hnp-vet-green-dark);
}

.hnp-vat-status--invalid {
    color: #b32d2e;
}

/* ---------- Checkout ---------- */
.hnp-vet-vat-notice {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

/* Compte déjà vétérinaire (ou en attente) : pas de case « Je suis vétérinaire ». */
.hnp-is-vet .wc-block-components-address-form__hnp-veterinaires-is-veterinaire,
.hnp-is-vet-pending .wc-block-components-address-form__hnp-veterinaires-is-veterinaire {
    display: none !important;
}

.single_variation .hnp-vet-price {
    margin-bottom: .75rem;
}

/* Cartes produits (boutique, grille AJAX) : titre puis bloc prix, empilés. */
.hnp-is-vet .product_card > .flex.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.hnp-is-vet .product_card .hnp-vet-price {
    font-size: 1rem;
}
