/home/bdqbpbxa/demo-subdomains/ping-proxies.goodface.com.ua/src/components/PricingTable/styles.scss
@import "styles/_typography.scss";

.compare-products-table {
    border-radius: 8px;
    // border: 1px solid var(--Grey);
    border-bottom: 1px solid var(--Grey);
    position: relative;

    &__header-row {
        @include body1;
        position: sticky;
        background-color: var(--Light-Grey);
        z-index: 2;
        margin-bottom: 20px;
        border-radius: 8px 8px 0 0;

        &-container {
            top: 82px;
            height: 88px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--Grey);
            background-color: var(--Light-Grey);
            border-radius: 8px 8px 0 0;
            border: 1px solid var(--Grey);
            a,
            div {
                display: flex;
                align-items: center;
                gap: 16px;
                height: 100%;
                padding: 0 24px;
                flex: 1 1;
                border-right: 1px solid var(--Grey);
                z-index: 1;
                transition: 0.4s;
                &:last-child {
                    border-right: none;
                }
            }
            a:hover {
                background-color: var(--Light-Grey);
                .compare-products-table__product-icon {
                    transform: scale(1.1);
                }
                color: var(--Blue-purple);
            }
        }
        &::after {
            content: "";
            position: absolute;
            height: 60px;
            top: -40px;
            width: 101%;
            left: -1px;
            right: -1px;
            background-color: var(--White);
            z-index: -1;
        }
        &--with-banner {
            top: 122px;
        }
    }

    &__product-row {
        @include link;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        border-bottom: 1px solid var(--Grey);
        border-right: 1px solid var(--Grey);
        border-left: 1px solid var(--Grey);
        transition: 0.4s;
        margin: 0;
        cursor: pointer;

        div {
            display: flex;
            align-items: center;
            padding: 0 24px;
            height: 100%;
            flex: 1 1;
            border-right: 1px solid var(--Grey);
            &:last-child {
                border-right: none;
            }
            span {
                opacity: 0.6;
            }
        }
        &:nth-child(2) {
            margin-top: -20px;
        }
        &:last-child {
            border-radius: 0 0 8px 8px;
            border-bottom: none;
        }
        &:hover {
            background-color: #5547eb0d;
        }
    }

    &__info-column {
        @include button-text;
        flex: 1;
        padding: 0 10px;
    }

    &__product-icon {
        background-color: var(--White);
        border-radius: 6px;
        padding: 14px;
        box-shadow: 0px 16px 40px -16px #5547eb80;
        width: 56px;
        height: 56px;
        transition: 0.4s;
    }
}
.compare-products-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;

    &__header {
        @include body1;
        border-radius: 8px;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        cursor: pointer;
        background-color: var(--Light-Grey);
        transition: 0.4s;
        height: 80px;

        &-body {
            display: flex;
            gap: 16px;
            align-items: center;
        }
        &__product-icon {
            background-color: var(--White);
            border-radius: 6px;
            padding: 12px;
            box-shadow: 0px 16px 40px -16px #5547eb80;

            img {
                height: 24px;
                width: 24px;
            }
        }

        &-cross {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--White);
            padding: 8px;
            border-radius: 50%;
            transition: 0.5s;
            svg {
                height: 16px;
                width: 16px;
            }
        }
        &-icon {
            padding: 12px;
            border-radius: 6px;
            background: var(--White);
            box-shadow: 0px 16px 40px -16px rgba(85, 71, 235, 0.5);
            width: 48px;
            height: 48px;
        }
        &.active {
            border-radius: 8px 8px 0 0;
            .compare-products-accordion__header-cross {
                transform: rotate(45deg);
                color: var(--Blue-purple);
            }
        }
    }

    &__content {
        max-height: 0;
        overflow: hidden;
        transition: 0.3s ease;
        border-radius: 0 0 8px 8px;

        &.active {
            border: 1px solid var(--Grey);
        }
    }
    &__content-row {
        display: flex;
        width: 100%;
        border-bottom: 1px solid var(--Grey);
        background-color: var(--White);
        &:last-child {
            border-bottom: none;
        }

        div {
            flex: 1 1;
            border-right: 1px solid var(--Grey);
            min-height: 52px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            span {
                opacity: 0.6;
            }
            &:last-child {
                border-right: none;
                justify-content: center;
            }
        }
    }
}