/* /var/www/web.nikkidepot.com/public/favorite/assets/css/favorite.css */

.favorite-page {
    min-height: calc(100vh - 220px);
}

.favorite-remove-btn svg {
    transition: transform 150ms ease, opacity 150ms ease;
}

.favorite-remove-btn:hover svg {
    transform: scale(1.08);
}

.favorite-remove-btn.is-loading {
    pointer-events: none;
    opacity: 0.55;
}

.favorite-remove-btn.is-removing {
    color: #aa9d90;
}

.favorite-card-removing {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.favorite-card-enter {
    opacity: 0;
    transform: translateY(12px);
}

.favorite-card-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms ease, transform 300ms ease;
}

.favorite-loader-dot {
    animation: favoritePulse 1.2s ease-in-out infinite;
}

@keyframes favoritePulse {
    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .favorite-page {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .favorite-remove-btn svg,
    .favorite-card-removing,
    .favorite-card-enter-active,
    .favorite-loader-dot {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* NIKKI_FAVORITE_UNDO_V28_START */
/*
 * V28 — amélioration fonctionnelle uniquement :
 * - annulation possible après retrait d'un favori ;
 * - retour visuel clavier sur toute la carte ;
 * - aucune modification de taille, de grille, de titre ou de couleur commerciale.
 */
[data-favorite-card]:focus-within {
    border-color: rgba(6, 11, 45, 0.24);
    box-shadow:
        0 0 0 3px rgba(6, 11, 45, 0.10),
        0 14px 34px rgba(6, 11, 45, 0.078);
}

[data-favorite-card] a:focus-visible,
[data-favorite-card] button:focus-visible {
    outline: none;
}

.favorite-undo-region {
    position: fixed;
    z-index: 90;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    display: flex;
    width: min(410px, calc(100vw - 36px));
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.favorite-undo-toast {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 11px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: #060b2d;
    color: #ffffff;
    box-shadow: 0 18px 46px rgba(6, 11, 45, 0.24);
    pointer-events: auto;
    animation: favoriteUndoToastIn 180ms ease-out both;
}

.favorite-undo-toast__message {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.favorite-undo-toast__action {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #060b2d;
    font-size: 12px;
    font-weight: 750;
    transition:
        transform 150ms ease,
        background-color 150ms ease,
        opacity 150ms ease;
}

.favorite-undo-toast__action:hover {
    transform: translateY(-1px);
    background: #f5f1ec;
}

.favorite-undo-toast__action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.38);
    outline-offset: 2px;
}

.favorite-undo-toast__action:disabled {
    cursor: wait;
    opacity: 0.62;
}

.favorite-card-restored {
    animation: favoriteCardRestored 240ms ease-out both;
}

@keyframes favoriteUndoToastIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes favoriteCardRestored {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 639px) {
    .favorite-undo-region {
        right: 14px;
        bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 14px));
        width: calc(100vw - 28px);
    }

    .favorite-undo-toast {
        min-height: 50px;
        gap: 12px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .favorite-undo-toast,
    .favorite-card-restored {
        animation: none !important;
    }
}
/* NIKKI_FAVORITE_UNDO_V28_END */

