/* Coeurs de la liste d'envies, fiche et listes (wishlist-auth.jspf).
   Charge par StaticAssetUtil.url (cache 10 ans, version = empreinte du fichier). */
    /* Ce message porte une information que l utilisateur doit voir : soit on l envoie se
       connecter, soit on lui confirme un enregistrement. S il passe inapercu au retour, une
       partie des visiteurs reclique - et un second clic sur un coeur plein est un retrait.
       D ou le contraste, la taille et le positionnement au centre de l ecran. */
    .totemia-wishlist-toast {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(.96);
        z-index: 10000;
        max-width: min(420px, calc(100vw - 32px));
        padding: 20px 28px;
        border-radius: 16px;
        background: #1e2c63;
        color: #fff;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.45;
        text-align: center;
        box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
    }

    .totemia-wishlist-toast::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
        font-weight: 900;
        display: block;
        margin-bottom: 8px;
        font-size: 26px;
        color: #f5b700;
    }

    .totemia-wishlist-toast.is-visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    @media (prefers-reduced-motion: reduce) {
        .totemia-wishlist-toast {
            transition: none;
        }
    }

    /* Boite de confirmation, reprenant la langue visuelle du message ci-dessus. Remplace le
       confirm() natif du navigateur, dont l apparence depend du systeme et jure avec le site. */
    .totemia-wishlist-dialog-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    .totemia-wishlist-dialog-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .totemia-wishlist-dialog {
        width: 100%;
        max-width: 420px;
        padding: 28px 24px 24px;
        border-radius: 16px;
        background: #1e2c63;
        color: #fff;
        text-align: center;
        box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
        transform: scale(.96);
        transition: transform .18s ease;
    }

    .totemia-wishlist-dialog-backdrop.is-visible .totemia-wishlist-dialog {
        transform: scale(1);
    }

    .totemia-wishlist-dialog::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
        font-weight: 900;
        display: block;
        margin-bottom: 10px;
        font-size: 26px;
        color: #f5b700;
    }

    .totemia-wishlist-dialog-message {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.45;
        margin-bottom: 22px;
    }

    .totemia-wishlist-dialog-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .totemia-wishlist-dialog-actions button {
        flex: 1 1 130px;
        max-width: 190px;
        padding: 11px 18px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background .15s ease, color .15s ease;
    }

    .totemia-wishlist-dialog-cancel {
        border: 1px solid rgba(255, 255, 255, .6);
        background: transparent;
        color: #fff;
    }

    .totemia-wishlist-dialog-cancel:hover {
        background: rgba(255, 255, 255, .12);
    }

    .totemia-wishlist-dialog-confirm {
        border: 1px solid #f5b700;
        background: #f5b700;
        color: #1e2c63;
    }

    .totemia-wishlist-dialog-confirm:hover {
        background: #ffc82e;
    }

    @media (prefers-reduced-motion: reduce) {
        .totemia-wishlist-dialog-backdrop,
        .totemia-wishlist-dialog {
            transition: none;
        }
    }
