/* Toolkiz – Google recenze prodejen ([toolkiz_google_reviews], [toolkiz_google_rating]).
   Loaded only on pages where a block is rendered. Font is inherited from the theme. */

.toolkiz-gr {
	--tkgr-red: #d81e1f;
	--tkgr-dark: #252a2d;
	--tkgr-muted: #5b6569;
	--tkgr-bg: #ebf5ee;
	--tkgr-card: #fff;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 40px auto;
	padding: 28px 24px 18px;
	background: var(--tkgr-bg);
	border-radius: 8px;
	color: var(--tkgr-dark);
	text-align: left;
}

.toolkiz-gr *,
.toolkiz-gr *::before,
.toolkiz-gr *::after {
	box-sizing: border-box;
}

.toolkiz-gr p {
	margin: 0;
}

.toolkiz-gr a {
	color: inherit;
}

.toolkiz-gr__title {
	margin: 0 0 18px;
	color: var(--tkgr-dark);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

/* ---------- head: source + per-store score and links ---------- */

.toolkiz-gr__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px 24px;
	margin-bottom: 20px;
}

.toolkiz-gr__source {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--tkgr-muted);
	padding-top: 4px;
}

.toolkiz-gr__stores {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 32px;
}

.toolkiz-gr__store-name {
	font-weight: 700;
	margin-bottom: 2px;
}

.toolkiz-gr__score {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.toolkiz-gr__rating {
	font-size: 22px;
	line-height: 1;
}

.toolkiz-gr__count {
	color: var(--tkgr-muted);
	font-size: 14px;
}

.toolkiz-gr__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.toolkiz-gr__links a {
	display: inline-block;
	padding: 6px 12px;
	border: 2px solid var(--tkgr-red);
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	color: var(--tkgr-red);
	background: #fff;
}

.toolkiz-gr__links a.toolkiz-gr__write {
	color: #fff;
	background: var(--tkgr-red);
}

.toolkiz-gr__links a:hover,
.toolkiz-gr__links a:focus-visible {
	color: #fff;
	background: var(--tkgr-dark);
	border-color: var(--tkgr-dark);
}

/* ---------- review cards ---------- */

.toolkiz-gr__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.toolkiz-gr__review {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px;
	background: var(--tkgr-card);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(37, 42, 45, .12);
	list-style: none;
}

.toolkiz-gr__review::before {
	content: none;
}

.toolkiz-gr__author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.toolkiz-gr__avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.toolkiz-gr__avatar--none {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tkgr-dark);
	color: #fff;
	font-weight: 700;
}

.toolkiz-gr__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.toolkiz-gr__name {
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.toolkiz-gr__name:hover,
a.toolkiz-gr__name:focus-visible {
	color: var(--tkgr-red);
	text-decoration: underline;
}

.toolkiz-gr__time {
	color: var(--tkgr-muted);
	font-size: 13px;
}

.toolkiz-gr__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.toolkiz-gr__store-tag {
	padding: 2px 8px;
	border-radius: 10px;
	background: var(--tkgr-bg);
	font-size: 12px;
	font-weight: 700;
}

.toolkiz-gr__text,
.toolkiz-gr__full {
	font-size: 15px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

details.toolkiz-gr__text summary {
	display: block;
	cursor: pointer;
	list-style: none;
}

details.toolkiz-gr__text summary::-webkit-details-marker {
	display: none;
}

details.toolkiz-gr__text summary::marker {
	content: "";
}

.toolkiz-gr__more {
	color: var(--tkgr-red);
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}

details.toolkiz-gr__text[open] summary {
	display: none;
}

.toolkiz-gr__foot {
	margin-top: auto !important;
	padding-top: 4px;
	color: var(--tkgr-muted);
	font-size: 12px;
}

.toolkiz-gr__foot a {
	color: var(--tkgr-muted);
}

.toolkiz-gr__note {
	margin-top: 14px !important;
	color: var(--tkgr-muted);
	font-size: 12px;
	text-align: center;
}

/* ---------- compact layout: a plain list ---------- */

.toolkiz-gr--compact {
	padding: 18px 18px 12px;
}

.toolkiz-gr--compact .toolkiz-gr__list {
	grid-template-columns: 1fr;
	gap: 0;
}

.toolkiz-gr--compact .toolkiz-gr__review {
	padding: 12px 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	border-bottom: 1px solid rgba(37, 42, 45, .12);
}

/* ---------- stars: grey row with a coloured overlay of the rating's width ---------- */

.toolkiz-gr-stars {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 90px;
	height: 18px;
	vertical-align: -3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9cfd1' d='M12 1.8l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6l-6.3 3.6 1.5-7.1-5.4-4.9 7.2-.8z'/%3E%3C/svg%3E") 0 0 / 18px 18px repeat-x;
}

.toolkiz-gr-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4b400' d='M12 1.8l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6l-6.3 3.6 1.5-7.1-5.4-4.9 7.2-.8z'/%3E%3C/svg%3E") 0 0 / 18px 18px repeat-x;
}

/* ---------- small rating summary ([toolkiz_google_rating], product detail) ---------- */

.toolkiz-gr-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin: 0;
	color: #252a2d;
	font-size: 14px;
	line-height: 1.4;
}

.toolkiz-gr-rating a {
	color: inherit;
	text-decoration: underline;
}

.toolkiz-gr-rating a:hover,
.toolkiz-gr-rating a:focus-visible {
	color: #d81e1f;
}

.toolkiz-gr-product {
	margin: -8px 0 20px;
	padding: 10px 20px;
	background: #fff;
	border: 1px solid #e3e6e8;
	border-left: 4px solid #d81e1f;
	border-radius: 4px;
}

/* ---------- phones: one card at a time, swipe sideways ---------- */

@media (max-width: 600px) {
	.toolkiz-gr {
		margin: 24px 0;
		padding: 20px 16px 14px;
		border-radius: 0;
	}

	.toolkiz-gr__title {
		font-size: 21px;
	}

	.toolkiz-gr--cards .toolkiz-gr__list {
		display: flex;
		gap: 12px;
		margin: 0 -16px;
		padding: 0 16px 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		-webkit-overflow-scrolling: touch;
	}

	.toolkiz-gr--cards .toolkiz-gr__review {
		flex: 0 0 85%;
		scroll-snap-align: start;
	}
}
