.axpopup {
    /* Couleurs de marque (échantillonnées sur les boutons de la boutique).
       Une seule ligne à changer par couleur si besoin. */
    --axpopup-accent: #005f61;          /* fond des boutons principaux (vert boutique) */
    --axpopup-accent-hover: #004b4d;    /* survol des boutons principaux */
    --axpopup-accent-text: #ffffff;     /* texte des boutons principaux */
    --axpopup-muted-bg: #f0f0f0;        /* fond du bouton secondaire */
    --axpopup-muted-bg-hover: #e5e5e5;  /* survol du bouton secondaire */
    --axpopup-muted-text: #232323;      /* texte du bouton secondaire */
    --axpopup-radius: 8px;
    --axpopup-btn-radius: 6px;

    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.axpopup[hidden] {
    display: none;
}

.axpopup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    animation: axpopup-fade 0.25s ease;
}

.axpopup__box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: axpopup-slide 0.3s ease;
    text-align: center;
}

.axpopup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0.25rem;
}

.axpopup__close:hover {
    color: #000;
}

.axpopup__image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.axpopup__title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}

.axpopup__content {
    margin-bottom: 1rem;
}

.axpopup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.85rem 1.5rem;
    background: var(--axpopup-accent);
    color: var(--axpopup-accent-text);
    border: 1px solid var(--axpopup-accent);
    border-radius: var(--axpopup-btn-radius);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.axpopup__button:hover,
.axpopup__button:focus {
    background: var(--axpopup-accent-hover);
    border-color: var(--axpopup-accent-hover);
    color: var(--axpopup-accent-text);
    opacity: 1;
    text-decoration: none;
}

body.axpopup-open {
    overflow: hidden;
}

@keyframes axpopup-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes axpopup-slide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .axpopup__box {
        padding: 1.75rem 1.25rem 1.25rem;
    }
}

/* --- Harmonisation des qualités (déclenchement cart_mix) --- */
.axpopup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.axpopup__actions .axpopup__button {
    width: 100%;
}

.axpopup__button--ghost {
    background: var(--axpopup-muted-bg);
    color: var(--axpopup-muted-text);
    border-color: var(--axpopup-muted-bg);
}

.axpopup__button--ghost:hover,
.axpopup__button--ghost:focus {
    background: var(--axpopup-muted-bg-hover);
    border-color: var(--axpopup-muted-bg-hover);
    color: var(--axpopup-muted-text);
}

.axpopup__recap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    text-align: left;
}

.axpopup__recap-intro {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.axpopup__recap-list {
    margin: 0 0 0.75rem;
    padding-left: 1.2rem;
}

.axpopup__recap-list li {
    margin-bottom: 0.25rem;
}

.axpopup__recap-warn {
    color: #b3261e;
}

.axpopup__recap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.axpopup__recap-actions .axpopup__button {
    flex: 1 1 auto;
}

.axpopup__button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
