/* =========================================================
   ROK CIRCULAR COUNTER
========================================================= */

.rok-circular-counter {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
}

.rok-circular-counter *,
.rok-circular-counter *::before,
.rok-circular-counter *::after {
	box-sizing: border-box;
}


/* =========================================================
   CIRCLE
========================================================= */

.rok-circular-counter-circle {
	position: relative;

	width: 135px;
	height: 135px;

	display: flex;
	align-items: center;
	justify-content: center;

	margin: 0 auto 18px;

	border-radius: 50%;

	/*
	 * Background progress ring.
	 * JS will update --rok-counter-progress.
	 */
	background:
		conic-gradient(
			var(--counter-progress-color) 0deg,
			var(--counter-progress-color) var(--rok-counter-progress, 0deg),
			var(--counter-track-color) var(--rok-counter-progress, 0deg),
			var(--counter-track-color) 360deg
		);

	transition: background 0.1s linear;
}


/* =========================================================
   INNER CIRCLE
========================================================= */

.rok-circular-counter-circle::before {
	content: "";

	position: absolute;

	top: 4px;
	right: 4px;
	bottom: 4px;
	left: 4px;

	border-radius: 50%;

	background: #FDF4EC;

	z-index: 0;
}


/* =========================================================
   NUMBER
========================================================= */

.rok-circular-counter-number {
	position: relative;
	z-index: 1;

	display: flex;
	align-items: baseline;
	justify-content: center;

	width: 100%;

	margin: 0;
	padding: 0;

	color: #111111;

	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -1px;
}


/* =========================================================
   VALUE
========================================================= */

.rok-circular-counter-value {
	display: inline-block;

	margin: 0;
	padding: 0;

	color: #111111;

	font-size: 44px;
	font-weight: 700;
	line-height: 1;
}


/* =========================================================
   PREFIX
========================================================= */

.rok-circular-counter-prefix {
	display: inline-block;

	margin-right: 3px;

	color: #111111;

	font-size: 24px;
	font-weight: 600;
	line-height: 1;
}


/* =========================================================
   SUFFIX
========================================================= */

.rok-circular-counter-suffix {
	display: inline-block;

	margin-left: 3px;

	color: #FE7D02;

	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.rok-circular-counter-description {
	width: 100%;
	max-width: 500px;

	margin: 0 auto;
	padding: 0;

	color: #111111;

	font-size: 21px;
	font-weight: 500;
	line-height: 1.25;

	text-align: center;
}


/* =========================================================
   DESCRIPTION BR
========================================================= */

.rok-circular-counter-description br {
	display: block;
}


/* =========================================================
   HOVER
========================================================= */

.rok-circular-counter-circle {
	transition:
		transform 0.3s ease,
		background 0.1s linear;
}

.rok-circular-counter:hover .rok-circular-counter-circle {
	transform: scale(1.02);
}


/* =========================================================
   ELEMENTOR EDITOR
========================================================= */

.elementor-editor-active .rok-circular-counter {
	visibility: visible;
	opacity: 1;
}

.elementor-editor-active .rok-circular-counter-circle {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.elementor-editor-active .rok-circular-counter-number {
	display: flex !important;
	align-items: baseline !important;
	justify-content: center !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

	.rok-circular-counter-circle {
		width: 125px;
		height: 125px;
	}

	.rok-circular-counter-number,
	.rok-circular-counter-value {
		font-size: 40px;
	}

	.rok-circular-counter-description {
		font-size: 19px;
	}

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	.rok-circular-counter-circle {
		width: 115px;
		height: 115px;

		margin-bottom: 16px;
	}

	.rok-circular-counter-number,
	.rok-circular-counter-value {
		font-size: 36px;
	}

	.rok-circular-counter-prefix {
		font-size: 20px;
	}

	.rok-circular-counter-suffix {
		font-size: 16px;
	}

	.rok-circular-counter-description {
		max-width: 100%;

		font-size: 18px;
		line-height: 1.3;
	}

}