/**
 * Icon & Image Box for Elementor - Frontend Styles
 */

.iibe-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	gap: 20px;
}

.iibe-box,
.iibe-box:hover,
.iibe-box:visited {
	text-decoration: none;
}

.iibe-media-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
}

.iibe-media-wrap.iibe-shape-circle {
	border-radius: 50%;
	overflow: hidden;
}

.iibe-media-wrap.iibe-shape-square {
	border-radius: 0;
	overflow: hidden;
}

.iibe-media-wrap.iibe-shape-rounded {
	border-radius: 12px;
	overflow: hidden;
}

.iibe-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
}

.iibe-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.iibe-image {
	display: inline-flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.iibe-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.iibe-content {
	min-width: 0;
	flex: 1 1 auto;
}

.iibe-title {
	margin: 0 0 10px;
	line-height: 1.3;
}

.iibe-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s;
}

.iibe-description {
	margin: 0;
	line-height: 1.6;
}

.iibe-description p {
	margin: 0 0 10px;
}

.iibe-description p:last-child {
	margin-bottom: 0;
}

/* Position variants: keep row layouts from stretching text oddly on small screens */
.iibe-position-left- .iibe-box,
.iibe-position-right- .iibe-box {
	text-align: left;
}

@media (max-width: 767px) {
	.iibe-box {
		flex-direction: column !important;
		text-align: center !important;
	}
}
