:root {
    --amb-favorite-blue: #3395c6;
    --amb-favorite-ink: #263746;
}

.products li.product {
    position: relative;
}

.amb-favorite-button {
    appearance: none !important;
    border: 1px solid rgba(38, 55, 70, 0.14) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--amb-favorite-ink) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.amb-favorite-button svg {
    width: 23px;
    height: 23px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: fill 0.18s ease;
}

.amb-favorite-button:hover,
.amb-favorite-button:focus-visible {
    color: var(--amb-favorite-blue) !important;
    border-color: var(--amb-favorite-blue) !important;
    background: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.amb-favorite-button.is-favorite {
    color: var(--amb-favorite-blue) !important;
    border-color: rgba(51, 149, 198, 0.35) !important;
}

.amb-favorite-button.is-favorite svg {
    fill: currentColor;
}

.amb-favorite-button.is-busy {
    opacity: 0.55;
    pointer-events: none;
}

.amb-favorite-button--loop {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 12;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
}

.amb-favorite-button--single {
    min-height: 46px;
    gap: 9px;
    border-radius: 999px !important;
    padding: 0 18px !important;
    font-size: 14px;
    font-weight: 650;
    box-shadow: none !important;
}

.ambp-favorite-row {
    margin: 0 0 16px;
}

.amb-nav-icons [data-amb-favorites-header] svg {
    stroke-width: 1.65;
}

.amb-nav-icons [data-amb-favorites-header].has-favorites svg {
    fill: currentColor !important;
}

.amb-favorites-page {
    width: min(1280px, calc(100% - 40px));
    margin: 42px auto 64px;
}

.amb-favorites-page__header {
    padding-bottom: 20px;
    border-bottom: 1px solid #e7ebee;
    margin-bottom: 24px;
}

.amb-favorites-page__header p,
.amb-favorites-page__status {
    margin: 0;
    color: #60707d;
    font-size: 15px;
}

.amb-favorites-page__status {
    min-height: 22px;
    margin-bottom: 18px;
}

.amb-favorites-page__products.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.amb-favorites-page .products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0 !important;
}

.amb-favorites-page .products::before,
.amb-favorites-page .products::after {
    display: none !important;
}

.amb-favorites-page .products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.amb-favorites-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #e3e8eb;
    background: #f8fafb;
    padding: 32px;
}

.amb-favorites-empty__heart {
    color: var(--amb-favorite-blue);
    font-size: 54px;
    line-height: 1;
}

.amb-favorites-empty p {
    color: #52616d;
    margin: 16px 0 20px;
}

.amb-favorites-empty .button {
    border-radius: 999px !important;
    background: var(--amb-favorite-blue) !important;
    color: #fff !important;
    padding: 12px 22px !important;
}

@media (max-width: 1024px) {
    .amb-favorites-page .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .amb-favorites-page {
        width: min(100% - 24px, 680px);
        margin-top: 28px;
    }

    .amb-favorites-page .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .amb-favorite-button--loop {
        top: 8px;
        right: 8px;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        flex-basis: 38px !important;
    }
}
