/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 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                                                           *
*******************************************************************************************/
.cat-view-grid, .ab__sf_cat_desc, .ab__mcd_descs {
    width: 100%;
}

.ab__mcd_descs {

	> .ab-md-header {
		.ut2_title(24px);
		line-height: normal;
		margin-top: 0;
		margin-bottom: 20px;
		padding: 0;
	}
	
    &-section {
	    border: 1px solid @base5;
	    border-top: 1px solid @base;
	    margin-bottom: -1px;
	
		.ut2_grid_border() when (@abt__ut2_general_show_grid_border = none) {
			border-width: 1px 0 1px 0;
		}
		.ut2_grid_border();
		
			    
	    &:first-of-type {
			border-top: 1px solid @base5;
	    }
	    
	    &-title {
		    display: flex;
		    align-items: center;
		    justify-content: space-between;
	        width: 100%;
	        padding: @pdi;

	    	cursor: pointer;
	    	
	    	.transition(0.3s);

			&.ty-hand {
				h2, h3, h4, h5, div {
					.ut2_title(16px);
					width: 100%;
					margin: 0;
				}
			}
	    	
	    	i[class*="ty-icon"] {
		    	margin-left: 10px;
		    	color: @lighten-max-font;
	    	}
	    	
	    	&.open, &:hover, &:active {
				* {
					color: @links !important;
				}
		    }
	    }
	    
    	&:hover {
		    position: relative;
		    z-index: 2;
		    .box-shadow(0 0 7px 0 fade(@base5, 70%));
	    }
	    
		&-content {
			overflow-y: auto;
			padding: 0 @pdi @pdi @pdi;
			
			&.ty-wysiwyg-content {
			    margin-bottom: 15px;
			    margin-right: 15px;
			    padding-bottom: 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;
    	}
    }	
}
