@import 'scss/styles.scss';

.ratings-container {
    width: 140px;
    height: 26px;
    padding: 4px;
    gap: 8px;
    border-radius: 2px;

    &:hover {
        background: $dark-2;
    }

    &.active {
        background: $ta-black-2 !important;
    }

    .ratings {
        gap: 4px;
        width: 38px;
        height: 18px;

        p {
            width: 16px;
            height: 14px;
            font-family: Montserrat;
            font-size: 11px;
            font-weight: 600;
            line-height: 14px;
            text-align: center;
            color: $grey-3;
        }

        .filter {
            &:hover {
                background: $grey-12;
            }
        }

        svg {
            width: 18px;
            height: 18px;

            path {
                fill: $dark-3;
            }
        }

        .has-ratings {
            svg {
                path {
                    fill: $muted !important;
                }
            }
        }

        .most-dislikes {
            svg {
                path {
                    fill: $ta-red-10 !important;
                }
            }
        }

        .most-likes {
            svg {
                path {
                    fill: $ta-green !important;
                }
            }
        }
    }
}

.ratings-filter-container {
    background-color: $white-2;
    width: 312px;
    height: auto;
    padding: 4px;
    gap: 8px;
    border-radius: 2px;
    .filter-list-container {
        width: 100%;
    }

    .filter-ratings-container {
        width: 100%;
        padding-bottom: 6px;
        border-bottom: 1px solid $white;

        .sort-date {
            cursor: pointer;
            padding: 6px;
            border-radius: 2px;
            gap: 4px;

            p {
                width: 35px;
                font-size: 14px;
                font-weight: 500;
                line-height: 18px;
                color: $ta-black;
            }
            svg {
                path {
                    fill: $blue-8 !important;
                }
            }
        }

        .filter-container {
            justify-content: flex-start;
            gap: 4px;

            .remove-icon {
                display: none;
            }

            .ratings-filter {
                padding: 4px;
                border-radius: 2px 0px 0px 0px;
                width: 44px;
                height: 26px;

                &:hover {
                    background: $grey-12 !important;

                    p {
                        color: $ta-black !important;
                    }

                    .most-dislikes {
                        svg {
                            path {
                                fill: $ta-red-13 !important;
                            }
                        }
                    }

                    .most-likes {
                        svg {
                            path {
                                fill: $ta-green-4 !important;
                            }
                        }
                    }
                }

                &.selected-icon {
                    padding: 4px;

                    p {
                        color: $white !important;
                    }

                    &:hover {
                        cursor: pointer;
                        background: $ta-black !important;

                        .remove-icon {
                            display: flex;
                        }

                        p {
                            display: none;
                        }

                        .remove-icon {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            width: 14px;
                            height: 14px;

                            svg {
                                path {
                                    fill: $white !important;
                                }
                            }
                        }

                        .most-dislikes {
                            svg {
                                path {
                                    fill: $ta-red-13 !important;
                                }
                            }
                        }

                        .most-likes {
                            svg {
                                path {
                                    fill: $ta-green-4 !important;
                                }
                            }
                        }
                    }

                    background: $grey-2 !important;

                    p {
                        color: $ta-black;
                    }

                    .most-dislikes {
                        svg {
                            path {
                                fill: $red-7;
                            }
                        }
                    }

                    .most-likes {
                        svg {
                            path {
                                fill: $ta-green;
                            }
                        }
                    }
                }
            }
        }

        p {
            width: 16px;
            height: 14px;
            font-size: 11px;
            font-weight: 600;
            line-height: 14px;
            text-align: center;
            color: $grey-3;
        }

        svg {
            width: 18px;
            height: 18px;

            path {
                fill: $dark-3;
            }
        }

        .has-ratings {
            svg {
                path {
                    fill: $muted !important;
                }
            }
        }

        .most-dislikes {
            svg {
                path {
                    fill: $ta-red-10 !important;
                }
            }
        }

        .most-likes {
            svg {
                path {
                    fill: $ta-green !important;
                }
            }
        }
    }
}

::ng-deep .popover {
    .popover-body {
        position: absolute;
        top: 0px;
        left: -100px;
    }
}

::ng-deep .modal-content {
    width: 340px;
}
