.tps-widget-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tps-widget-lazy {
	display: block;
}

.tps-widget-lazy__status {
	padding: 16px 4px 0;
	color: #6f6c90;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.tps-widget-lazy__sentinel {
	height: 1px;
}

.tps-widget-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 228px;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid var(--tps-card-border, #3e3e41);
	background: var(--tps-card-bg, #252928);
	box-shadow: var(--tps-card-shadow, 0 20px 45px rgba(12, 14, 14, 0.16));
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.tps-widget-card:hover,
.tps-widget-card:focus-visible {
	outline: none;
}

.tps-widget-card--light {
	gap: 24px;
	border-width: 2px;
	border-radius: 12px;
}

.tps-widget-rating {
	display: flex;
	gap: 4px;
	align-items: center;
}

.tps-widget-rating--light {
	gap: 2.57px;
}

.tps-widget-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
}

.tps-widget-star svg {
	display: block;
	width: 58px;
	height: 58px;
}

.tps-widget-star img {
	display: block;
	width: 58px;
	height: 58px;
}

.tps-widget-rating--light .tps-widget-star,
.tps-widget-rating--light .tps-widget-star img {
	width: 24px;
	height: 24px;
}

.tps-widget-review {
	color: var(--tps-review-color, #bebec2);
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 30px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	min-height: 120px;
}

.tps-widget-review--light {
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	line-height: 30px;
}

.tps-widget-card__cta {
	margin-top: -8px;
	color: var(--tps-name-color, #e1edfb);
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	opacity: 0.88;
}

.tps-widget-inline-media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}

.tps-widget-inline-media__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.tps-widget-inline-media__image {
	display: block;
	width: 100%;
	height: 92px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(111, 108, 144, 0.18);
	background: #f8fafc;
}

.tps-widget-user {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: auto;
}

.tps-widget-avatar {
	display: flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 999px;
	background: linear-gradient(135deg, #d5e5f7 0%, #9cb8d6 100%);
	color: #1c2423;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	position: relative;
}

.tps-widget-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tps-widget-avatar--light {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #d5e5f7 0%, #9cb8d6 100%);
}

.tps-widget-user-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tps-widget-user-name {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: var(--tps-name-color, #e1edfb);
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 20px;
}

.tps-widget-user--light .tps-widget-user-name {
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 20px;
}

.tps-widget-user-subtitle {
	color: var(--tps-subtitle-color, #bebec2);
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 20px;
}

.tps-widget-user--light .tps-widget-user-subtitle {
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	line-height: 20px;
}

.tps-widget-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid var(--tps-badge-border, rgba(0, 182, 122, 0.24));
	border-radius: 999px;
	background: var(--tps-badge-bg, rgba(0, 182, 122, 0.12));
	color: var(--tps-badge-color, #67d7af);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
}

.tps-widget-empty {
	padding: 24px;
	border: 1px solid #d7dfdd;
	border-radius: 12px;
	background: #f5f7f6;
	color: #394442;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	line-height: 24px;
}

.tps-widget-modal[hidden] {
	display: none !important;
}

.tps-widget-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0;
	overscroll-behavior: contain;
}

.tps-widget-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 12, 0.68);
	backdrop-filter: blur(4px);
}

.tps-widget-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(760px, calc(100vw - 32px));
	height: auto;
	max-height: min(calc(100dvh - 24px), 95vh);
	min-height: 0;
	display: flex;
	flex-direction: column;
	flex: 0 1 auto;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #d9d9d9;
	border-radius: 14px;
	background: #fdfdfd;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
	padding: 28px 0 0;
	color: #514f6e;
}

.tps-widget-modal__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0 28px 28px;
	-webkit-overflow-scrolling: touch;
}

.tps-widget-modal__dialog--light {
	border-color: #d9d9d9;
	background: #fdfdfd;
	color: #514f6e;
}

.tps-widget-modal__close {
	position: sticky;
	top: 0;
	margin-left: auto;
	margin-right: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #f2f4f7;
	color: #170f49;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.tps-widget-modal__rating {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 8px 0 18px;
	align-items: center;
}

/* Modal'da widget ile aynı SVG yıldız boyutunu kullan */
.tps-widget-modal__rating .tps-widget-star {
	width: 24px;
	height: 24px;
}
.tps-widget-modal__rating .tps-widget-star img {
	width: 24px;
	height: 24px;
	display: block;
}

/* Modal avatar */
.tps-widget-modal__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: #475569;
}
.tps-widget-modal__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tps-widget-modal__star {
	color: #00b67a;
	font-size: 22px;
	line-height: 1;
}

.tps-widget-modal__star.is-empty {
	color: rgba(148, 163, 184, 0.45);
}

.tps-widget-modal__title {
	margin: 0 0 14px;
	color: #170f49;
	font-family: "DM Sans", sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.tps-widget-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
}

.tps-widget-modal__meta-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tps-widget-modal__reviewer {
	color: #170f49;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
}

.tps-widget-modal__verified {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid rgba(0, 182, 122, 0.24);
	border-radius: 999px;
	background: rgba(0, 182, 122, 0.12);
	color: #008f61;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.tps-widget-modal__subtitle {
	color: #6f6c90;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.tps-widget-modal__text,
.tps-widget-modal__reply-text {
	white-space: pre-line;
	color: #514f6e;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	line-height: 1.8;
}

.tps-widget-modal__gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 10px 0 20px;
}

.tps-widget-modal__gallery-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid rgba(111, 108, 144, 0.18);
	border-radius: 12px;
	background: #f8fafc;
}

.tps-widget-modal__gallery-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tps-widget-modal__reply {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(111, 108, 144, 0.18);
}

.tps-widget-modal__reply-label {
	margin-bottom: 10px;
	color: #170f49;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.tps-widget-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tps-widget-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tps-widget-card {
		gap: 20px;
		padding: 20px;
	}

	.tps-widget-card__cta {
		font-size: 13px;
	}

	.tps-widget-star,
	.tps-widget-star svg,
	.tps-widget-star img {
		width: 42px;
		height: 42px;
	}

	.tps-widget-rating--light .tps-widget-star,
	.tps-widget-rating--light .tps-widget-star img {
		width: 24px;
		height: 24px;
	}

	.tps-widget-review,
	.tps-widget-user-name,
	.tps-widget-user-subtitle {
		font-size: 16px;
	}

	.tps-widget-review {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		line-height: 28px;
		-webkit-line-clamp: 5;
		min-height: 140px;
		overflow: hidden;
	}

	.tps-widget-review--light {
		font-size: 16px;
		line-height: 28px;
	}

	.tps-widget-inline-media {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 0;
		padding-top: 0;
	}

	.tps-widget-inline-media__image {
		height: 120px;
	}

	.tps-widget-inline-media__item {
		min-width: 0;
	}

	.tps-widget-modal__dialog {
		width: min(100vw - 20px, 760px);
		top: 50%;
		max-height: 95dvh;
		padding: 20px 0 0;
		border-radius: 12px;
	}

	.tps-widget-modal__body {
		padding: 0 20px 20px;
	}

	.tps-widget-modal__close {
		margin-right: 20px;
	}

	.tps-widget-modal__close {
		order: 1;
	}

	.tps-widget-modal__rating {
		order: 2;
	}

	.tps-widget-modal__title {
		order: 3;
	}

	.tps-widget-modal__meta {
		order: 4;
	}

	.tps-widget-modal__text {
		order: 5;
	}

	.tps-widget-modal__reply {
		order: 6;
	}

	.tps-widget-modal__gallery {
		order: 7;
	}

	.tps-widget-modal__title {
		font-size: 22px;
	}

	.tps-widget-modal__text,
	.tps-widget-modal__reply-text {
		font-size: 16px;
		line-height: 1.7;
	}

	.tps-widget-modal__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

}

@media (min-width: 768px) and (max-width: 1024px) {
	.tps-widget-modal__dialog {
		max-height: 95dvh;
	}
}
