/**
 * Testimonials: cards (grid on /atsiliepimai/, carousel on the front page),
 * star ratings and the submission form (form rules copied from the
 * Strong Testimonials plugin it replaces). Loaded only where a view is shown.
 */

/* ---- assets/public/css/rating-display.css ---- */
.strong-rating-wrapper {
	line-height: 1.7;
}
.strong-rating-wrapper legend,
.strong-rating-wrapper .strong-rating-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.strong-rating {
	display: inline-block;
	border: 0;
}
.strong-rating span.star {
	display: inline-block;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: 0;
}
.strong-rating span.star:hover {
	cursor: default;
}
.strong-rating-wrapper.in-form .strong-rating {
	padding: 0;
}
.strong-rating-wrapper.in-view {
	display: inline-block;
}
.strong-rating-wrapper.in-view .strong-rating {
	margin: 0;
	padding: 0;
}
.strong-rating-wrapper .star svg path {
	fill: #FFB900;
}
.strong-rating-wrapper .star svg {
	width: 20px;
}
@media only screen and (max-width: 480px) {
	.strong-rating-wrapper > span {
		display: block;
		line-height: 30px;
		vertical-align: middle;
		margin: 0;
		text-align: center;
	}
}

/* ---- Testimonial cards (inc/testimonials.php: epaslt_tst_card_html) ---- */
.tst-view {
	--tst-blue: #0f69af;
	--tst-border: #F1F1F1;
	--tst-text: #2b2f36;
	--tst-muted: #66707c;
	font-family: 'Inter', sans-serif;
}
.tst-view *,
.tst-view *::before,
.tst-view *::after {
	box-sizing: border-box;
}

.tst-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--tst-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tst-card:hover {
	border-color: #dbe7f2;
	box-shadow: 0 8px 22px rgba(15, 105, 175, .09);
	transform: translateY(-2px);
}

.tst-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
	margin-bottom: 14px;
}
.tst-quote {
	flex: none;
	width: 32px;
	height: 32px;
	margin-left: auto;
	color: var(--tst-blue);
	opacity: .16;
}

/* Stars (epaslt_tst_star_rating) */
.tst-card .strong-rating-wrapper.in-view {
	display: block;
	line-height: 1;
}
.tst-card .strong-rating-wrapper.in-view > span.strong-rating {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	line-height: 1;
	text-align: left;
}
.tst-card .strong-rating-wrapper .star svg {
	display: block;
	width: 17px;
	height: 17px;
}

/* Text, clamped until "Rodyti daugiau" */
.tst-card-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
	color: var(--tst-text);
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.tst-grid .tst-card-text {
	-webkit-line-clamp: 7;
	line-clamp: 7;
}
.tst-card.is-open .tst-card-text {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: none;
	overflow: visible;
}
.tst-card-text p {
	margin: 0 0 .6em;
	padding: 0;
}
.tst-card-text p:last-child {
	margin-bottom: 0;
}
.tst-card-text img.emoji {
	display: inline !important;
	width: 1em !important;
	height: 1em !important;
	margin: 0 .07em !important;
	vertical-align: -.1em !important;
}

/* The theme styles every <button> with !important; this one is a text link. */
.tst-view .tst-more {
	align-self: flex-start;
	margin: 8px 0 0;
	padding: 2px 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 4px !important;
	color: var(--tst-blue) !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: underline;
	text-decoration-color: rgba(15, 105, 175, .35);
	text-underline-offset: 3px;
	box-shadow: none;
	cursor: pointer;
}
.tst-view .tst-more:hover {
	background: none !important;
	text-decoration-color: currentColor;
}
.tst-view .tst-more[hidden] {
	display: none;
}
.tst-view .tst-more:focus-visible {
	outline: 2px solid var(--tst-blue);
	outline-offset: 2px;
}

.tst-card-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
}
.tst-avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
}
.tst-tone-0 { background: #e7f0f8; color: #0f69af; }
.tst-tone-1 { background: #e4f4f1; color: #127566; }
.tst-tone-2 { background: #fdf1df; color: #9a5b06; }
.tst-tone-3 { background: #efeafb; color: #5b3fb0; }
.tst-tone-4 { background: #fdeaea; color: #b4232a; }
.tst-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}
.tst-name {
	overflow: hidden;
	color: #111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tst-date {
	color: var(--tst-muted);
	font-size: 13px;
	line-height: 1.3;
}

/* ---- Grid (/atsiliepimai/) ---- */
.tst-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 8px 0 48px;
}
@media (max-width: 991px) {
	.tst-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}
@media (max-width: 639px) {
	.tst-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-bottom: 36px;
	}
}

/* ---- Carousel (front page) ---- */
.tst-carousel {
	position: relative;
	margin-top: 20px;
}
.tst-carousel .tst-swiper {
	position: relative;
	overflow: hidden;
	padding: 6px 1px 14px; /* room for the hover lift and shadow */
}
.tst-carousel .swiper-wrapper {
	display: flex;
	align-items: stretch; /* equal card heights */
}
.tst-carousel .swiper-slide {
	flex-shrink: 0;
	height: auto;
}
.tst-carousel .tst-card:hover {
	box-shadow: 0 6px 14px rgba(15, 105, 175, .08);
}

/* Before Swiper starts (or without it): a horizontally scrollable row with the same widths. */
.tst-carousel:not(.is-ready) .swiper-wrapper {
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.tst-carousel:not(.is-ready) .swiper-wrapper::-webkit-scrollbar {
	display: none;
}
.tst-carousel:not(.is-ready) .swiper-slide {
	width: calc((100% - 16px) / 1.15);
	scroll-snap-align: start;
}
@media (min-width: 768px) {
	.tst-carousel:not(.is-ready) .swiper-wrapper {
		gap: 20px;
	}
	.tst-carousel:not(.is-ready) .swiper-slide {
		width: calc((100% - 20px) / 2);
	}
}
@media (min-width: 992px) {
	.tst-carousel:not(.is-ready) .swiper-wrapper {
		gap: 24px;
	}
	.tst-carousel:not(.is-ready) .swiper-slide {
		width: calc((100% - 48px) / 3);
	}
}

/* Arrows (same look as the subcategory carousel) */
.tst-carousel .tst-nav {
	position: absolute;
	top: calc(50% - 14px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0 !important;
	border: 1px solid #e3e8ee !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--tst-blue) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.tst-carousel .tst-nav svg {
	flex: none;
	width: 20px !important;
	height: 20px !important;
	max-width: none !important;
}
.tst-carousel .tst-nav:hover {
	background: var(--tst-blue) !important;
	color: #fff !important;
}
.tst-carousel .tst-nav:focus-visible {
	outline: 2px solid var(--tst-blue);
	outline-offset: 2px;
}
.tst-carousel .tst-prev { left: -20px; }
.tst-carousel .tst-next { right: -20px; }
.tst-carousel .tst-nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}
.tst-carousel .tst-nav.swiper-button-lock,
.tst-carousel:not(.is-ready) .tst-nav {
	display: none;
}

/* Page dots */
.tst-carousel .tst-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	min-height: 8px;
	margin-top: 6px;
}
.tst-carousel .tst-dots.swiper-pagination-lock,
.tst-carousel:not(.is-ready) .tst-dots {
	display: none;
}
.tst-carousel .tst-dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	border-radius: 4px;
	background: #cfd8e1;
	opacity: 1;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}
.tst-carousel .tst-dots .swiper-pagination-bullet-active {
	width: 22px;
	background: var(--tst-blue);
}
.tst-carousel .tst-dots .swiper-pagination-bullet:focus-visible {
	outline: 2px solid var(--tst-blue);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	/* Touch: swipe; the peeking next card shows there is more. */
	.tst-carousel .tst-nav {
		display: none;
	}
	.tst-card {
		padding: 20px;
	}
}
@media (min-width: 768px) and (max-width: 1260px) {
	/* Keep the arrows inside the viewport when the container is close to its edges. */
	.tst-carousel .tst-prev { left: -12px; }
	.tst-carousel .tst-next { right: -12px; }
}

@media (prefers-reduced-motion: reduce) {
	.tst-card,
	.tst-carousel .tst-nav,
	.tst-carousel .tst-dots .swiper-pagination-bullet {
		transition: none;
	}
	.tst-card:hover {
		transform: none;
	}
	.tst-carousel .swiper-wrapper {
		transition-duration: 0ms !important;
	}
}

/* ---- templates/default-form/form.css ---- */
.strong-form {
	position: relative;
	margin: 0 auto;
}
.strong-form .form-field {
	margin-bottom: 1.5em;
}
.strong-form .form-field.wpmtst-submit {
	margin-bottom: 0;
}
.strong-form .required.symbol:after {
	content: '*';
	color: #FF0000;
	font-size: 1.5em;
	font-weight: 400;
	margin: 0 5px;
	position: relative;
	top: 5px;
}
.strong-form label {
	display: inline-block;
	float: none;
	width: auto;
}
.strong-form input[type="text"],
.strong-form input[type="email"],
.strong-form input[type="url"],
.strong-form select,
.strong-form textarea {
	box-sizing: border-box;
	display: block;
	float: none;
	width: 100%;
}
.strong-form textarea {
	height: 16em;
}
.strong-form span.error,
.strong-form label.error {
	display: block;
}
.strong-form .before {
	display: block;
}
.strong-form .after {
	display: block;
}
.strong-form-inner {
	padding: 20px;
}
.strong-form-wait {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.7);
}
.strong-form-wait .message {
	position: absolute;
	top: calc( 50% - 25px );
	text-align: center;
	width: 100%;
	height: 50px;
	line-height: 50px;
	color: #111;
}
.strong-form-wait .message img {
	width: 50px;
	height: 50px;
	margin: 0 auto;
}
@keyframes wpmtst-spin {
	0% {
		transform: rotate(360deg);
	}
	100% {
		transform: rotate(0deg);
	}
}
.strong-form-wait .message img {
	animation: wpmtst-spin 2.5s infinite 0s linear;
}
.strong-form label {
	font-weight: 700;
}
.strong-form .form-field .after {
	font-size: .9em;
	font-style: italic;
}
.strong-form input.error,
.strong-form textarea.error,
.strong-form select.error {
	background: #F9E5E6;
	border: 1px solid #E8AAAD;
	color: #B50007;
}
.strong-form span.error,
.strong-form label.error {
	color: #B50007;
}
.strong-form .field-wrap {
	display: block;
	font-weight: 400;
	border: 1px solid transparent;
}
.strong-form .field-wrap.error {
	border-radius: 3px;
	background: #F9E5E6;
	border: 1px solid #E8AAAD;
	color: #B50007;
}
.strong-form .field-wrap.error .strong-rating {
	outline-color: #E8AAAD;
}

/* ---- assets/public/css/rating-form.css ---- */
.strong-rating {
	display: inline-block;
	border: 0;
	margin: 0;
	padding: 5px;
}
.strong-rating input[type=radio] {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}
.strong-rating input[type=radio]:focus + label {
	outline: 2px solid #005fcc;
	outline-offset: 2px;
}
.strong-rating label {
	font-weight: normal;
}
.strong-rating label:hover {
	cursor: pointer;
}
.strong-rating label[for$="star0"] {
	display: none !important;
}
.strong-rating input[type="radio"]:checked ~ .star svg .star_solid {
	display: none;
}
.strong-rating input[type="radio"]:checked + .star svg .star_solid {
	display: block;
}
.strong-rating:hover .star svg .star_solid {
	display: block !important;
}
.strong-rating .star:hover ~ .star svg .star_solid {
	display: none !important;
}
.strong-rating:focus {
	outline: none;
}
.strong-rating:hover input:checked + .star svg path {
	fill: #FFE39E;
}

/* Grid pagination (/atsiliepimai/) */
.tst-paged {
	scroll-margin-top: 140px;
}

.tst-paged .tst-card:focus {
	outline: none;
}

.tst-paged.is-loading .tst-grid {
	opacity: .45;
	pointer-events: none;
	transition: opacity .15s ease;
}

.tst-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 32px 0 8px;
}

.tst-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #E6EBF0;
	border-radius: 10px;
	background: #fff;
	color: #212121;
	font: 500 15px/1 'Inter', sans-serif;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

a.tst-page:hover,
a.tst-page:focus,
a.tst-page:active,
a.tst-page:focus-visible {
	border-color: #0f69af;
	background: #e8f1f9;
	color: #0f69af;
	text-decoration: none;
}

a.tst-page:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

.tst-page.is-current {
	border-color: #0f69af;
	background: #0f69af;
	color: #fff;
}

.tst-page--dots {
	min-width: 20px;
	padding: 0;
	border-color: transparent;
	background: transparent;
	color: #8a8f98;
}

.tst-page--prev,
.tst-page--next {
	color: #0f69af;
}

@media (max-width: 575px) {
	.tst-pagination {
		gap: 6px;
		margin-top: 24px;
	}
	.tst-page {
		min-width: 38px;
		height: 38px;
		padding: 0 10px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tst-paged.is-loading .tst-grid {
		transition: none;
	}
}

/* Rating summary (/atsiliepimai/) */
.rv-summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 40px;
	margin: 0 0 32px;
	padding: 28px 32px;
	border: 1px solid #F1F1F1;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	font-family: 'Inter', sans-serif;
	color: #212121;
}

.rv-summary__score {
	text-align: center;
	min-width: 170px;
}

.rv-summary__avg {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	line-height: 1;
}

.rv-summary__num {
	font-size: 48px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.rv-summary__of {
	font-size: 16px;
	color: #6b7280;
}

.rv-stars {
	position: relative;
	display: inline-block;
	margin: 10px 0 6px;
	line-height: 0;
}

.rv-stars svg {
	width: 22px;
	height: 22px;
	margin: 0 1px;
}

.rv-stars__base svg {
	fill: #E6EBF0;
}

.rv-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}

.rv-stars__fill svg {
	fill: #CC7A00;
}

.rv-summary__count {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

.rv-summary__count strong {
	color: #212121;
}

.rv-summary__bars {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-bar {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 14px;
}

.rv-bar__label {
	color: #4b5563;
}

.rv-bar__track {
	position: relative;
	height: 8px;
	border-radius: 8px;
	background: #EEF2F6;
	overflow: hidden;
}

.rv-bar__fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 8px;
	background: #CC7A00;
}

.rv-bar__pct {
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: #6b7280;
}

.rv-summary__cta {
	text-align: center;
}

.rv-summary__cta p {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 500;
}

.tst-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 10px;
	background: #0f69af;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease;
}

/* Every link state: the theme's global a:hover/a:focus/a:active (blue text + underline) must not win. */
a.tst-cta-btn,
a.tst-cta-btn:visited,
a.tst-cta-btn:hover,
a.tst-cta-btn:focus,
a.tst-cta-btn:active {
	color: #fff;
	text-decoration: none;
}

a.tst-cta-btn:hover,
a.tst-cta-btn:focus,
a.tst-cta-btn:active {
	background: #0b5590;
}

.tst-cta-btn:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

#atsiliepimo-forma {
	scroll-margin-top: 160px;
}

@media (max-width: 991px) {
	.rv-summary {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 28px;
	}
	.rv-summary__cta {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		padding-top: 20px;
		border-top: 1px solid #F1F1F1;
	}
	.rv-summary__cta p {
		margin: 0;
	}
}

@media (max-width: 639px) {
	.rv-summary {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 22px 18px;
	}
	.rv-bar {
		grid-template-columns: 90px minmax(0, 1fr) 40px;
		gap: 10px;
	}
	.rv-summary__cta {
		flex-direction: column;
		gap: 10px;
	}
}

/* Form section (inline without JS, modal with JS) */
.tst-form-section {
	position: relative;
	margin: 40px 0 0;
}

.tst-form-head {
	position: relative;
	margin: 0 0 20px;
	padding-right: 40px;
}

.tst-form-title {
	margin: 0 0 6px;
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #212121;
}

.tst-form-lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #6b7280;
}

.tst-modal {
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
	overflow: auto;
	overscroll-behavior: contain;
	color: #212121;
}

.tst-modal::backdrop {
	background: rgba(17, 24, 39, .55);
}

.tst-modal[open] {
	animation: tst-modal-in .2s ease-out;
}

@keyframes tst-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

html.tst-modal-open {
	overflow: hidden;
}

.tst-form-section.is-modal {
	margin: 0;
	padding: 28px 28px 24px;
}

.tst-form-section.is-modal .strong-form {
	margin: 0;
}

.tst-form-section .tst-modal-close {
	position: absolute;
	top: -4px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #F3F5F8 !important;
	color: #212121 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s ease;
}

.tst-form-section .tst-modal-close[hidden] {
	display: none;
}

.tst-form-section .tst-modal-close:hover,
.tst-form-section .tst-modal-close:focus-visible {
	background: #E6EBF0 !important;
}

.tst-form-section .tst-modal-close:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.tst-modal {
		width: 100vw;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
	}
	.tst-modal[open] {
		animation-name: tst-sheet-in;
	}
	.tst-form-section.is-modal {
		padding: 22px 18px 20px;
	}
	.tst-form-title {
		font-size: 21px;
	}
}

@keyframes tst-sheet-in {
	from {
		transform: translateY(40px);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tst-modal[open] {
		animation: none;
	}
}

/* ---- Product review cards (inc/product-reviews.php: epaslt_pr_card_html), also mixed into the lists above ---- */
.pr-card .pr-photo {
	display: inline-block;
	align-self: flex-start;
	margin: 12px 0 0;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 0 0 1px #E6EBF0;
}
.pr-card .pr-photo img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	transition: transform .2s ease;
}
.pr-card a.pr-photo:hover img,
.pr-card a.pr-photo:focus-visible img {
	transform: scale(1.05);
}
.pr-card a.pr-photo:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}
.pr-about {
	margin: 12px 0 0;
	color: #66707c;
	font-size: 13px;
	line-height: 1.4;
}
.pr-about a {
	color: #0f69af;
	font-weight: 500;
}
.pr-meta-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}
.pr-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #127566;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}
.pr-verified svg {
	flex: none;
}

/* Photo viewer */
.pr-lightbox {
	max-width: min(960px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #111;
	overflow: hidden;
}
.pr-lightbox::backdrop {
	background: rgba(17, 24, 39, .8);
}
.pr-lightbox img {
	display: block;
	max-width: min(960px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	width: auto;
	height: auto;
	object-fit: contain;
}
.pr-lightbox .pr-lightbox-close,
.pr-lightbox .pr-lightbox-close:hover,
.pr-lightbox .pr-lightbox-close:focus,
.pr-lightbox .pr-lightbox-close:active {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .92) !important;
	color: #212121 !important;
	cursor: pointer;
}
.pr-lightbox .pr-lightbox-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pr-card .pr-photo img {
		transition: none;
	}
}

/* Product reviews in shop-wide lists: the product as a round thumbnail at the right end of the
   author line, tooltip with the product name on hover and keyboard focus (inc/product-reviews.php). */
a.pr-bought,
a.pr-bought:visited,
a.pr-bought:hover,
a.pr-bought:focus,
a.pr-bought:active {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px; /* +20 % (owner 2026-11-28) */
	height: 44px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 1px solid #E6EBF0;
	border-radius: 50%;
	background: #fff;
	color: #0f69af;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

a.pr-bought:hover {
	border-color: #0f69af;
	box-shadow: 0 2px 8px rgba(15, 105, 175, .15);
}

a.pr-bought:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
}

.pr-bought__img {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: contain;
}

.pr-bought__ico {
	display: block;
}

/* Tooltip above the bubble, right-aligned with it, so it grows to the left inside the card. */
.pr-bought__tip {
	position: absolute;
	right: -6px;
	bottom: calc(100% + 10px);
	z-index: 20;
	width: max-content;
	max-width: min(240px, calc(100vw - 48px));
	padding: 8px 10px;
	border-radius: 8px;
	background: #212121;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	pointer-events: none;
}

.pr-bought__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 18px;
	border: 6px solid transparent;
	border-top-color: #212121;
	border-bottom: 0;
}

a.pr-bought:hover .pr-bought__tip,
a.pr-bought:focus-visible .pr-bought__tip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	a.pr-bought,
	.pr-bought__tip {
		transition: none;
	}
}

.rv-summary__all {
	margin: 4px 0 0;
	font-size: 14px;
	color: #6b7280;
}

.rv-summary__all strong {
	color: #212121;
}

/* Gap under "Rodyti daugiau". */
.tst-card > .tst-more {
	margin-bottom: 14px;
}

.tst-card > .tst-card-text {
	margin-bottom: 14px;
}

/* How reviews are checked (under the rating summary on /atsiliepimai/ and product pages) */
.rv-note {
	max-width: 760px;
	margin: 0 0 24px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	line-height: 1.55;
	color: #6b7280;
}

.rv-summary + .rv-note {
	margin-top: -16px;
}

.pr-section .rv-summary + .rv-note {
	margin-top: -8px;
}

a.rv-note__link,
a.rv-note__link:visited {
	color: #0f69af;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

a.rv-note__link:hover,
a.rv-note__link:focus,
a.rv-note__link:active {
	color: #0b5590;
	text-decoration: underline;
	background: none;
}

a.rv-note__link:focus-visible {
	outline: 2px solid #0f69af;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Privacy note above the submit button */
.strong-form .tst-privacy {
	margin: -0.5em 0 1.25em;
	font-size: 13px;
	line-height: 1.5;
	color: #4b5563;
}

/* "Iš Facebook": testimonials copied from another platform (inc/testimonials.php, _lv_source). */
.tst-source {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #5f6672;
}

/* Phones, many pages: a fixed window of 7 dots that follows the active one (js/testimonials.js). */
.tst-carousel .tst-dots--window {
	flex-wrap: nowrap;
}
.tst-carousel .tst-dots--window .swiper-pagination-bullet.is-off {
	display: none;
}
