/* Google Review Widget */
.srw {
	--srw-accent: #0f766e;
	--srw-cols: 3;
	--srw-star: #f5b301;
	--srw-star-off: #e3e5e8;
	--srw-bg: #ffffff;
	--srw-card: #ffffff;
	--srw-soft: #f4f7f6;
	--srw-border: #e8ebee;
	--srw-text: #1f2328;
	--srw-body: #3d434a;
	--srw-muted: #737a82;
	--srw-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -14px rgba(16, 24, 40, .16);
	--srw-radius: 18px;
	box-sizing: border-box;
	color: var(--srw-text);
	font-size: 15px;
	line-height: 1.6;
	font-weight: 400;
	letter-spacing: normal;
	text-align: left;
	margin: 0 0 32px;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
	.srw { --srw-soft: color-mix(in srgb, var(--srw-accent) 7%, #ffffff); }
}
.srw--dark {
	--srw-bg: #16191c;
	--srw-card: #1f2327;
	--srw-soft: #1f2327;
	--srw-border: #2e3338;
	--srw-text: #eef0f2;
	--srw-body: #c9ced3;
	--srw-muted: #9aa1a8;
	--srw-star-off: #40464c;
	--srw-shadow: none;
}
.srw *, .srw *::before, .srw *::after { box-sizing: border-box; }
.srw svg { display: block; max-width: none; }
.srw img { max-width: none; }
.srw a { box-shadow: none; }

/* ---------- Summary (overall rating) ---------- */
.srw-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-bottom: 24px;
	padding: 22px 28px;
	background: var(--srw-soft);
	border-radius: var(--srw-radius);
}
.srw-head__score { display: flex; align-items: center; gap: 18px; margin-right: auto; }
.srw-head__num {
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--srw-text);
}
.srw-head__info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.srw-head__label { font-size: 19px; font-weight: 700; line-height: 1.2; color: var(--srw-text); }
.srw-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 14px; color: var(--srw-muted); line-height: 1.3; }
.srw .srw-head__meta a { color: var(--srw-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--srw-border); text-underline-offset: 3px; }
.srw .srw-head__meta a:hover { text-decoration-color: currentColor; }
.srw-head__on { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.srw-head__google { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--srw-text); }
.srw-head__google .srw-g { width: 15px; height: 15px; }

.srw .srw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--srw-accent);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	white-space: nowrap;
	transition: filter .15s, transform .15s;
}
.srw .srw-btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

/* Slider with summary: summary column on the left, cards on the right */
.srw--slider.srw--has-head > .srw-wrap {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}
.srw--slider.srw--has-head .srw-head {
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 28px 20px;
	text-align: center;
}
.srw--slider.srw--has-head .srw-head__score { flex-direction: column; gap: 10px; margin: 0; }
.srw--slider.srw--has-head .srw-head__info { align-items: center; }
.srw--slider.srw--has-head .srw-head__meta { justify-content: center; }

/* ---------- Stars ---------- */
.srw-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; flex: none; }
.srw-stars__bg, .srw-stars__fg { display: flex; gap: 2px; }
.srw-stars svg { width: 17px; height: 17px; flex: none; }
.srw-stars--lg svg { width: 21px; height: 21px; }
.srw-stars__bg svg { fill: var(--srw-star-off); }
.srw-stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.srw-stars__fg svg { fill: var(--srw-star); }

/* ---------- Review card ---------- */
.srw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 24px;
	background: var(--srw-card);
	border: 1px solid var(--srw-border);
	border-radius: var(--srw-radius);
	box-shadow: var(--srw-shadow);
	min-width: 0;
	transition: transform .2s, box-shadow .2s;
}
.srw-card__head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.srw-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; margin: 0; }
.srw-avatar--blank { display: inline-flex; align-items: flex-end; justify-content: center; overflow: hidden; background: var(--srw-soft); }
.srw-avatar--blank svg { width: 78%; height: 78%; fill: var(--srw-muted); opacity: .55; }
.srw-avatar--initial { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 18px; line-height: 1; }
.srw-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; gap: 2px; }
.srw .srw-card__name { font-size: 15px; font-weight: 700; color: var(--srw-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srw a.srw-card__name:hover { text-decoration: underline; }
.srw-card__date { font-size: 13px; color: var(--srw-muted); }
.srw-card__src { align-self: flex-start; }
.srw-card__src .srw-g { width: 20px; height: 20px; }
.srw-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
	overflow-wrap: anywhere;
	color: var(--srw-body);
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}
.srw-card.is-open .srw-card__text { -webkit-line-clamp: unset; display: block; }
.srw .srw-more {
	align-self: flex-start;
	padding: 0;
	margin: -4px 0 0;
	background: none;
	border: 0;
	color: var(--srw-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}
.srw .srw-more:hover { text-decoration: underline; }
.srw .srw-more[hidden] { display: none; }
.srw-card__place {
	align-self: flex-start;
	margin-top: -2px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--srw-soft);
	color: var(--srw-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}
.srw-card__reply {
	padding: 12px 14px;
	border-left: 3px solid var(--srw-accent);
	background: var(--srw-soft);
	border-radius: 0 10px 10px 0;
	font-size: 14px;
	color: var(--srw-body);
}
.srw-card__reply strong { display: block; color: var(--srw-text); font-size: 13px; margin-bottom: 2px; }

@media (hover: hover) {
	.srw--grid .srw-card:hover, .srw--slider .srw-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px -16px rgba(16, 24, 40, .22); }
}

/* ---------- Grid ---------- */
.srw--grid .srw-track { display: grid; grid-template-columns: repeat(var(--srw-cols), minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ---------- List ---------- */
.srw--list .srw-track { display: flex; flex-direction: column; gap: 16px; }
.srw--list .srw-card__text { -webkit-line-clamp: 4; }

/* ---------- Slider ---------- */
.srw--slider .srw-body { position: relative; min-width: 0; }
.srw--slider .srw-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--srw-cols) - 1) * 20px) / var(--srw-cols));
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 4px 14px;
	margin: -4px;
	align-items: stretch;
}
.srw--slider .srw-track::-webkit-scrollbar { display: none; }
.srw--slider .srw-card { scroll-snap-align: start; }
.srw .srw-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -26px;
	padding: 0 0 3px;
	border-radius: 50%;
	border: 1px solid var(--srw-border);
	background: var(--srw-card);
	color: var(--srw-text);
	box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: opacity .2s, transform .15s;
}
.srw .srw-nav:hover { transform: scale(1.06); }
.srw .srw-nav--prev { left: -18px; }
.srw .srw-nav--next { right: -18px; }
.srw .srw-nav:disabled { opacity: 0; pointer-events: none; }

/* ---------- Badge ---------- */
.srw--badge { display: inline-block; margin: 0; }
.srw .srw-badge {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px 14px 16px;
	background: var(--srw-card);
	border: 1px solid var(--srw-border);
	border-radius: 16px;
	box-shadow: var(--srw-shadow);
	color: var(--srw-text);
	text-decoration: none;
}
.srw-badge__g .srw-g { width: 34px; height: 34px; }
.srw-badge__info { display: flex; flex-direction: column; line-height: 1.3; gap: 1px; }
.srw-badge__title { font-size: 13px; font-weight: 600; color: var(--srw-muted); }
.srw-badge__row { display: flex; align-items: center; gap: 8px; }
.srw-badge__row strong { font-size: 22px; font-weight: 700; line-height: 1.1; }
.srw-badge__count { font-size: 12px; color: var(--srw-muted); }
.srw--floating { position: fixed; bottom: 20px; z-index: 9990; margin: 0; }
.srw--floating-left { left: 20px; }
.srw--floating-right { right: 20px; }
.srw--floating .srw-badge { box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }

/* Close button (badge, panel, pop-up, window) */
.srw .srw-x {
	position: absolute;
	top: -9px;
	right: -9px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0 0 2px;
	border-radius: 50%;
	border: 1px solid var(--srw-border);
	background: var(--srw-card);
	color: var(--srw-muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.srw .srw-x:hover { color: var(--srw-text); }
.srw--floating.is-hidden { display: none; }

/* ---------- Sidebar ---------- */
.srw--sidebar { max-width: 380px; }
.srw--sidebar .srw-head { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px; margin-bottom: 16px; }
.srw--sidebar .srw-head__score { margin: 0; gap: 14px; }
.srw--sidebar .srw-head__num { font-size: 44px; }
.srw--sidebar .srw-track {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 580px;
	overflow-y: auto;
	padding: 2px 8px 2px 2px;
	scrollbar-width: thin;
}
.srw--sidebar .srw-card { padding: 18px; gap: 10px; }
.srw--sidebar .srw-card__text { -webkit-line-clamp: 4; font-size: 14px; }

/* ---------- Button ---------- */
.srw--button { display: inline-block; margin: 0; }
.srw .srw-pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px 10px 12px;
	border-radius: 999px;
	border: 1px solid var(--srw-border);
	background: var(--srw-card);
	color: var(--srw-text);
	box-shadow: var(--srw-shadow);
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: box-shadow .15s, transform .15s;
}
.srw button.srw-pill:hover, .srw a.srw-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(16, 24, 40, .25); color: var(--srw-text); }
.srw-pill__g .srw-g { width: 22px; height: 22px; }
.srw-pill__rating { font-weight: 700; font-size: 17px; }
.srw-pill__count { color: var(--srw-muted); }

/* ---------- Floating ---------- */
.srw .srw-fab {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 18px 11px 13px;
	border-radius: 999px;
	border: 1px solid var(--srw-border);
	background: var(--srw-card);
	color: var(--srw-text);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
	font: inherit;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}
.srw-fab__g .srw-g { width: 28px; height: 28px; }
.srw-fab__info { display: flex; flex-direction: column; }
.srw-fab__row { display: flex; align-items: center; gap: 7px; }
.srw-fab__row strong { font-size: 17px; font-weight: 700; }
.srw-fab__count { font-size: 12px; color: var(--srw-muted); }
.srw-panel {
	position: absolute;
	bottom: calc(100% + 12px);
	width: 380px;
	max-width: calc(100vw - 24px);
	max-height: min(600px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	background: var(--srw-bg);
	border: 1px solid var(--srw-border);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
	overflow: hidden;
	transform-origin: bottom left;
	animation: srw-in .18s ease-out;
}
.srw--floating-left .srw-panel { left: 0; }
.srw--floating-right .srw-panel { right: 0; transform-origin: bottom right; }
.srw-panel[hidden] { display: none; }
.srw-panel__head { position: relative; padding: 14px 14px 0; }
.srw-panel__head .srw-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 14px; padding: 18px; }
.srw-panel__head .srw-head__score { margin: 0; }
.srw-panel__head .srw-head__num { font-size: 42px; }
.srw .srw-panel__close { top: 22px; right: 22px; box-shadow: none; }
.srw-panel__list { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; overflow-y: auto; }
.srw-panel .srw-card { padding: 16px; gap: 10px; box-shadow: none; }
.srw-panel .srw-card__text { font-size: 14px; }

/* ---------- Pop-up ---------- */
.srw--popup { width: 350px; max-width: calc(100vw - 24px); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.srw--popup.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.srw-pop {
	position: relative;
	background: var(--srw-card);
	border: 1px solid var(--srw-border);
	border-radius: 18px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}
.srw .srw-pop__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	background: none;
	border: 0;
	color: var(--srw-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	animation: srw-fade .35s ease-out;
}
.srw .srw-pop__item[hidden] { display: none; }
.srw-pop__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.srw-pop__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.srw-pop__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srw-pop__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--srw-body); }
.srw-pop__meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--srw-muted); }
.srw-pop__meta .srw-g { width: 14px; height: 14px; }
.srw-pop .srw-stars svg { width: 13px; height: 13px; }

/* ---------- Window (button and pop-up) ---------- */
.srw-modal {
	width: min(820px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: var(--srw-bg);
	color: var(--srw-text);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
	overflow: visible;
}
.srw-modal::backdrop { background: rgba(16, 20, 24, .55); }
.srw-modal[open] { animation: srw-in .2s ease-out; }
.srw-modal__box { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 48px); padding: 20px 20px 0; text-align: left; }
.srw .srw-modal__close { top: 14px; right: 14px; width: 34px; height: 34px; font-size: 21px; box-shadow: none; }
.srw-modal .srw-head { margin-bottom: 18px; padding-right: 56px; }
.srw-modal__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
	overflow-y: auto;
	padding: 2px 2px 20px;
}

.srw-empty { padding: 12px; border: 1px dashed #c3c4c7; color: #646970; font-size: 14px; }

/* ---------- Card styles ---------- */

/* Weich: tinted cards without border, summary as white card */
.srw--style-soft .srw-card { background: var(--srw-soft); border-color: transparent; box-shadow: none; }
.srw--style-soft .srw-head { background: var(--srw-card); border: 1px solid var(--srw-border); box-shadow: var(--srw-shadow); }
.srw--style-soft.srw--dark .srw-card { background: #262a2f; }

/* Minimal: no boxes, a thin accent line above each review */
.srw--style-minimal .srw-card {
	background: transparent;
	border: 0;
	border-top: 3px solid var(--srw-accent);
	border-radius: 0;
	box-shadow: none;
	padding: 18px 2px 4px;
}
.srw--style-minimal.srw--list .srw-card { border-top: 0; border-bottom: 1px solid var(--srw-border); padding: 4px 2px 22px; }
.srw--style-minimal .srw-head { background: transparent; border-radius: 0; border-bottom: 1px solid var(--srw-border); padding: 4px 0 22px; }
.srw--style-minimal.srw--slider.srw--has-head .srw-head { border-bottom: 0; border-right: 1px solid var(--srw-border); padding: 8px 20px; }
.srw--style-minimal .srw-card:hover { transform: none; box-shadow: none; }

/* Zitat: big quotation mark, centred text, author below */
.srw--style-quote .srw-card { align-items: center; text-align: center; padding: 30px 26px 24px; }
.srw--style-quote .srw-card::before {
	content: "\201C";
	display: block;
	height: 34px;
	margin-bottom: -4px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 72px;
	line-height: 1;
	color: var(--srw-accent);
}
.srw--style-quote .srw-card__text { order: 1; font-size: 16px; line-height: 1.7; color: var(--srw-text); }
.srw--style-quote .srw-more { order: 2; align-self: center; }
.srw--style-quote .srw-card__place { order: 2; align-self: center; }
.srw--style-quote .srw-card__reply { order: 3; text-align: left; }
.srw--style-quote .srw-card__head { order: 4; justify-content: center; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--srw-border); width: 100%; }
.srw--style-quote .srw-card__who { flex: 0 1 auto; text-align: left; }
.srw--style-quote .srw-card__src { position: absolute; top: 18px; right: 18px; }

/* ---------- Live preview in the widget editor ---------- */
.srw--preview.srw--floating { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; }
.srw--preview.srw--floating-right { margin-left: auto; }
.srw--preview.srw--popup { opacity: 1; transform: none; pointer-events: auto; }

@keyframes srw-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes srw-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ----------
 * Slider, grid, list and sidebar adapt to the width of the column they sit in
 * (container queries), not to the window: in a narrow Divi column they switch to
 * fewer columns just like on a phone, so the page matches the editor preview.
 */
.srw--slider, .srw--grid, .srw--list, .srw--sidebar { container: srw / inline-size; }

@container srw (max-width: 900px) {
	.srw-wrap { --srw-cols: 2; }
	.srw--cols-1 .srw-wrap { --srw-cols: 1; }
	.srw--slider.srw--has-head > .srw-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.srw--slider.srw--has-head .srw-head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; padding: 20px 22px; }
	.srw--slider.srw--has-head .srw-head__score { flex-direction: row; gap: 16px; }
	.srw--slider.srw--has-head .srw-head__info { align-items: flex-start; }
	.srw--slider.srw--has-head .srw-head__meta { justify-content: flex-start; }
	.srw--style-minimal.srw--slider.srw--has-head .srw-head { border-right: 0; border-bottom: 1px solid var(--srw-border); padding: 4px 0 20px; }
}
@container srw (max-width: 560px) {
	.srw-wrap { --srw-cols: 1; }
	.srw-wrap .srw-head, .srw--slider.srw--has-head .srw-head { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
	.srw-head__num { font-size: 44px; }
	.srw--slider .srw-track { grid-auto-columns: 86%; }
	.srw .srw-nav { display: none; }
	.srw-card { padding: 20px; }
}

/* Older browsers without container queries: fall back to the window width */
@supports not (container-type: inline-size) {
	@media (max-width: 980px) {
		.srw-wrap { --srw-cols: 2; }
		.srw--cols-1 .srw-wrap { --srw-cols: 1; }
		.srw--slider.srw--has-head > .srw-wrap { grid-template-columns: minmax(0, 1fr); }
	}
	@media (max-width: 640px) {
		.srw-wrap { --srw-cols: 1; }
		.srw--slider .srw-track { grid-auto-columns: 86%; }
		.srw .srw-nav { display: none; }
	}
}

@media (max-width: 640px) {
	.srw--floating { bottom: 12px; }
	.srw--floating-left { left: 12px; }
	.srw--floating-right { right: 12px; }
	.srw-modal__list { grid-template-columns: 1fr; }
	.srw-modal__box { padding: 14px 14px 0; }
	.srw--sidebar { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.srw--slider .srw-track { scroll-behavior: auto; }
	.srw-panel, .srw-modal[open], .srw .srw-pop__item { animation: none; }
	.srw--popup, .srw-card { transition: none; }
}
