/**
 * ds_favorites — style elementów renderowanych przez MODUŁ (modal dla gościa,
 * powiadomienie, strona ulubionych).  Wygląd serca w szablonach motywu żyje
 * w themes/dynamite/_dev/css — tu go nie ma i być nie powinno.
 */

/* --- Modal logowania dla niezalogowanych --- */
.ds-fav-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 28, .55);
}

.ds-fav-modal.is-open {
    display: flex;
}

body.ds-fav-modal-open {
    overflow: hidden;
}

.ds-fav-modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(17, 24, 28, .28);
    text-align: center;
}

.ds-fav-modal__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: #d3455b;
}

.ds-fav-modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.ds-fav-modal__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #55636b;
}

.ds-fav-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-fav-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #55636b;
    cursor: pointer;
}

.ds-fav-modal__close:hover {
    background: #f2f4f5;
}

/* --- Powiadomienie po dodaniu/usunięciu --- */
.ds-fav-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10060;
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 10px;
    background: #11181c;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(17, 24, 28, .3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.ds-fav-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ds-fav-toast a {
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
}

/* --- Strona ulubionych --- */
.ds-fav-page__head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 20px;
}

.ds-fav-page__count {
    font-size: 15px;
    color: #55636b;
}

.ds-fav-empty {
    padding: 40px 20px;
    border: 1px dashed #d7dee1;
    border-radius: 14px;
    text-align: center;
}

.ds-fav-empty__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    color: #b7c2c7;
}

.ds-fav-empty__text {
    margin: 0 0 18px;
    color: #55636b;
}
