.cdgr-widget {
	--cdgr-gap: 14px;
	display: grid;
	gap: 20px;
	max-width: 100%;
	overflow: hidden;
}

.cdgr-widget,
.cdgr-widget * {
	box-sizing: border-box;
}

.cdgr-carousel {
	position: relative;
	max-width: 100%;
	overflow: hidden;
	padding: 0 8px;
}

.cdgr-track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--cdgr-gap);
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 0 10px;
	scrollbar-width: none;
}

.cdgr-track::-webkit-scrollbar {
	display: none;
}

.cdgr-card {
	flex: 0 0 calc((100% - 56px) / 5);
	max-width: calc((100% - 56px) / 5);
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-width: 0;
}

.cdgr-card__bubble {
	position: relative;
	display: grid;
	gap: 10px;
	min-height: 184px;
	padding: 14px 14px 16px;
	border: 1px solid #d3b16c;
	border-radius: 18px;
	background: #fffefb;
	box-shadow: 0 10px 24px rgba(43, 26, 5, 0.05);
}

.cdgr-card__bubble::after {
	content: "";
	position: absolute;
	left: 28px;
	bottom: -11px;
	width: 22px;
	height: 22px;
	background: #fffefb;
	border-right: 1px solid #d3b16c;
	border-bottom: 1px solid #d3b16c;
	transform: rotate(45deg);
}

.cdgr-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cdgr-rating-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cdgr-stars {
	display: inline-flex;
	gap: 2px;
	font-size: 14px;
	line-height: 1;
}

.cdgr-star {
	color: #ead7a8;
}

.cdgr-star.is-filled {
	color: #f4b400;
}

.cdgr-verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 13px;
	border-radius: 999px;
	background: #4285f4;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
}

.cdgr-google-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	text-decoration: none;
	background: rgba(246, 246, 246, 0.8);
}

.cdgr-google-mark {
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, #4285f4 0 22%, #34a853 22% 44%, #fbbc05 44% 66%, #ea4335 66% 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cdgr-card__content {
	min-height: 76px;
}

.cdgr-card__excerpt {
	margin: 0;
	color: #181818;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.cdgr-card__cta {
	color: #8c8c8c;
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
}

.cdgr-card__cta:hover {
	color: #5d5d5d;
}

.cdgr-card__quote {
	position: absolute;
	right: 12px;
	bottom: 10px;
	color: #d3b16c;
	font-size: 36px;
	line-height: 1;
	font-family: Georgia, serif;
}

.cdgr-card__author {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 6px 0;
}

.cdgr-avatar {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	overflow: hidden;
	background: linear-gradient(180deg, #ff9836 0%, #ff7f00 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

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

.cdgr-author-meta {
	min-width: 0;
}

.cdgr-author-meta__name {
	display: block;
	color: #121212;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
}

.cdgr-author-meta__time {
	color: #6b6b6b;
	font-size: 11px;
	line-height: 1.35;
}

.cdgr-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 0 8px;
}

.cdgr-summary {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	color: #6b6b6b;
	font-size: 12px;
}

.cdgr-summary strong {
	color: #181818;
}

.cdgr-footer-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cdgr-footer-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #d3b16c;
	color: #181818;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	background: #fffdfa;
}

.cdgr-footer-link:hover {
	background: #fff4de;
}

.cdgr-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: 1px solid #d3b16c;
	border-radius: 999px;
	background: #fffdfa;
	color: #6c531b;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(43, 26, 5, 0.08);
}

.cdgr-arrow--prev {
	left: 0;
}

.cdgr-arrow--next {
	right: 0;
}

.cdgr-arrow[disabled] {
	opacity: 0.45;
	cursor: default;
}

.cdgr-admin-placeholder {
	padding: 20px;
	border: 1px dashed #d3b16c;
	border-radius: 18px;
	background: #fffdf9;
	color: #2d2416;
}

.cdgr-admin-placeholder p {
	margin: 0 0 8px;
}

.cdgr-admin-placeholder p:last-child {
	margin-bottom: 0;
}

@media (max-width: 860px) {
	.cdgr-carousel {
		padding: 0 4px;
	}

	.cdgr-card {
		flex-basis: calc((100% - 14px) / 2);
		max-width: calc((100% - 14px) / 2);
	}

	.cdgr-arrow {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 640px) {
	.cdgr-card {
		flex-basis: 100%;
		max-width: 100%;
	}

	.cdgr-card__bubble {
		min-height: 174px;
		padding: 16px 16px 18px;
	}

	.cdgr-card__excerpt {
		font-size: 14px;
	}

	.cdgr-footer {
		padding-inline: 0;
	}
}
