.grpd,
.grpd-summary {
	--grpd-bg: #ffffff;
	--grpd-panel: #f7f8fb;
	--grpd-text: #1f2937;
	--grpd-muted: #667085;
	--grpd-line: #e4e7ec;
	--grpd-accent: #0f766e;
	--grpd-accent-strong: #115e59;
	--grpd-star: #f5b301;
	color: var(--grpd-text);
	font-family: inherit;
}

.grpd-theme-dark,
.grpd-summary.grpd-theme-dark {
	--grpd-bg: #111827;
	--grpd-panel: #1f2937;
	--grpd-text: #f9fafb;
	--grpd-muted: #cbd5e1;
	--grpd-line: #374151;
	--grpd-accent: #2dd4bf;
	--grpd-accent-strong: #5eead4;
}

.grpd-theme-minimal,
.grpd-summary.grpd-theme-minimal {
	--grpd-bg: transparent;
	--grpd-panel: transparent;
	--grpd-line: #d0d5dd;
}

.grpd {
	background: var(--grpd-bg);
	border: 1px solid var(--grpd-line);
	border-radius: 8px;
	padding: clamp(18px, 3vw, 32px);
}

.grpd-theme-minimal {
	border: 0;
	padding: 0;
}

.grpd-header {
	align-items: flex-start;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	margin-bottom: 22px;
}

.grpd-header-large {
	border-bottom: 1px solid var(--grpd-line);
	margin-bottom: 28px;
	padding-bottom: 24px;
}

.grpd-eyebrow {
	color: var(--grpd-accent);
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.grpd h2 {
	color: var(--grpd-text);
	font-size: clamp(24px, 4vw, 42px);
	line-height: 1.08;
	margin: 0;
}

.grpd-address,
.grpd-attribution,
.grpd-empty,
.grpd-card-foot,
.grpd-summary small {
	color: var(--grpd-muted);
}

.grpd-address {
	margin: 8px 0 0;
}

.grpd-score {
	background: var(--grpd-panel);
	border: 1px solid var(--grpd-line);
	border-radius: 8px;
	display: grid;
	gap: 2px;
	min-width: 150px;
	padding: 14px;
	text-align: center;
}

.grpd-score strong {
	font-size: 34px;
	line-height: 1;
}

.grpd-score small {
	color: var(--grpd-muted);
	display: block;
	font-size: 12px;
}

.grpd-actions {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.grpd-button,
.grpd-link-button {
	align-items: center;
	border-radius: 6px;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .18s ease, background .18s ease, color .18s ease;
	white-space: nowrap;
}

.grpd-button {
	border: 1px solid var(--grpd-accent);
	min-height: 42px;
	padding: 10px 16px;
}

.grpd-button-primary {
	background: var(--grpd-accent);
	color: #ffffff;
}

.grpd-button-primary:hover {
	background: var(--grpd-accent-strong);
	color: #ffffff;
}

.grpd-button-secondary,
.grpd-link-button {
	background: transparent;
	color: var(--grpd-accent);
}

.grpd-button-secondary:hover,
.grpd-link-button:hover {
	border-color: var(--grpd-accent-strong);
	color: var(--grpd-accent-strong);
}

.grpd-link-button {
	border: 0;
	min-height: auto;
	padding: 0;
}

.grpd-attribution {
	font-size: 13px;
	margin: -8px 0 20px;
}

.grpd-reviews {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(var(--grpd-columns, 3), minmax(0, 1fr));
}

.grpd-layout-page .grpd-reviews {
	grid-template-columns: minmax(0, 1fr);
}

.grpd-layout-carousel .grpd-reviews {
	display: flex;
	overflow-x: auto;
	padding-bottom: 10px;
	scroll-snap-type: x mandatory;
}

.grpd-layout-carousel .grpd-card {
	flex: 0 0 min(360px, 86vw);
	scroll-snap-align: start;
}

.grpd-card {
	background: var(--grpd-panel);
	border: 1px solid var(--grpd-line);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 100%;
	padding: 18px;
}

.grpd-card-head {
	align-items: center;
	display: flex;
	gap: 12px;
}

.grpd-card-head strong {
	color: var(--grpd-text);
	display: block;
	font-size: 15px;
	line-height: 1.25;
}

.grpd-avatar {
	border-radius: 50%;
	flex: 0 0 44px;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.grpd-avatar-fallback {
	align-items: center;
	background: var(--grpd-accent);
	color: #ffffff;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
}

.grpd-star {
	color: #c9ced6;
	font-size: 15px;
	letter-spacing: 0;
}

.grpd-star.is-filled {
	color: var(--grpd-star);
}

.grpd-review-text {
	color: var(--grpd-text);
	display: -webkit-box;
	font-size: 15px;
	-webkit-line-clamp: var(--grpd-review-lines, 3);
	line-clamp: var(--grpd-review-lines, 3);
	line-height: 1.62;
	overflow: hidden;
	-webkit-box-orient: vertical;
}

.grpd-review-text p {
	margin: 0 0 12px;
}

.grpd-review-text p:last-child {
	margin-bottom: 0;
}

.grpd-card-foot {
	align-items: center;
	display: flex;
	font-size: 13px;
	gap: 12px;
	justify-content: space-between;
	margin-top: auto;
}

.grpd-card-foot a {
	color: var(--grpd-accent);
	font-weight: 700;
	text-decoration: none;
}

.grpd > .grpd-button {
	margin-top: 22px;
}

.grpd-summary {
	align-items: center;
	background: var(--grpd-bg);
	border: 1px solid var(--grpd-line);
	border-radius: 8px;
	display: flex;
	gap: 12px;
	padding: 14px;
}

.grpd-summary-rating strong {
	display: block;
	font-size: 26px;
	line-height: 1;
}

.grpd-summary-copy {
	display: grid;
	flex: 1;
	gap: 2px;
	min-width: 0;
}

.grpd-summary-copy b,
.grpd-summary-copy small {
	overflow-wrap: anywhere;
}

.grpd-notice {
	background: #fff8e5;
	border-left: 4px solid #f5b301;
	color: #664d03;
	padding: 12px 14px;
}

.grpd-form {
	background: var(--grpd-bg);
	border: 1px solid var(--grpd-line);
	border-radius: 8px;
	color: var(--grpd-text);
	display: grid;
	gap: 16px;
	padding: clamp(18px, 3vw, 28px);
}

.grpd-form h3 {
	color: var(--grpd-text);
	font-size: 24px;
	line-height: 1.2;
	margin: 0;
}

.grpd-field-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grpd-form label {
	display: grid;
	font-weight: 700;
	gap: 6px;
}

.grpd-form input,
.grpd-form select,
.grpd-form textarea {
	background: var(--grpd-panel);
	border: 1px solid var(--grpd-line);
	border-radius: 6px;
	color: var(--grpd-text);
	font: inherit;
	min-height: 42px;
	padding: 10px 12px;
	width: 100%;
}

.grpd-form textarea {
	resize: vertical;
}

.grpd-form-status {
	border-radius: 6px;
	font-weight: 700;
	padding: 10px 12px;
}

.grpd-form-status-pending,
.grpd-form-status-published,
.grpd-form-status-ok {
	background: #ecfdf3;
	color: #027a48;
}

.grpd-form-status-invalid,
.grpd-form-status-disabled {
	background: #fef3f2;
	color: #b42318;
}

.grpd-hp {
	left: -9999px;
	position: absolute;
}

@media (max-width: 800px) {
	.grpd-header {
		grid-template-columns: 1fr;
	}

	.grpd-actions {
		align-items: flex-start;
	}

	.grpd-reviews {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.grpd {
		padding: 16px;
	}

	.grpd-field-grid {
		grid-template-columns: 1fr;
	}

	.grpd-summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.grpd-button {
		width: 100%;
	}
}
