/* ============================================
	Counter Boxes Widget Styles
	============================================ */

.jutso-widgets-counter-boxes {
	display: grid;
	gap: 24px;
	width: 100%;
	/* Grid template columns set via inline style on desktop */
}

/* Counter Box */
.jutso-widgets-counter-boxes__box {
	padding: 32px;
	border-radius: 60px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background-color: var(--site-color, #333);
	color: var(--site-contrast-color, #fff);
}

/* Icon */
.jutso-widgets-counter-boxes__icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
}

.jutso-widgets-counter-boxes__icon svg path,
.jutso-widgets-counter-boxes__icon i {
	width: 32px;
	height: 32px;
	font-size: 32px;
	line-height: 1;
	color: var(--site-contrast-color, #fff);
	fill: var(--site-contrast-color, #fff);
}

.jutso-widgets-counter-boxes__icon svg {
	display: block;
}

/* Number */
.jutso-widgets-counter-boxes__number {
	font-size: var(--jutso-core-font-h2-size);
	font-weight: 700;
	line-height: 130%;
	text-align: left;
}

/* Text */
.jutso-widgets-counter-boxes__text {
	font-size: var(--jutso-core-font-paragraph-s-size);
	line-height: var(--jutso-core-font-paragraph-s-line-height);
	font-family: var(--jutso-core-font-paragraph-s-family);
	font-weight: var(--jutso-core-font-paragraph-s-weight);
	letter-spacing: var(--jutso-core-font-paragraph-s-letter-spacing);
	word-spacing: var(--jutso-core-font-paragraph-s-word-spacing);
	text-align: left;
}

/* Larger Box Styles */
.jutso-widgets-counter-boxes__box--large .jutso-widgets-counter-boxes__number {
	font-size: var(--jutso-core-font-h1-alt-title-page-size);
	line-height: var(--jutso-core-font-h1-alt-title-page-line-height);
	font-family: var(--jutso-core-font-h1-alt-title-page-family);
	font-weight: var(--jutso-core-font-h1-alt-title-page-weight);
	letter-spacing: var(--jutso-core-font-h1-alt-title-page-letter-spacing);
	word-spacing: var(--jutso-core-font-h1-alt-title-page-word-spacing);
	text-align: center;
}

.jutso-widgets-counter-boxes__box--large .jutso-widgets-counter-boxes__text {
	font-size: var(--jutso-core-font-h4-size);
	line-height: var(--jutso-core-font-h4-line-height);
	font-family: var(--jutso-core-font-h4-family);
	font-weight: 700;
	letter-spacing: var(--jutso-core-font-h4-letter-spacing);
	word-spacing: var(--jutso-core-font-h4-word-spacing);
	text-align: center;
}

/* ============================================
	Responsive Styles
	============================================ */

/* Tablet */
@media (max-width: 1024px) {
	.jutso-widgets-counter-boxes {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.jutso-widgets-counter-boxes {
		grid-template-columns: 1fr !important;
	}

	.jutso-widgets-counter-boxes__box {
		border-radius: 24px;
	}

	.jutso-widgets-counter-boxes__box--large .jutso-widgets-counter-boxes__number,
	.jutso-widgets-counter-boxes__box--large .jutso-widgets-counter-boxes__text {
		text-align: start;
	}

	.jutso-widgets-counter-boxes__box--large .jutso-widgets-counter-boxes__text {
		font-size: var(--jutso-core-font-paragraph-s-size);
		line-height: var(--jutso-core-font-paragraph-s-line-height);
		font-family: var(--jutso-core-font-paragraph-s-family);
		font-weight: var(--jutso-core-font-paragraph-s-weight);
		letter-spacing: var(--jutso-core-font-paragraph-s-letter-spacing);
		word-spacing: var(--jutso-core-font-paragraph-s-word-spacing);
	}
}
