/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2024   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/
.ab-smc-description {
    position: relative;
    box-sizing: border-box;

    &:not(.ab-smc-opened) {
        overflow: hidden;

        & > div:first-child {
            overflow: hidden;

            .ut2-rp__grid {
                pointer-events: none;
            }
        }
    }

    .ab-smc-more {
        display: flex;
        align-items: center;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        padding-top: var(--gap-xs);
        color: @links;
        background: @general_bg_color;
        .transition(0.7s ease);
        min-width: max-content;

        &:after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 100%;
            height: 3em;
            z-index: -1;

            @startColor: @general_bg_color;
            @endColor: fade(@general_bg_color, 0);

            background-image: linear-gradient(to top, @startColor, @endColor); // Standard, IE10
            background-repeat: repeat-x;

        }
        .ab-smc, i {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        &.ab-smc-opened {
            position: relative;

            &:after {
                display: none;
            }
            i {
                transform: rotate(180deg);
            }
        }
        &.ab-smc-right-text {
            justify-content: right;
            padding-right: var(--gap-xxs);
        }
        &.ab-smc-center-text {
            justify-content: center;

            .ab-smc-button {
                flex-grow: 0;
                flex-basis: auto;
                justify-content: center;
            }
        }
        &:hover {
            color: lighten(@links, 8%);
        }
    }
    &.ab-smc-button-set {

    }
    span.ab-smc-text-2 {
        position: static;
        padding: 0 var(--gap-sm);
        background: @general_bg_color;
        & ~ .ab-smc-arrow {
            display: none;
        }
        &:before {
            display: none;
        }
        &:after {
            content: '';
            position: absolute;
            top: 60%;
            left: 0;
            right: 0;
            z-index: -1;
            height: 1px;
            border-bottom: 1px dashed @links;
        }
    }
}