/* ==========================================================================
   Digilink Stats & Reviews Widget — v1.3.0
   Responsive: Desktop | Tablet (≤ 1024px) | Mobile (≤ 768px) | Small (≤ 480px)
   ========================================================================== */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.dsr-wrapper {
	position: relative;
	font-family: inherit;
	line-height: normal;
}

/* ── TOP SECTION ─────────────────────────────────────────────────────────── */

.dsr-top {
    background: url(/newdigi/wp-content/uploads/2026/07/bg-yellow.webp);
    padding: 36px 24px 40px;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #FFD600;
    border-radius: 20px 20px 0 0px;
}
.dsr-top__inner {
	max-width: 1170px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.dsr-top__header {
	text-align: center;
}

.dsr-top__heading {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.dsr-top__subheading {
	margin: 0;
	font-size: 14px;
	color: #333333;
	line-height: 1.5;
}

/* ── Stats row ───────────────────────────────────────────────────────────── */

.dsr-stats {
	display: flex;
	align-items: stretch;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	width: 100%;
}

.dsr-stat {
	position: relative;
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 28px;
}

/* Vertical divider on the right */
.dsr-stat--has-divider::after {
	content: '';
	position: absolute;
	right: 0;
	top: 10%;
	height: 80%;
	width: 1px;
	background-color: rgba(0, 0, 0, 0.25);
}

.dsr-stat__number {
	display: block;
	font-size: 50px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
	margin-bottom: 8px;
}

.dsr-stat__label {
	display: block;
	font-size: 14px;
	color: #333333;
	line-height: 1.4;
}

/* ── CHEVRON divider ─────────────────────────────────────────────────────── */

.dsr-chevron-wrap {
	position: relative;
	height: 0;
	display: flex;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}

.dsr-chevron {
	display: block;
	width: 0;
	height: 0;
	border-left: 36px solid transparent;
	border-right: 36px solid transparent;
	border-top: 28px solid #FFD600; /* matched by Elementor color control */
	margin-top: -1px;
}

/* ── BOTTOM SECTION ──────────────────────────────────────────────────────── */

.dsr-bottom {
	background-color: #2a2a2a;
	padding: 32px 24px;
}

.dsr-bottom__inner {
	max-width: 1170px;
	margin: 0 auto;
}

/* Reviews row */
.dsr-reviews {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 40px 60px;
}

/* Single platform card */
.dsr-review {
	display: flex;
	align-items: center;
	gap: 16px;
}

.dsr-review__logo {
	display: block;
	max-height: 50px;
	width: auto;
	object-fit: contain;
}

/* Text placeholder shown when no logo is uploaded */
.dsr-review__logo-placeholder {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.dsr-review__right {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dsr-review__stars {
	display: block;
	max-height: 28px;
	width: auto;
	object-fit: contain;
}

/* Unicode star fallback */
.dsr-review__stars-text {
	font-size: 18px;
	color: #f5c800;
	letter-spacing: 2px;
	line-height: 1;
}

.dsr-review__text {
	margin: 0;
	font-size: 14px;
	color: #ffffff;
	line-height: 1.4;
	font-weight: 600;
}

.dsr-review__text a {
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
}

.dsr-review__text a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   ELEMENTOR EDITOR — force full visibility in preview pane
   ========================================================================== */

.elementor-editor-active .dsr-wrapper {
	opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ── Tablet  ≤ 1024px ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

	.dsr-top {
		padding: 30px 20px 36px;
	}

	.dsr-top__heading {
		font-size: 22px;
	}

	.dsr-stat {
		padding: 12px 20px;
	}

	.dsr-stat__number {
		font-size: 38px;
	}

	.dsr-reviews {
		gap: 28px 40px;
	}
}

/* ── Mobile ≤ 768px ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

	.dsr-top {
		padding: 28px 18px 32px;
	}

	.dsr-top__heading {
		font-size: 20px;
	}

	.dsr-top__subheading {
		font-size: 13px;
	}

	/* 2-column stats grid */
	.dsr-stats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0;
	}

	/* Vertical pseudo-dividers off; use grid borders instead */
	.dsr-stat--has-divider::after {
		display: none;
	}

	.dsr-stat {
		padding: 16px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.15);
		align-items: center;
		text-align: center;
	}

	/* Last row — remove bottom border */
	.dsr-stat:nth-last-child(-n+2) {
		border-bottom: none;
	}

	/* Vertical border between columns */
	.dsr-stat:nth-child(odd) {
		border-right: 1px solid rgba(0, 0, 0, 0.15);
	}

	.dsr-stat__number {
		font-size: 32px;
	}

	.dsr-stat__label {
		font-size: 13px;
		max-width: 100%;
	}

	/* Smaller chevron */
	.dsr-chevron {
		border-left-width: 26px;
		border-right-width: 26px;
		border-top-width: 20px;
	}

	.dsr-bottom {
		padding: 24px 18px;
	}

	.dsr-reviews {
		gap: 24px 32px;
	}
}

/* ── Small phones ≤ 480px ────────────────────────────────────────────────── */
@media (max-width: 480px) {

	/* Single-column stats */
	.dsr-stats {
		grid-template-columns: 1fr;
	}

	.dsr-stat:nth-child(odd) {
		border-right: none;
	}

	.dsr-stat:nth-last-child(-n+2) {
		border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	}

	.dsr-stat:last-child {
		border-bottom: none;
	}

	.dsr-stat__number {
		font-size: 36px;
	}

	/* Reviews: stack vertically */
	.dsr-reviews {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.dsr-review__logo {
		max-height: 38px;
	}

	.dsr-review__stars {
		max-height: 22px;
	}

	.dsr-review__text {
		font-size: 13px;
	}
}
