// Block shadow 
.cms-block-shadow{
    @include css3-prefix('box-shadow', '0 10px 30px 0 rgba(50, 50, 50, .16)');
    @include transition(all 0.5s linear);
}
// Box Shadow 
.cms-box-shadow{
    @include box-shadow('0 0px 0px 0 rgba(50, 50, 50, .16)');
}

// width
.w-100{
	width: 100%!important;
}
.overflow-hidden{
	overflow: hidden;
}
.overflow-visible{
	overflow: visible;
}
// empty none
.empty-none:empty{
	display: none;
}
// Flip on RTL
.rtl-flip{
	[dir="rtl"] &{
		@include flip();
	}
}
// image cover
.img-cover{
	object-fit: cover;
}
// clearfix
.clearfix {
	clear: both;
	&:after{
		content: '';
		display: block;
		clear: both;
	}
}

// background style
.cms-bg-cover{
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: fixed;
}

// Ripple
.cms-ripple{
	width: 70px;
	height: 70px; 
	line-height: 70px;
	font-size: 14px;
	position: relative;
	display: block;
	text-align: center;
	background-color: $white;
	color: $accent-color;
	//@include box-shadow(0 0 0 15px rgba($white_color_hex, 0.5));
	@include border-radius(50%);
	&:before,
	&:after{
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		height: 30px;
		width: 30px;
		@include transform(translate(-50%,-50%));
		@include border-radius(50%);
		@include animation(ripple 3s infinite);
		@include box-shadow(0 0 0 0 rgba($white_color_hex, .3));
	}
	&:before {
		@include css3-prefix('animation-delay', .9s);
	}
	&:after {
		@include css3-prefix('animation-delay', .6s);
	}
	.cms-video-btn-strokes{
		width: calc(100% + 20px);
		height: calc(100% + 20px);
		position: absolute;
		top: -10px;
		left: -10px;
		@include border-radius(50%);
		&.stroke-large{
			width: calc(100% + 70px);
			height: calc(100% + 70px);
			position: absolute;
			top: -35px;
			left: -35px;
			border-width: 35px!important;
		}
		// outline 
		&.cms-video-btn-stroke {
			border-style: solid;
			border-width: 2px;
		}
		// Shadow
		&.cms-video-btn-shadow{
			border-style: solid;
			border-width: 10px;
			opacity: 0.2;
		}
	}

	&.locate-point{
		background-color: #aeaeae;
		&:before,
		&:after{
			@include opacity(0.5);
		}
		.cms-ripple-inner{
			width: 8px;
			height: 8px;
			background-color: $primary-color;
			@include border-radius(50%);
			position: absolute;
			top: calc(50% - 4px);
			left: calc(50% - 4px);
		}
	}
	// Size
	&.size-22{
		width: 22px;
		height: 22px;
		line-height: 22px;
		font-size: 14px;
		&:before,
		&:after{
			width: 20px;
			height: 20px;
		}
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 32px;
			height: 32px;
			top: -5px;
			left: -5px;
		}
	}
	&.size-28{
		width: 28px;
		height: 28px;
		line-height: 28px;
		&:before,
		&:after{
			width: 28px;
			height: 28px;
		}
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 38px;
			height: 38px;
			top: -5px;
			left: -5px;
		}
	}
	&.size-32{
		width: 32px;
		height: 32px;
		line-height: 32px;
		&:before,
		&:after{
			width: 32px;
			height: 32px;
		}
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 42px;
			height: 42px;
			top: -5px;
			left: -5px;
		}
	}
	&.size-42{
		width: 42px;
		height: 42px;
		line-height: 42px;
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 52px;
			height: 52px;
			top: -5px;
			left: -5px;
		}
	}
	&.size-46{
		width: 46px;
		height: 46px;
		line-height: 46px;
		@include box-shadow(0 0 0 transparent);
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 56px;
			height: 56px;
			top: -5px;
			left: -5px;
		}
	}
	&.size-47{
		width: 47px;
		height: 47px;
		line-height: 47px;
		@include box-shadow(0 0 0 transparent);
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 57px;
			height: 57px;
			top: -5px;
			left: -5px;
		}
	}
	&.size-62{
		width: 62px;
		height: 62px;
		line-height: 62px;
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 82px;
			height: 82px;
		}
	}
	&.size-68{
		width: 68px;
		height: 68px;
		line-height: 68px;
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 88px;
			height: 88px;
			top: -10px;
			left: -10px;
		}
	}
	@media(min-width: $screen-md-min){
		&.size-md-68{
			width: 68px;
			height: 68px;
			line-height: 68px;
			&.cms-ripple-outline .cms-ripple-outline-line{
				width: 88px;
				height: 88px;
				top: -10px;
				left: -10px;
			}
		}
	}
	@media(min-width: $screen-lg-min){
		&.size-lg-68{
			width: 68px;
			height: 68px;
			line-height: 68px;
			&.cms-ripple-outline .cms-ripple-outline-line{
				width: 88px;
				height: 88px;
				top: -10px;
				left: -10px;
			}
		}
	}
	&.size-82{
		width: 82px;
		height: 82px;
		line-height: 82px;
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 102px;
			height: 102px;
		}
	}
	&.size-88{
		width: 88px;
		height: 88px;
		line-height: 88px;
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 108px;
			height: 108px;
		}
	}
	&.size-90{
		width: 90px;
		height: 90px;
		line-height: 90px;
		&.cms-ripple-outline .cms-ripple-outline-line{
			width: 110px;
			height: 110px;
		}
	}
	
	// Move
	&.cms-vibrate span{
		position: relative;
		@include animation(vibrate 2s linear 0s infinite);
	}
	// Outline
	&.cms-ripple-outline{
		.cms-ripple-outline-line{
			border-style: solid;
			border-width: 2px;
			width: 90px;
			height: 90px;
			display: block;
			position: absolute;
			top: -11px;
			left: -11px;
			border-radius: 50%;
		}
	}
}
.cms-phone-ripple{
	display: block;
	border: 2px solid $accent-color;
	&.size-68{
		width: 68px;
		height: 68px;
		padding: 9px;
	}
}
// image
.cms-img{
	@include transition();
	.cms-hover-img-scale:hover &{
		@include transform(scale(1.1));
	}
}
// ontop
.z-ontop,
.z-top{
	z-index: 2;
}

// overlay link
.cms-link-overlay{
	> a{
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}
}
// animation 
.cms-invisible{
	visibility: hidden;
	//@include opacity(0);
}
//Rating
.cms-rating-star:before{
	content: "\e949\e949\e949\e949\e949";
	letter-spacing: 4px;
}

// 
[data-elementor-open-lightbox="yes"]{
	cursor: pointer;
}

.cms-image-as-bg{
	background-size: cover;
	background-position: center center;
	> img{
		visibility: hidden;
		opacity: 0;
	}
}

// Button Link
.cms--link {
  &.bottom-line-yes{
    border-bottom: 2px solid;
    /* @each $name, $color in $cms_theme_colors{
    	&.text-#{$name}{
    		border-bottom-color: $color;
    	}
    } */
    &.text-accent{
    	border-color: $primary-color;
    }
    &.text-primary {
    	border-color: $accent-color;
    }
  }
}

// Rotate
.cms-rotate-vert{
	writing-mode: vertical-lr;
	padding: 30px 20px;
	@include border-radius(0 20px 0 20px);
	[dir="rtl"] &{
		@include border-radius(20px 0 20px 0);
	}
	// shadow
	@each $name, $color in $cms_theme_colors{
		&.shadow-#{$name}{
			box-shadow: 35px -30px  0 0 $color;
			[dir="rtl"] &{
				box-shadow: -35px -30px 0 0 $color;
			}
		}
	}
	.cms-rotate-vert-inner{
		@include transform(rotate(180deg));
	}
}

// Show divider 
.show-divider-on-hover{
	.cms-svg-divider.show-on-hover{
		@include scale(0);
	}
	&:hover{
		.cms-svg-divider.show-on-hover{
			@include scale(1);
		}
	}
}