.netstore-viewed-history .netstore-history-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
}

.netstore-viewed-history .netstore-history-toolbar__title {
    min-width: 0;
}

.netstore-viewed-history .netstore-history-toolbar .category-name {
    margin: 0;
}

.netstore-viewed-history .netstore-history-toolbar__title p {
    margin: 7px 0 0;
    color: #727982;
    font-size: 14px;
    line-height: 1.45;
}

.netstore-viewed-history .netstore-history-clear {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #d6dde3;
    border-radius: 8px;
    background: #fff;
    color: #4f5963;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.netstore-viewed-history .netstore-history-clear:hover,
.netstore-viewed-history .netstore-history-clear:focus {
    border-color: #b9c4cd;
    background: #f7f8f9;
    color: #27313a;
    outline: none;
}

.netstore-viewed-card-actions {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.netstore-viewed-history ul.product-items li .netstore-viewed-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 36px;
    padding: 7px 9px !important;
    border: 1px solid #d5dce2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, opacity .16s ease;
}

.netstore-viewed-history ul.product-items li .netstore-viewed-card-action--save {
    border-color: #a9cfaa !important;
    color: #357a35 !important;
}

.netstore-viewed-history ul.product-items li .netstore-viewed-card-action--save:hover,
.netstore-viewed-history ul.product-items li .netstore-viewed-card-action--save:focus {
    border-color: #69a96c !important;
    background: #f1f8f1 !important;
    color: #2c682e !important;
    outline: none;
}

.netstore-viewed-history ul.product-items li .netstore-viewed-card-action--remove {
    color: #69727b !important;
}

.netstore-viewed-history ul.product-items li .netstore-viewed-card-action--remove:hover,
.netstore-viewed-history ul.product-items li .netstore-viewed-card-action--remove:focus {
    border-color: #bec7cf !important;
    background: #f6f7f8 !important;
    color: #343d45 !important;
    outline: none;
}

.netstore-viewed-card-action.is-loading,
.netstore-history-clear.is-loading {
    cursor: wait;
    opacity: .58;
}

.netstore-viewed-history ul.product-items li .netstore-viewed-card-action .fa {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .netstore-viewed-history .netstore-history-toolbar {
        display: block;
        margin-bottom: 18px;
    }

    .netstore-viewed-history .netstore-history-clear {
        width: 100%;
        min-height: 44px;
        margin-top: 14px;
    }

    .netstore-viewed-card-actions {
        grid-template-columns: 1fr;
    }

    .netstore-viewed-history ul.product-items li .netstore-viewed-card-action {
        min-height: 44px;
        font-size: 14px;
    }
}
