/* Guest Reviews slider ([tco_reviews_slider]) — TAMARA & Co.
   Every value is a custom property on :where(), so a site rule always wins. */
:where(.tco-rs) {
	--tco-rs-text: #000;
	--tco-rs-muted: #66615a;
	--tco-rs-line: var(--e-global-color-text, rgba(0, 0, 0, .16)); /* the site's text color (Elementor global), 1px */
	--tco-rs-card: transparent;
	--tco-rs-radius: 10px;
	--tco-rs-star: #F6BB06;
	--tco-rs-star-off: rgba(0, 0, 0, .14);
	--tco-rs-check: #4A86E8;
	--tco-rs-badge: #2F6A4A;
	--tco-rs-badge-hover: #245539;
	--tco-rs-arrow-bg: #fff;
	--tco-rs-gap: 10px;
	--tco-rs-lines: 4;
	--tco-rs-cols: 3;
	--tco-rs-max: calc(var(--tco-rs-cols) * (var(--tco-rs-size, 250px) + var(--tco-rs-gap)) + 300px); /* the cards plus the summary */
	container: tco-rs / inline-size;
	display: block;
	max-width: var(--tco-rs-max);
	margin-inline: auto;
	color: var(--tco-rs-text);
	font: inherit;
	/* The site's body font (Elementor's global Text font, e.g. Work Sans), else the page's. */
	font-family: var(--tco-rs-font, var(--e-global-typography-text-font-family, inherit)), sans-serif;
	line-height: 1.5;
	text-align: start;
}
:where(.tco-rs) *, :where(.tco-rs) *::before, :where(.tco-rs) *::after { box-sizing: border-box; }
:where(.tco-rs) :where(p) { margin: 0; }
:where(.tco-rs__title) { margin: 0 0 20px; text-align: center; }

:where(.tco-rs__layout) {
	/* --kfit whole cards fit (set below from the section's width); never more than columns. */
	--kfit: 5; --k: min(var(--kfit), var(--tco-rs-cols));
	display: flex; justify-content: center; align-items: center; gap: 16px;
}

/* Summary */
:where(.tco-rs__summary) { flex: 0 0 200px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tco-rs[data-tco-rs] .tco-rs__word {
	/* The site's heading font (Elementor's global Primary font, e.g. Highway Gothic Extended). */
	font-family: var(--tco-rs-heading-font, var(--e-global-typography-primary-font-family, inherit)), sans-serif;
	font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; margin: 0;
}
:where(.tco-rs__based) { font-size: 18px; }
:where(.tco-rs__avg), :where(.tco-rs__count) { display: none; }
:where(.tco-rs__based strong) { font-weight: 700; }
:where(.tco-rs__mark) { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 19px; font-weight: 700; }
:where(.tco-rs__mark-icon) { width: 26px; height: 26px; color: var(--tco-rs-badge); }

/* Stars */
:where(.tco-rs__stars) { display: inline-flex; gap: 2px; line-height: 0; }
:where(.tco-rs__stars svg) { width: 18px; height: 18px; }
:where(.tco-rs__stars--big svg) { width: 26px; height: 26px; }
:where(.tco-rs__stars) .b { fill: var(--tco-rs-star-off); }
:where(.tco-rs__stars) .f { fill: transparent; }
:where(.tco-rs__stars) .is-on .b { fill: var(--tco-rs-star); }
:where(.tco-rs__stars) .is-half .f { fill: var(--tco-rs-star); }

/* Row of cards */
:where(.tco-rs__rail) { flex: 0 1 auto; min-width: 0; max-width: 100%; width: calc(var(--k) * (var(--tco-rs-size, 250px) + var(--tco-rs-gap)) - var(--tco-rs-gap) + 56px); container: tco-rs-vp / inline-size; }
:where(.tco-rs__viewport) { position: relative; padding-inline: 26px; }
:where(.tco-rs__track) {
	position: relative; display: flex; margin: 0; padding: 4px 2px; list-style: none;
	gap: var(--tco-rs-gap); scroll-padding-inline: 2px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none;
}
:where(.tco-rs__track)::-webkit-scrollbar { display: none; }
:where(.tco-rs__track):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
:where(.tco-rs__item) {
	/* Square cards of --tco-rs-size (250px); the row shows as many whole cards as fit. */
	flex: 0 0 var(--tco-rs-size, 250px);
	margin: 0; padding: 0; scroll-snap-align: start; display: flex;
}
:where(.tco-rs__item)::before { content: none; }
:where(.tco-rs__card) {
	display: flex; flex-direction: column; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; padding: 18px 18px 10px; /* square, about 250px */
	background: var(--tco-rs-card); border: 1px solid var(--tco-rs-line); border-radius: var(--tco-rs-radius);
}
:where(.tco-rs__head) { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; background: none; }
:where(.tco-rs__avatar) { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 600; line-height: 1; }
:where(.tco-rs__who) { display: flex; flex-direction: column; min-width: 0; }
:where(.tco-rs__src) { margin-left: auto; flex: 0 0 auto; line-height: 0; }
.tco-rs[data-tco-rs] .tco-rs__src img { display: block; width: auto; height: 26px; max-width: 70px; max-height: 26px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; }
:where(.tco-rs__src--logo) { align-self: flex-start; margin-top: 2px; }
:where(.tco-rs__src--text) { line-height: 1.3; font-size: 13px; font-weight: 600; color: var(--tco-rs-muted); }
:where(.tco-rs__name) { font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.tco-rs__date) { font-size: 13px; color: var(--tco-rs-muted); line-height: 1.4; white-space: nowrap; }
:where(.tco-rs__rate) { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
:where(.tco-rs__check) { position: relative; display: inline-flex; color: var(--tco-rs-check); line-height: 0; }
:where(.tco-rs__check svg) { width: 17px; height: 17px; }
:where(.tco-rs__sr) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(.tco-rs__text) {
	font-size: 15px; line-height: 1.55;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--tco-rs-lines); line-clamp: var(--tco-rs-lines); overflow: hidden;
	overflow-wrap: anywhere;
}
:where(.tco-rs__thumbs) { display: flex; gap: 6px; margin-top: 12px; }
:where(.tco-rs__thumb) { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; cursor: pointer; }
:where(.tco-rs__more-row) { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; background: none; }
:where(.tco-rs__quote) { width: 24px; height: 18px; margin-left: auto; color: rgba(0, 0, 0, .09); flex: 0 0 auto; }

/* Buttons: real specificity (.tco-rs .x) so a theme's button and hover rules
   ([type=button], button:hover) never show through; every state is named. */
.tco-rs[data-tco-rs] button { font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; transition: none; text-decoration: none; }
.tco-rs[data-tco-rs] .tco-rs__more, .tco-rs[data-tco-rs] .tco-rs__more:hover, .tco-rs[data-tco-rs] .tco-rs__more:focus, .tco-rs[data-tco-rs] .tco-rs__more:focus-visible, .tco-rs[data-tco-rs] .tco-rs__more:active {
	display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -10px; padding: 0;
	background-color: transparent; border: 0; border-color: transparent; border-radius: 0;
	color: var(--tco-rs-muted); font-size: 15px; text-decoration: none; cursor: pointer;
}
.tco-rs[data-tco-rs] .tco-rs__more:hover, .tco-rs[data-tco-rs] .tco-rs__more:focus-visible { color: var(--tco-rs-text); text-decoration: underline; text-underline-offset: 3px; }
.tco-rs[data-tco-rs] .tco-rs__more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tco-rs[data-tco-rs] .tco-rs__more[hidden] { display: none; }

.tco-rs[data-tco-rs] .tco-rs__nav, .tco-rs[data-tco-rs] .tco-rs__nav:hover, .tco-rs[data-tco-rs] .tco-rs__nav:focus, .tco-rs[data-tco-rs] .tco-rs__nav:focus-visible, .tco-rs[data-tco-rs] .tco-rs__nav:active {
	position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0; padding: 0;
	display: grid; place-items: center; border-radius: 50%;
	background-color: var(--tco-rs-arrow-bg); border: 1px solid var(--tco-rs-line); color: #333; text-decoration: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12); cursor: pointer;
}
.tco-rs[data-tco-rs] .tco-rs__nav:hover, .tco-rs[data-tco-rs] .tco-rs__nav:focus-visible { background-color: #f3f3f3; border-color: rgba(0, 0, 0, .3); color: #111; }
.tco-rs[data-tco-rs] .tco-rs__nav:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
.tco-rs[data-tco-rs] .tco-rs__nav:disabled { opacity: 0; pointer-events: none; }
.tco-rs[data-tco-rs] .tco-rs__nav[hidden] { display: none; }
.tco-rs[data-tco-rs] .tco-rs__nav svg { width: 22px; height: 22px; }
.tco-rs[data-tco-rs] .tco-rs__nav--prev { left: -4px; }
.tco-rs[data-tco-rs] .tco-rs__nav--next { right: -4px; }

:where(.tco-rs__foot) { display: flex; justify-content: flex-end; margin-top: 12px; padding-inline: 28px; } /* right edge = the last card's right edge */
.tco-rs[data-tco-rs] .tco-rs__verified, .tco-rs[data-tco-rs] .tco-rs__verified:hover, .tco-rs[data-tco-rs] .tco-rs__verified:focus, .tco-rs[data-tco-rs] .tco-rs__verified:focus-visible, .tco-rs[data-tco-rs] .tco-rs__verified:active {
	position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px;
	background-color: var(--tco-rs-badge); border: 1px solid var(--tco-rs-badge); border-radius: 4px;
	color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.tco-rs[data-tco-rs] .tco-rs__verified::after { content: ""; position: absolute; inset: -6px 0; } /* 44px tap area */
.tco-rs[data-tco-rs] .tco-rs__verified:hover, .tco-rs[data-tco-rs] .tco-rs__verified:focus-visible { background-color: var(--tco-rs-badge-hover); border-color: var(--tco-rs-badge-hover); }
.tco-rs[data-tco-rs] .tco-rs__verified:focus-visible { outline: 2px solid var(--tco-rs-badge); outline-offset: 3px; }
.tco-rs[data-tco-rs] .tco-rs__verified svg { width: 15px; height: 15px; }
:where(.tco-rs__info) {
	max-width: min(340px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--tco-rs-line); border-radius: 8px;
	background: #fff; color: #333; font-size: 15px; line-height: 1.5; box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}

/* Pop-up */
:where(.tco-rs__dialog) {
	width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 12px;
	background: #fff; color: var(--tco-rs-text); overflow: auto; overscroll-behavior: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
:where(.tco-rs__dialog)::backdrop { background: rgba(20, 18, 15, .55); overflow: hidden; overscroll-behavior: contain; }
:where(.tco-rs__dlg) { position: relative; padding: 28px 28px 30px; }
.tco-rs[data-tco-rs] .tco-rs__close, .tco-rs[data-tco-rs] .tco-rs__close:hover, .tco-rs[data-tco-rs] .tco-rs__close:focus, .tco-rs[data-tco-rs] .tco-rs__close:focus-visible, .tco-rs[data-tco-rs] .tco-rs__close:active {
	position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
	background-color: transparent; border: 0; border-color: transparent; border-radius: 50%; color: #555; text-decoration: none; cursor: pointer;
}
.tco-rs[data-tco-rs] .tco-rs__close:hover, .tco-rs[data-tco-rs] .tco-rs__close:focus-visible { background-color: rgba(0, 0, 0, .06); border-color: transparent; color: #111; }
.tco-rs[data-tco-rs] .tco-rs__close:focus-visible { outline: 2px solid #333; outline-offset: 0; }
.tco-rs[data-tco-rs] .tco-rs__close svg { width: 22px; height: 22px; }
:where(.tco-rs__dlg-body .tco-rs__head) { padding-right: 40px; }
:where(.tco-rs__dlg-body .tco-rs__text) { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
:where(.tco-rs__photos) { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 18px; }
.tco-rs[data-tco-rs] .tco-rs__photos img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; border-radius: 8px; }

/* How many cards fit, and whether the rating fits beside them, is worked out per slider from its
   card size, spacing and columns: see tco_gr_slider_fit_css() (a small <style> printed with each slider). */
.tco-rs.tco-rs--top .tco-rs__layout { flex-direction: column; gap: 20px; }
.tco-rs.tco-rs--top .tco-rs__summary { flex: 0 0 auto; flex-flow: row wrap; justify-content: center; column-gap: 14px; row-gap: 4px; }
.tco-rs[data-tco-rs].tco-rs--top .tco-rs__word { font-size: 22px; }
.tco-rs.tco-rs--top .tco-rs__mark { margin-top: 0; font-size: 17px; }

/* "Leave a review" button and its pop-up form */
.tco-rs[data-tco-rs] .tco-rs__write, .tco-rs[data-tco-rs] .tco-rs__write:hover, .tco-rs[data-tco-rs] .tco-rs__write:focus, .tco-rs[data-tco-rs] .tco-rs__write:focus-visible, .tco-rs[data-tco-rs] .tco-rs__write:active {
	display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 8px 16px;
	background-color: transparent; border: 1px solid var(--tco-rs-line); border-radius: 4px;
	color: var(--tco-rs-text); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.tco-rs[data-tco-rs] .tco-rs__write:hover, .tco-rs[data-tco-rs] .tco-rs__write:focus-visible { background-color: rgba(0, 0, 0, .05); }
.tco-rs[data-tco-rs] .tco-rs__write:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tco-rs[data-tco-rs].tco-rs--bar .tco-rs__write, .tco-rs[data-tco-rs].tco-rs--bar .tco-rs__write:hover, .tco-rs[data-tco-rs].tco-rs--bar .tco-rs__write:focus, .tco-rs[data-tco-rs].tco-rs--bar .tco-rs__write:focus-visible, .tco-rs[data-tco-rs].tco-rs--bar .tco-rs__write:active { margin-left: auto; }

/* Home pages, full screen width (Settings → Width on home pages): out of its column to the window's edges.
   --tco-rs-sb is the page's scrollbar width, set by slider.js, so nothing scrolls sideways. */
.tco-rs[data-tco-rs].tco-rs--full {
	position: relative; box-sizing: border-box; width: calc(100vw - var(--tco-rs-sb, 0px)); max-width: none;
	margin-left: calc(50% - (100vw - var(--tco-rs-sb, 0px)) / 2); margin-right: 0; padding-inline: 16px;
}
:where(.tco-rs__formdlg) { width: min(600px, calc(100vw - 32px)); }
:where(.tco-rs__first) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; padding: 18px 20px; border: 1px solid var(--tco-rs-line); border-radius: var(--tco-rs-radius); font-size: 16px; }
:where(.tco-rs__formtitle) { margin: 0 0 14px; padding-right: 40px; font-size: 22px; line-height: 1.2; }
:where(.tco-rs__formdlg .tco-gr-form-wrap) { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }

/* Bar layout (home pages): the rating in a box above the cards, as wide as the row of cards. */
.tco-rs.tco-rs--bar .tco-rs__layout { flex-direction: column; gap: 14px; }
.tco-rs.tco-rs--bar .tco-rs__summary {
	flex: 0 0 auto; box-sizing: border-box; width: calc(var(--k) * (var(--tco-rs-size, 250px) + var(--tco-rs-gap)) - var(--tco-rs-gap)); max-width: calc(100% - 56px);
	flex-flow: row wrap; justify-content: flex-start; align-items: center; column-gap: 10px; row-gap: 4px; text-align: left;
	padding: 14px 20px; border: 1px solid var(--tco-rs-line); border-radius: var(--tco-rs-radius); background: var(--tco-rs-card);
}
.tco-rs[data-tco-rs].tco-rs--bar .tco-rs__word { font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tco-rs.tco-rs--bar .tco-rs__stars--big svg { width: 20px; height: 20px; }
.tco-rs.tco-rs--bar .tco-rs__avg { display: inline; font-size: 17px; font-weight: 700; }
.tco-rs.tco-rs--bar .tco-rs__count { display: inline; font-size: 17px; font-weight: 700; padding-left: 10px; border-left: 1px solid currentColor; line-height: 1.1; }
.tco-rs.tco-rs--bar .tco-rs__based, .tco-rs.tco-rs--bar .tco-rs__mark { display: none; }
/* Hover: the card lifts a little with a soft shadow (Settings → Hover effect). */
.tco-rs--lift .tco-rs__card { transition: transform .22s ease, box-shadow .22s ease; }
.tco-rs--lift .tco-rs__card:hover, .tco-rs--lift .tco-rs__card:focus-within { transform: translateY(-4px); box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .22); }
.tco-rs--lift .tco-rs__track { padding-top: 8px; padding-bottom: 16px; margin-top: -4px; margin-bottom: -12px; } /* room for the lift and shadow inside the scroller */
@media (prefers-reduced-motion: reduce) {
	.tco-rs__track { scroll-behavior: auto; }
	.tco-rs--lift .tco-rs__card { transition: none; }
	.tco-rs--lift .tco-rs__card:hover, .tco-rs--lift .tco-rs__card:focus-within { transform: none; }
}

/* The review form's Submit button inside the pop-up: its own colors in every state (no theme pink). */
.tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn, .tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn:hover, .tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn:focus, .tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn:focus-visible, .tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn:active {
	background-color: var(--tco-accent, #2F6A4A); border: 0; color: #fff; text-decoration: none; filter: none;
}
.tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn:hover, .tco-rs[data-tco-rs] .tco-rs__formdlg .tco-gr-btn:focus-visible { filter: brightness(1.08); }
