/* Clim Prérequis panier — front-office */

.clim-prereq-notice,
.clim-prereq-alert {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid #f0c36d;
    border-left: 4px solid #e08b12;
    border-radius: 3px;
    background: #fdf6e6;
    color: #6b4a08;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.clim-prereq-notice__item + .clim-prereq-notice__item {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0dcb0;
}

.clim-prereq-notice__msg,
.clim-prereq-alert__msg {
    margin: 0;
}

.clim-prereq-alert__msg + .clim-prereq-alert__msg {
    margin-top: 0.4rem;
}

.clim-prereq-notice__links {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.clim-prereq-notice__links li {
    margin-top: 0.25rem;
}

.clim-prereq-notice__links a {
    color: #6b4a08;
    text-decoration: underline;
    font-weight: 600;
}

/* Bouton d'ajout au panier neutralisé */
.clim-prereq-locked,
.clim-prereq-locked:hover,
.clim-prereq-locked:focus {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
}

/* Notification après un retrait automatique */
.clim-prereq-toast {
    position: fixed;
    z-index: 10000;
    right: 1rem;
    bottom: 1rem;
    max-width: 22rem;
    padding: 0.9rem 2.4rem 0.9rem 1rem;
    border: 1px solid #f0c36d;
    border-left: 4px solid #e08b12;
    border-radius: 3px;
    background: #fdf6e6;
    color: #6b4a08;
    font-size: 0.9375rem;
    line-height: 1.45;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.clim-prereq-toast p {
    margin: 0;
}

.clim-prereq-toast p + p {
    margin-top: 0.4rem;
}

.clim-prereq-toast__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    padding: 0.2rem 0.4rem;
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 575px) {
    .clim-prereq-toast {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 0.5rem;
        max-width: none;
    }
}

/* Conteneur d'ancrage rendu mais sans avertissement à afficher */
.clim-prereq-notice--hidden {
    display: none;
}
