/**
 * Visoop Button widget styles.
 *
 * Style variants (link class): visoop-btn-default | visoop-btn-square |
 * visoop-btn-underline | visoop-btn-mask | visoop-btn-oval |
 * visoop-btn-circle | visoop-btn-ellipse.
 *
 * Hover-animation variants (link class, only on default/square):
 *   btn-hover-none, btn-hover-divide, btn-hover-cross, btn-hover-cropping,
 *   btn-rollover-top, btn-rollover-left, btn-parallal-border, btn-rollover-cross.
 *
 * @package VisoopCore
 */

/* ── Keyframes for the "mask" style reveal ─────────────────────────────── */

@keyframes visoop_mask_animation {
	from { -webkit-mask-position: 0 0;   mask-position: 0 0; }
	to   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}
@keyframes visoop_mask_animation_2 {
	from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
	to   { -webkit-mask-position: 0 0;   mask-position: 0 0; }
}

/* ── Wrapper + link base ───────────────────────────────────────────────── */

.visoop__btn i   { transition: all 0.3s; }
.visoop__btn svg { width: 1em; height: 1em; }

.visoop__btn a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 16px;
	line-height: 1;
	font-weight: 500;
	transition: all 0.3s;
}

.visoop__btn.icon-position-after i,
.visoop__btn.icon-position-after svg {
	order: 15;
}
.visoop__btn.icon-position-after .visoop-btn-mask::after {
	align-items: flex-start;
	justify-content: flex-start;
}

/* ── Style variants ────────────────────────────────────────────────────── */

.visoop-btn-default {
	padding: 17px 35px;
	border: 1px solid #1C1D20;
	overflow: hidden;
	z-index: 0;
}
.visoop-btn-default:hover { color: #1C1D20; }

.visoop-btn-circle {
	width: 140px;
	height: 140px;
	color: #1C1D20;
	border-radius: 100%;
	flex-direction: column;
	background-color: #E8BF96;
}
@media only screen and (max-width: 1199px) {
	.visoop-btn-circle { width: 130px; height: 130px; }
}
.visoop-btn-circle:hover { color: #fff; }

.visoop-btn-oval {
	color: #1C1D20;
	border: 1px solid #1C1D20;
	padding: 32px 52px;
	border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
}
@media only screen and (max-width: 991px) {
	.visoop-btn-oval { padding: 30px; }
}
.visoop-btn-oval:hover { color: #E8BF96; }

.visoop-btn-ellipse {
	color: #1C1D20;
	padding: 45px 45px;
	position: relative;
	background-color: #1C1D20;
	border-radius: 100%;
	border-top-left-radius: 200%;
	border-bottom-right-radius: 200%;
	z-index: 1;
}
.visoop-btn-ellipse:hover {
	color: #FFBC7D;
	background-color: #E8BF96;
}
.visoop-btn-ellipse:before {
	position: absolute;
	content: "";
	width: calc(100% - 16px);
	height: calc(100% - 2px);
	background-color: #fff;
	z-index: -1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 100%;
	border-top-left-radius: 200%;
	border-bottom-right-radius: 200%;
}

.visoop-btn-square {
	flex-direction: column;
	color: #1C1D20;
	text-align: center;
	border: 1px solid currentColor;
	height: 215px;
	width: 215px;
	padding: 20px;
	z-index: 0;
	transition: all 0.5s;
}
@media only screen and (max-width: 1199px) {
	.visoop-btn-square { width: 200px; height: 200px; }
}
@media only screen and (max-width: 991px) {
	.visoop-btn-square { width: 170px; height: 170px; font-size: 18px; }
}
.visoop-btn-square:hover { color: #E8BF96; }

.visoop-btn-underline {
	color: #1C1D20;
	padding-bottom: 5px;
	position: relative;
}
.visoop-btn-underline::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 1px;
	left: 0;
	bottom: 0;
	background-color: #1C1D20;
	transition: all 0.3s;
}
.visoop-btn-underline:hover { color: #E8BF96; fill: #E8BF96; }
.visoop-btn-underline:hover::after { width: 0%; }

.visoop-btn-mask {
	padding: 15px 30px;
	position: relative;
	overflow: hidden;
	transition: all 0.5s;
	border-radius: 5px;
	color: #1C1D20;
	border: 1px solid #1C1D20;
	z-index: 1;
}
.visoop-btn-mask i,
.visoop-btn-mask svg { position: relative; z-index: 1; }
.visoop-btn-mask::after {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	color: #fff;
	position: absolute;
	content: attr(data-text);
	cursor: pointer;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-color: #1C1D20;
	-webkit-mask: url("../images/mask-btn.png");
	        mask: url("../images/mask-btn.png");
	-webkit-mask-size: 2300% 100%;
	        mask-size: 2300% 100%;
	animation: visoop_mask_animation_2 0.7s steps(22) forwards;
	padding: 15px 30px;
}
.visoop-btn-mask:hover { color: #1C1D20; }
.visoop-btn-mask:hover::after {
	animation: visoop_mask_animation 0.7s steps(22) forwards;
}

/* ── Hover animations (radial fill inside oval/circle wrapper) ─────────── */

.btn-hover-bgchange {
	overflow: hidden;
	position: relative;
	z-index: 5;
}
.btn-hover-bgchange span {
	position: absolute;
	content: "";
	width: 0;
	height: 0;
	left: 50%;
	top: 50%;
	z-index: -1;
	border-radius: 100%;
	transition: all 1s;
	background-color: #1C1D20;
	transform: translate(-50%, -50%);
}
.btn-hover-bgchange:hover {
	color: #fff;
	border: 1px solid #1C1D20;
}
.btn-hover-bgchange:hover span {
	width: 400px;
	height: 400px;
}

/* ── Hover animations (default / square only) ──────────────────────────── */

.btn-hover-default:hover { color: #1C1D20; background-color: #fff; }

.btn-hover-cross {
	overflow: hidden;
	position: relative;
	transition: all 1s;
}
.btn-hover-cross::after {
	position: absolute;
	content: "";
	width: 150%;
	height: 0%;
	left: 50%;
	top: 50%;
	background-color: #1C1D20;
	transform: translateX(-50%) translateY(-50%);
	transition: all 0.75s;
	opacity: 0.5;
	z-index: -1;
}
.btn-hover-cross:hover { color: #fff; background-color: transparent; }
.btn-hover-cross:hover::after { height: 120%; opacity: 1; }

.btn-hover-divide {
	overflow: hidden;
	position: relative;
	transition: all 1s;
	z-index: 1;
}
.btn-hover-divide::after {
	position: absolute;
	content: "";
	width: 0%;
	height: 100%;
	left: 50%;
	top: 50%;
	background-color: #1C1D20;
	transform: translateX(-50%) translateY(-50%);
	transition: all 0.75s;
	opacity: 0.5;
	z-index: -1;
}
.btn-hover-divide:hover { color: #fff; background-color: transparent; }
.btn-hover-divide:hover::after { width: 120%; opacity: 1; }

.btn-hover-cropping {
	overflow: hidden;
	position: relative;
	transition: all 1s;
}
.btn-hover-cropping::after {
	position: absolute;
	content: "";
	width: 150%;
	height: 0%;
	left: 50%;
	top: 50%;
	background-color: #1C1D20;
	transform: translateX(-50%) translateY(-50%) rotate(25deg);
	transition: all 0.75s;
	opacity: 0.5;
	z-index: -1;
}
.btn-hover-cropping:hover { color: #fff; background-color: transparent; }
.btn-hover-cropping:hover::after { height: 400%; opacity: 1; }

.btn-rollover-top {
	position: relative;
	transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.btn-rollover-top:after {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 0;
	width: 100%;
	z-index: -1;
	content: "";
	background-color: #1C1D20;
	transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.btn-rollover-top:hover { color: #fff; background-color: transparent; }
.btn-rollover-top:hover::after { top: 0%; bottom: auto; height: 100%; }

.btn-rollover-left {
	position: relative;
	transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.btn-rollover-left::after {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 0;
	z-index: -1;
	content: "";
	background-color: #1C1D20;
	transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
}
.btn-rollover-left:hover { color: #fff; background-color: transparent; }
.btn-rollover-left:hover::after { left: 0%; right: auto; width: 100%; }

.btn-rollover-cross {
	overflow: hidden;
	position: relative;
	transition: all 0.5s;
}
.btn-rollover-cross::before {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	bottom: 100%;
	left: 100%;
	opacity: 0;
	border-bottom: 1px solid #1C1D20;
	border-left: 1px solid #1C1D20;
	transition: all 0.75s;
}
.btn-rollover-cross::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 100%;
	right: 100%;
	opacity: 0;
	border-top: 1px solid #1C1D20;
	border-right: 1px solid #1C1D20;
	transition: all 0.75s;
}
.btn-rollover-cross:hover {
	border-color: transparent !important;
	color: #1C1D20;
}
.btn-rollover-cross:hover::before {
	bottom: 0;
	left: 0;
	opacity: 1;
	width: 100%;
	height: 100%;
}
.btn-rollover-cross:hover::after {
	top: 0;
	right: 0;
	opacity: 1;
	width: 100%;
	height: 100%;
}

.btn-parallal-border {
	overflow: hidden;
	position: relative;
	transition: all 0.5s;
}
.btn-parallal-border::before {
	position: absolute;
	content: "";
	width: 0%;
	height: 0%;
	bottom: 0;
	left: 0;
	opacity: 0;
	border-bottom: 1px solid #1C1D20;
	border-left: 1px solid #1C1D20;
	transition: all 0.75s;
}
.btn-parallal-border::after {
	position: absolute;
	content: "";
	width: 0%;
	height: 0%;
	top: 0;
	right: 0;
	opacity: 0;
	border-top: 1px solid #1C1D20;
	border-right: 1px solid #1C1D20;
	transition: all 0.75s;
}
.btn-parallal-border:hover {
	border-color: transparent !important;
	color: #1C1D20;
}
.btn-parallal-border:hover::before { opacity: 1; width: 100%; height: 100%; }
.btn-parallal-border:hover::after  { opacity: 1; width: 100%; height: 100%; }
