/**
 * Widget: نکته (Tip Box)
 * رنگ هر تم از توکن‌های خودِ سایت بانویت گرفته شده:
 * آبی = --cwa-primary, قرمز = --wc-red, سبز = --wc-green, نارنجی = --wc-orange
 */

.seoew-tip-box {
	--seoew-tip-accent: var(--seoew-color-primary);
	--seoew-tip-bg-start: #eaf5fc;
	--seoew-tip-blob: rgba(31, 122, 184, .14);

	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--seoew-tip-bg-start) 0%, #ffffff 65%);
	border-inline-start: 4px solid var(--seoew-tip-accent);
	border-radius: var(--seoew-radius-lg);
	padding: 26px 28px 76px;
	min-height: 150px;
	font-family: var(--seoew-font-family);
}

.seoew-tip-box--red {
	--seoew-tip-accent: #aa0000;
	--seoew-tip-bg-start: #fbebe9;
	--seoew-tip-blob: rgba(170, 0, 0, .12);
}

.seoew-tip-box--green {
	--seoew-tip-accent: #008a20;
	--seoew-tip-bg-start: #e8f7ec;
	--seoew-tip-blob: rgba(0, 138, 32, .12);
}

.seoew-tip-box--orange {
	--seoew-tip-accent: #b5730b;
	--seoew-tip-bg-start: #fff6e0;
	--seoew-tip-blob: rgba(255, 186, 0, .22);
}

.seoew-tip-box__dots {
	position: absolute;
	top: 14px;
	inset-inline-start: 16px;
	width: 44px;
	height: 44px;
	background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
	background-size: 8px 8px;
	color: var(--seoew-tip-accent);
	opacity: .3;
	pointer-events: none;
}

.seoew-tip-box__header {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

.seoew-tip-box__header-label {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	color: var(--seoew-tip-accent);
}

.seoew-tip-box__header-line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--seoew-tip-accent);
	opacity: .25;
}

.seoew-tip-box__text {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 78%;
	font-size: 14px;
	line-height: 1.9;
	color: var(--seoew-color-heading);
}

.seoew-tip-box__blob {
	position: absolute;
	bottom: -30px;
	inset-inline-end: -20px;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: var(--seoew-tip-blob);
	z-index: 0;
	pointer-events: none;
}

.seoew-tip-box__icon {
	position: absolute;
	bottom: 18px;
	inset-inline-end: 22px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--seoew-tip-accent);
	font-size: 22px;
	box-shadow: var(--seoew-shadow-soft);
}

.seoew-tip-box__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

@media (max-width: 767px) {
	.seoew-tip-box {
		padding: 18px 18px 64px;
		min-height: 0;
	}

	.seoew-tip-box__text {
		max-width: 100%;
		font-size: 13px;
	}

	.seoew-tip-box__icon {
		width: 42px;
		height: 42px;
		font-size: 18px;
		bottom: 14px;
	}

	.seoew-tip-box__blob {
		width: 100px;
		height: 100px;
	}
}
