/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2025   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* 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                                                           *
*******************************************************************************************/

@pdi: 15px;

.ab__sf_cat_desc, .ab__mcd_descs {
	width: 100%;
}

.ab__mcd_descs {
    
    > .ab-md-header {
		font-family: @headings_font;
		font-size: @headings_font_size;
		text-decoration: @headings_font_decoration;
		font-style: @headings_font_style;
		font-weight: @headings_font_weight;
		margin-top: 0;
		margin-bottom: @pdi;
		padding: 0;
	}

    &-section {
	    border: 1px solid @base;
	    margin-bottom: -1px;

        &-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: @pdi;

            cursor: pointer;

            .box-sizing(border-box);
            .transition(0.3s);

            &.ty-hand {
                h2, h3, h4, h5, div {
                    margin: 0;
                    width: 100%;
                    font-size: 16px;
                    line-height: 145%;
                    font-family: @headings_font;
                    font-weight: @headings_font_weight;
                    letter-spacing: @heading_letter-spacing;
                    text-transform: @uppercase;
                }
            }

            i[class*="ty-icon"] {
                margin-left: 10px;
                color: @lighten-max-font;
            }

            &.open, &:hover, &:active {
                * {
                    color: @links !important;
                }
            }
        }

        &:first-child {
            border-top: 2px solid @menu;
        }

        &-content {
            overflow-y: auto;
            padding: 0 @pdi @pdi @pdi;

            &.ty-wysiwyg-content {

                p {
                    line-height: 145%;
                    padding: 0 0 10px 0;

                    &:first-child {
                        padding-top: 0;
                    }
                }

                h1, h2, h3, h4, h5, h6 {
                    color: @font;

                    &:first-child {
                        margin-top: 8px;
                    }
                }
            }

            [class*="more"] {
                left: @pdi;
            }
        }

        @media screen and (max-width: 480px) {
            &-title, &-content {
                padding-left: 10px;
                padding-right: 10px;
            }
        }
    }
}

.ab__mcd_descs-section-content {
    padding-right: 10px;
    .transition(all 0.5ms);

    &::-webkit-scrollbar {
        width: 0;
    }
    &::-webkit-scrollbar-track {
        .box-shadow(inset 0 0 6px rgba(0, 0, 0, 0.1));
        .border-radius(4px);
    }
    &::-webkit-scrollbar-thumb {
        .border-radius(4px);
        background: @base20;
    }
    &:hover {
        &::-webkit-scrollbar {
            width: 4px;
        }
    }
}