/* Testimonial Shop 4.0 | Author: mstkalenko | https://ocmod.net */
/* Skin: Octemplates ReMarket (oct_remarket) */

/* ---------------------------------------------------------------- tokens */
/* :root, not .stm: the modal is appended outside the widget and must see them */

:root {
	--stm-accent: #fb9130;
	--stm-link: #0a78bf;
	--stm-cols: 3;
	--stm-gap: 0px;
	--stm-pad: 30px;
	--stm-radius: 2px;
	--stm-radius-ui: 6px;
	--stm-star: 15px;
	--stm-card: #ffffff;
	--stm-ink: #272323;
	--stm-text: #656c7d;
	--stm-muted: #777777;
	--stm-line: #f9f9fc;
	--stm-soft: #f9f9f9;
	--stm-hover: #f4f4f4;
	--stm-head: #f0f1f3;
	--stm-field: #fdfdfd;
	--stm-field-line: #e9e9e9;
	--stm-button: #e9e9e9;
	--stm-good: #27ae60;
	--stm-bad: #eb5757;
	--stm-shadow: 0 4px 15px rgba(0, 0, 0, .08);
	--stm-popup: 0 0 20px rgba(0, 0, 0, .17);
}

.stm {
	margin: 0 0 30px;
	color: var(--stm-ink);
	font-size: 14px;
	line-height: 20px;
}

.stm *,
.stm *::before,
.stm *::after,
.stm-modal *,
.stm-modal *::before,
.stm-modal *::after {
	box-sizing: border-box;
}

.stm--soft {
	--stm-card: #fefbf7;
	--stm-line: #f7eadb;
	--stm-soft: #fcf4ea;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
	.stm--soft {
		--stm-card: color-mix(in srgb, var(--stm-accent) 4%, #ffffff);
		--stm-line: color-mix(in srgb, var(--stm-accent) 14%, #ffffff);
		--stm-soft: color-mix(in srgb, var(--stm-accent) 9%, #ffffff);
	}
}

.stm--dark {
	--stm-link: #59c2e6;
	--stm-card: #262d3a;
	--stm-ink: #f4f4f4;
	--stm-text: #c1c5cf;
	--stm-muted: #a6a6a6;
	--stm-line: #1e242f;
	--stm-soft: #1e242f;
	--stm-hover: #323a48;
	--stm-head: #1e242f;
	--stm-field: #1e242f;
	--stm-field-line: #3a4252;
	--stm-button: #3a4252;
	--stm-good: #6fcf97;
	--stm-shadow: 0 4px 15px rgba(0, 0, 0, .35);
	padding: var(--stm-pad);
	border-radius: var(--stm-radius);
	background: #1e242f;
}

.stm a:not(.stm-btn),
.stm-modal a:not(.stm-btn) {
	color: var(--stm-link);
	text-decoration: underline;
}

.stm a:not(.stm-btn):hover,
.stm-modal a:not(.stm-btn):hover {
	color: var(--stm-link);
	text-decoration: none;
}

/* the theme removes outlines from every button; keyboard users still need one */
.stm :focus-visible,
.stm-modal :focus-visible {
	outline: 2px solid var(--stm-link);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ head */

.stm-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px 30px;
	margin-bottom: 20px;
}

/* = .rm-module-header */
.stm-heading {
	margin: 0;
	color: var(--stm-ink);
	font-size: 26px;
	font-weight: 400;
	line-height: 32px;
}

.stm-heading > span {
	display: inline-block;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--stm-accent);
}

.stm-head__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 10px;
	min-height: 32px;
	color: var(--stm-muted);
	font-size: 12px;
}

.stm-head__rating strong {
	color: var(--stm-ink);
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
}

/* ----------------------------------------------------------------- stars */
/* the same sprite as .rm-module-rating-star; the path works from
   theme/default/stylesheet/ and from theme/oct_remarket/stylesheet/ */

.stm-stars {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 1px;
	line-height: 0;
	vertical-align: middle;
	white-space: nowrap;
}

.stm-star,
.stm-stars > i,
.stm-bar__label > .fa {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: var(--stm-star);
	height: var(--stm-star);
	background: url("../../oct_remarket/img/sprite.svg#include--star-grey") no-repeat 0 0 / contain;
	font-size: 0;
	line-height: 0;
	vertical-align: middle;
}

.stm-star,
.stm-stars > .fa-star,
.stm-bar__label > .fa {
	background-image: url("../../oct_remarket/img/sprite.svg#include--star-gold");
}

.stm--dark .stm-stars > .fa-star-o {
	opacity: .3;
}

.stm--dark .stm-stars > .fa-star-half-o,
.stm--dark .stm-stars > .fa-star-half-alt {
	background-image: none;
}

.stm--dark .stm-stars > .fa-star-half-o::after,
.stm--dark .stm-stars > .fa-star-half-alt::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	background: url("../../oct_remarket/img/sprite.svg#include--star-grey") no-repeat calc(var(--stm-star) / -2) 0 / var(--stm-star) var(--stm-star);
	opacity: .3;
}

.stm-stars > i::before,
.stm-bar__label > .fa::before {
	content: none;
}

.stm-stars > .fa-star-half-o::before,
.stm-stars > .fa-star-half-alt::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: url("../../oct_remarket/img/sprite.svg#include--star-gold") no-repeat 0 0 / var(--stm-star) var(--stm-star);
}

/* ---------------------------------------------------------------- button */
/* = .rm-btn.primary / .rm-btn.secondary, including the hover ripple */

.stm-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	padding: 0 25px;
	overflow: hidden;
	border: 0;
	border-radius: var(--stm-radius-ui);
	background: var(--stm-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .3s ease, color .1s ease;
}

.stm-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(233, 233, 233, .15);
	transform: translate(-50%, -50%);
	transition: width .3s ease, height .3s ease;
}

.stm-btn:hover::before {
	width: 400px;
	height: 400px;
}

.stm-btn:hover,
.stm-btn:focus {
	color: #ffffff;
	text-decoration: none;
}

.stm-btn--ghost {
	background: var(--stm-button);
	color: var(--stm-ink);
}

.stm-btn--ghost:focus {
	color: var(--stm-ink);
}

.stm-btn--ghost:hover,
.stm-btn--ghost:focus-visible {
	background: var(--stm-accent);
	color: #ffffff;
}

.stm-btn--lg {
	height: 52px;
	padding: 0 38px;
}

.stm-btn[disabled] {
	opacity: .6;
	cursor: wait;
}

.stm-btn[disabled]::before {
	content: none;
}

/* .rm-content a { color; underline } outranks a single class */
.rm-content .stm-btn,
.rm-content .stm-btn:hover {
	color: #ffffff;
	text-decoration: none;
}

.rm-content .stm-btn--ghost {
	color: var(--stm-ink);
}

.stm-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin-top: 30px;
}

/* ------------------------------------------------------------------ card */
/* = .rm-last-reviews-item: joined white cells separated by the page colour */

.stm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 15px;
	height: 100%;
	padding: var(--stm-pad);
	background: var(--stm-card);
	box-shadow: -.5px -.5px 0 .5px var(--stm-line), inset -1px -1px 0 0 var(--stm-line);
	color: var(--stm-ink);
	transition: box-shadow .3s ease;
	container-type: inline-size;
}

.stm-card--card:hover {
	z-index: 2;
	box-shadow: var(--stm-shadow);
}

/* <header> in card.twig: main.css gives every header sticky, z-index, border and shadow */
.stm-card__top {
	position: static;
	z-index: auto;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 15px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
}

.stm-card__who {
	flex: 1 1 auto;
	min-width: 0;
}

.stm-card__rating {
	flex: 0 0 auto;
	margin-left: auto;
}

/* narrow card (left/right column): stars go under the name instead of squeezing it */
@container (max-width: 290px) {
	.stm-card__top {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	.stm-card__rating {
		flex-basis: 100%;
		margin-left: 0;
	}
}

.stm-card__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 15px;
}

.stm-avatar {
	display: inline-flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--stm-accent);
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	object-fit: cover;
}

.stm-avatar--h0 { background: #0a78bf; }
.stm-avatar--h1 { background: #27ae60; }
.stm-avatar--h2 { background: #fb9130; }
.stm-avatar--h3 { background: #656c7d; }
.stm-avatar--h4 { background: #eb5757; }
.stm-avatar--h5 { background: #f2994a; }

.stm-name {
	overflow: hidden;
	color: var(--stm-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stm-meta {
	color: var(--stm-muted);
	font-size: 12px;
	line-height: 18px;
}

/* = .rm-module-stickers-sticker */
.stm-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: var(--stm-radius);
	background: var(--stm-good);
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.stm-verified .fa {
	font-size: 12px;
}

.stm-meta .stm-verified {
	margin: 0 6px 2px 0;
	vertical-align: middle;
}

.stm-title {
	margin: 0;
	color: var(--stm-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 21px;
}

.stm-text {
	color: var(--stm-text);
	font-size: 14px;
	line-height: 22px;
	overflow-wrap: anywhere;
}

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

.stm-text blockquote {
	margin: 10px 0;
	padding: 10px 15px;
	border: 0;
	border-left: 2px solid var(--stm-field-line);
	background: var(--stm-soft);
	font-size: inherit;
}

.stm-pros,
.stm-cons {
	color: var(--stm-text);
	font-size: 14px;
	line-height: 22px;
}

/* = .rm-product-tabs-questions-item-answer */
.stm-reply {
	padding: 15px 20px;
	border-radius: 5px;
	background: var(--stm-soft);
	color: var(--stm-text);
	font-size: 14px;
	line-height: 22px;
}

.stm-label {
	display: block;
	margin-bottom: 5px;
	color: var(--stm-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

/* green and red are too light for text, so they mark the label instead */
.stm-pros .stm-label::before,
.stm-cons .stm-label::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 8px 1px 0;
	border-radius: 50%;
	background: var(--stm-good);
}

.stm-cons .stm-label::before {
	background: var(--stm-bad);
}

.stm-more {
	align-self: flex-start;
	margin-top: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--stm-link);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: underline;
	cursor: pointer;
}

.stm-more:hover {
	text-decoration: none;
}

.stm-more .fa {
	margin-left: 4px;
}

.stm-smile {
	width: auto;
	height: 20px;
	vertical-align: middle;
}

.stm-photo {
	display: inline-block;
	margin: 5px 5px 0 0;
}

.stm-photo img {
	max-width: 160px;
	max-height: 120px;
	border-radius: var(--stm-radius);
	transition: opacity .3s ease;
}

.stm-photo:hover img {
	opacity: .9;
}

.stm-video {
	display: block;
	position: relative;
	margin: 10px 0;
	padding-top: 56.25%;
	background: #000000;
}

.stm-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.stm-empty {
	padding: var(--stm-pad);
	background: var(--stm-card);
	color: var(--stm-muted);
	text-align: center;
}

/* ------------------------------------------------------------------ grid */

.stm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - (var(--stm-cols) - 1) * var(--stm-gap)) / var(--stm-cols))), 1fr));
	gap: var(--stm-gap);
}

.stm-grid--page {
	--stm-cols: 2;
}

/* --------------------------------------------------------------- masonry */

.stm-masonry {
	column-count: var(--stm-cols);
	column-gap: var(--stm-gap);
}

.stm--page .stm-masonry {
	column-count: 2;
}

.stm-masonry > .stm-card {
	display: inline-flex;
	width: 100%;
	height: auto;
	margin-bottom: var(--stm-gap);
	vertical-align: top;
	break-inside: avoid;
}

/* ------------------------------------------------------------------ list */
/* = .rm-comments-item inside a white panel */

.stm-list {
	padding: 0 var(--stm-pad);
	background: var(--stm-card);
}

.stm-list > .stm-card {
	height: auto;
	padding: 20px 0;
	border-top: 1px solid var(--stm-line);
	background: transparent;
	box-shadow: none;
}

.stm-list > .stm-card:first-child {
	border-top: 0;
}

/* -------------------------------------------------------------- carousel */

.stm-carousel {
	position: relative;
}

.stm-track {
	display: grid;
	grid-auto-columns: calc((100% - (var(--stm-cols) - 1) * var(--stm-gap)) / var(--stm-cols));
	grid-auto-flow: column;
	gap: var(--stm-gap);
	overflow-x: auto;
	padding: 1px 1px 15px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.stm-track::-webkit-scrollbar {
	display: none;
}

.stm-track:focus {
	outline: none;
}

.stm-track:focus-visible {
	outline: 2px solid var(--stm-link);
	outline-offset: -2px;
}

.stm-slide {
	min-width: 0;
	scroll-snap-align: start;
}

/* = .slick-arrow */
.stm-nav {
	position: absolute;
	top: calc(50% - 33px);
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 50px;
	padding: 0;
	border: 1px solid var(--stm-line);
	border-radius: var(--stm-radius-ui);
	background: var(--stm-card);
	color: var(--stm-ink);
	cursor: pointer;
	transition: background-color .3s ease;
}

.stm-nav:hover {
	background: var(--stm-hover);
}

.stm-nav svg {
	display: block;
}

.stm-nav--prev { left: 0; }
.stm-nav--next { right: 0; }

.stm-nav[disabled] {
	opacity: 0;
	pointer-events: none;
}

.stm-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

.stm-dot {
	position: relative;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--stm-field-line);
	cursor: pointer;
	transition: background-color .3s ease;
}

/* 10px dot, 24px tap area */
.stm-dot::after {
	content: "";
	position: absolute;
	top: -7px;
	right: -7px;
	bottom: -7px;
	left: -7px;
}

.stm-dot:hover {
	background: #cbcbcb;
}

.stm-dot.is-active {
	background: var(--stm-accent);
}

/* ------------------------------------------------------------- spotlight */
/* the 4px top bar is the theme's active-tab marker */

.stm-spotlight {
	position: relative;
	padding: 40px var(--stm-pad) var(--stm-pad);
	overflow: hidden;
	background: var(--stm-card);
	text-align: center;
}

.stm-spotlight::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	border-radius: 2px 2px 0 0;
	background: var(--stm-accent);
}

.stm-spot {
	display: none;
}

.stm-spot.is-active {
	display: block;
	animation: stm-fade .3s ease;
}

@keyframes stm-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.stm-quote {
	margin: 0;
}

.stm-quote__stars {
	--stm-star: 20px;
}

.stm-quote__stars .stm-stars {
	gap: 3px;
}

.stm-quote__text {
	max-width: 760px;
	margin: 20px auto;
	padding: 0;
	border: 0;
	color: var(--stm-ink);
	font-size: 18px;
	font-style: normal;
	line-height: 30px;
}

.stm-quote__text strong {
	display: block;
	margin-bottom: 10px;
	font-weight: 500;
}

.stm-author {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 15px;
	text-align: left;
}

.stm-author__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.stm-author .stm-more {
	margin: 0 0 0 10px;
}

.stm-spotlight .stm-dots {
	margin-top: 25px;
}

/* ----------------------------------------------------------------- badge */
/* = .rm-store-reviews-top + .rm-product-reviews-rating */

.stm-badge {
	display: grid;
	grid-template-columns: minmax(180px, auto) minmax(220px, 1fr) auto;
	align-items: center;
	gap: 30px;
	padding: var(--stm-pad);
	background: var(--stm-card);
}

.stm-badge__label {
	margin: 0 0 15px;
	color: var(--stm-ink);
	font-size: 24px;
	font-weight: 400;
	line-height: 29px;
	letter-spacing: .3px;
}

.stm-badge__value {
	color: var(--stm-ink);
	font-size: 36px;
	font-weight: 400;
	line-height: 44px;
}

.stm-badge__value span {
	margin-left: 2px;
	color: var(--stm-muted);
	font-size: 20px;
}

.stm-badge__score .stm-stars {
	--stm-star: 18px;
	gap: 3px;
	margin-top: 5px;
}

.stm-badge__based {
	margin-top: 10px;
	color: var(--stm-muted);
}

.stm-badge__bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.stm-bar {
	--stm-bar: var(--stm-text);
	display: grid;
	grid-template-columns: 34px minmax(60px, 1fr) 50px;
	align-items: center;
	gap: 15px;
	line-height: 20px;
}

.stm-bar--5 { --stm-bar: #27ae60; }
.stm-bar--4 { --stm-bar: #6fcf97; }
.stm-bar--3 { --stm-bar: #f2c94c; }
.stm-bar--2 { --stm-bar: #f2994a; }
.stm-bar--1 { --stm-bar: #eb5757; }

.stm-bar__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--stm-ink);
	white-space: nowrap;
}

.stm-bar__track {
	display: block;
	height: 6px;
	overflow: hidden;
	background: var(--stm-hover);
}

.stm-bar__fill {
	display: block;
	height: 100%;
	background: var(--stm-bar);
}

.stm-bar__count {
	padding: 3px 5px;
	border-radius: var(--stm-radius);
	background: var(--stm-bar);
	color: #ffffff;
	font-weight: 500;
	line-height: 17px;
	text-align: center;
}

/* white on the light green and yellow pills is unreadable */
.stm-bar--4 .stm-bar__count,
.stm-bar--3 .stm-bar__count {
	color: #272323;
}

.stm-badge__positive {
	margin-top: 10px;
	color: var(--stm-ink);
	font-weight: 500;
}

.stm-badge__positive::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 8px 1px 0;
	border-radius: 50%;
	background: var(--stm-good);
}

.stm-badge__positive .fa {
	display: none;
}

.stm-badge__actions {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.stm-badge--page {
	margin-bottom: 30px;
}

/* narrow columns (left/right) turn the badge into one column */
.stm--badge {
	container-type: inline-size;
}

@container (max-width: 640px) {
	.stm-badge {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------- floating */

.stm--floating {
	position: fixed;
	bottom: 20px;
	z-index: 1040;
	margin: 0;
	padding: 0;
	background: none;
}

.stm--pos-right { right: 20px; }
.stm--pos-left { left: 20px; }

.stm-float__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 15px;
	border: 1px solid var(--stm-field-line);
	border-radius: var(--stm-radius-ui);
	background: var(--stm-card);
	color: var(--stm-ink);
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	box-shadow: var(--stm-popup);
	transition: background-color .3s ease;
}

.stm-float__toggle:hover {
	background: var(--stm-hover);
}

.stm-float__value {
	font-weight: 500;
}

.stm-float__based {
	color: var(--stm-muted);
	font-size: 12px;
}

/* = .rm-dropdown-inner */
.stm-float__panel {
	position: absolute;
	bottom: calc(100% + 10px);
	display: none;
	flex-direction: column;
	width: 340px;
	max-width: calc(100vw - 40px);
	max-height: min(520px, calc(100vh - 110px));
	overflow: hidden;
	border-radius: var(--stm-radius);
	background: var(--stm-card);
	box-shadow: var(--stm-popup);
}

.stm--pos-right .stm-float__panel { right: 0; }
.stm--pos-left .stm-float__panel { left: 0; }

.stm--floating.is-open .stm-float__panel {
	display: flex;
	animation: stm-fade .3s ease;
}

.stm-float__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	background: var(--stm-head);
	color: var(--stm-ink);
}

.stm-float__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
}

.stm-float__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--stm-muted);
	font-size: 13px;
	white-space: nowrap;
}

.stm-float__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: -5px -8px -5px 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--stm-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: color .3s ease;
}

.stm-float__close:hover {
	color: var(--stm-ink);
}

.stm-float__body {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.stm-float__body > .stm-card {
	height: auto;
	border-top: 1px solid var(--stm-line);
	box-shadow: none;
}

.stm-float__body > .stm-card:first-child {
	border-top: 0;
}

.stm-card--mini {
	gap: 8px;
	padding: 15px 20px;
}

.stm-card--mini .stm-avatar {
	flex-basis: 36px;
	width: 36px;
	height: 36px;
	font-size: 13px;
}

.stm-card--mini .stm-name {
	font-size: 14px;
	line-height: 20px;
}

.stm-card--mini .stm-text {
	font-size: 13px;
	line-height: 20px;
}

.stm-float__foot {
	display: flex;
	gap: 10px;
	padding: 15px 20px;
	border-top: 1px solid var(--stm-line);
}

.stm-float__foot .stm-btn {
	flex: 1 1 0;
	min-width: 0;
	height: 40px;
	padding: 0 10px;
	font-size: 13px;
}

/* ----------------------------------------------------------------- modal */
/* overlay and z-index as #rm_overlay / .modal in the theme */

.stm-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(30, 36, 47, .66);
	animation: stm-fade .3s ease;
}

.stm-modal__box {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border-radius: var(--stm-radius);
	background: var(--stm-card);
	box-shadow: var(--stm-popup);
}

.stm-modal .stm-card,
.stm-modal .stm-card:hover {
	padding: var(--stm-pad);
	box-shadow: none;
}

.stm-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--stm-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color .3s ease;
}

.stm-modal__close:hover {
	color: var(--stm-ink);
}

/* ------------------------------------------------------------------ page */

.stm-page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
}

.stm-page-head h1 {
	margin: 0;
}

.stm-description {
	margin-bottom: 30px;
	color: var(--stm-text);
	font-size: 15px;
	line-height: 24px;
}

.stm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
}

.stm-toolbar__total {
	color: var(--stm-muted);
}

.stm-toolbar__sort {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 400;
}

/* = .rm-select */
.stm-toolbar__sort select {
	width: auto;
	height: 44px;
	padding: 0 30px 0 15px;
	border: 1px solid var(--stm-field-line);
	border-radius: var(--stm-radius-ui);
	background: var(--stm-field) url("../../oct_remarket/img/sprite.svg#include--input-sort") no-repeat right 15px center / 10px;
	color: var(--stm-ink);
	font-size: 12px;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.stm-pagination {
	text-align: center;
}

/* = .rm-content */
.stm-write {
	margin-top: 30px;
	padding: var(--stm-pad);
	background: var(--stm-card);
}

.stm-write:not(.is-open) .stm-form {
	display: none;
}

.stm-write__title {
	margin: 0 0 20px;
	color: var(--stm-ink);
	font-size: 24px;
	font-weight: 400;
	line-height: 29px;
}

.stm-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stm-rate {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 4px;
}

.stm-rate input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.stm-rate label {
	margin: 0;
	color: var(--stm-field-line);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: color .3s ease;
}

.stm-rate label:hover,
.stm-rate label:hover ~ label,
.stm-rate input:checked ~ label {
	color: var(--stm-accent);
}

.stm-rate input:focus-visible + label {
	outline: 2px solid var(--stm-link);
	outline-offset: 2px;
}

.stm-rate__word {
	order: -1;
	margin-left: 15px;
	color: var(--stm-muted);
	font-weight: 500;
}

.stm-upload {
	display: flex;
	align-items: center;
	gap: 15px;
}

.stm-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-top: 10px;
}

.stm-form__note {
	color: var(--stm-muted);
	font-size: 12px;
}

.stm-alert {
	margin-bottom: 20px;
	padding: 15px 20px;
	border-radius: var(--stm-radius);
	color: var(--stm-ink);
	font-weight: 500;
}

.stm-alert--success {
	background: rgba(39, 174, 96, .1);
	box-shadow: inset 4px 0 0 #27ae60;
}

.stm-alert--danger {
	background: rgba(235, 87, 87, .1);
	box-shadow: inset 4px 0 0 #eb5757;
}

/* ----------------------------------------------------- left/right column */
/* = .rm-column-box / .rm-column-title */

#column-left .stm,
#column-right .stm {
	--stm-pad: 20px;
	background: var(--stm-card);
}

#column-left .stm--floating,
#column-right .stm--floating {
	background: none;
}

#column-left .stm-head,
#column-right .stm-head {
	display: block;
	margin: 0;
}

#column-left .stm-heading,
#column-right .stm-heading {
	padding: 20px;
	background: var(--stm-head);
	color: var(--stm-ink);
	font-size: 18px;
	line-height: 22px;
	text-align: center;
	letter-spacing: .3px;
	text-transform: uppercase;
}

#column-left .stm-heading > span,
#column-right .stm-heading > span {
	display: inline;
	padding: 0;
	border: 0;
}

#column-left .stm-head__rating,
#column-right .stm-head__rating {
	justify-content: center;
	padding: 15px 20px 0;
}

#column-left .stm-grid,
#column-right .stm-grid,
#column-left .stm-track,
#column-right .stm-track {
	--stm-cols: 1;
}

#column-left .stm-masonry,
#column-right .stm-masonry {
	column-count: 1;
}

#column-left .stm-card,
#column-right .stm-card {
	box-shadow: inset 0 -1px 0 var(--stm-line);
}

#column-left .stm-foot,
#column-right .stm-foot {
	margin: 0;
	padding: 20px;
}

#column-left .stm-foot .stm-btn,
#column-right .stm-foot .stm-btn {
	flex: 1 1 100%;
}

/* --------------------------------------------------------------- preview */

.stm-preview {
	display: block;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 30px;
	background: #f9f9fc;
}

/* the theme sets html, body { min-height: 100vh }: the iframe could never shrink */
html:has(> body.stm-preview) {
	height: auto;
	min-height: 0;
}

.stm-preview .stm {
	margin-bottom: 0;
}

.stm-preview--floating {
	min-height: 600px;
}

/* ------------------------------------------------------------ responsive */
/* theme breakpoints: 575 / 767 / 991 */

@media (max-width: 991px) {
	.stm-masonry {
		column-count: min(var(--stm-cols), 2);
	}

	.stm-track {
		grid-auto-columns: calc((100% - var(--stm-gap)) / 2);
	}

	.stm-badge {
		grid-template-columns: auto 1fr;
	}

	.stm-badge__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	:root {
		--stm-pad: 20px;
	}

	.stm-nav {
		display: none;
	}

	.stm-quote__text {
		font-size: 16px;
		line-height: 26px;
	}

	.stm-foot .stm-btn,
	.stm-badge__actions .stm-btn {
		flex: 1 1 100%;
	}

	.stm-preview {
		padding: 20px;
	}
}

@media (max-width: 575px) {
	.stm-btn {
		height: 48px;
	}

	.stm-masonry,
	.stm--page .stm-masonry {
		column-count: 1;
	}

	.stm-grid,
	.stm-grid--page {
		grid-template-columns: 1fr;
	}

	/* = .rm-last-reviews on phones: separate rounded cards */
	.stm-track {
		--stm-gap: 15px;
		grid-auto-columns: 86%;
	}

	.stm-slide > .stm-card {
		border-radius: var(--stm-radius-ui);
		box-shadow: none;
	}

	.stm-badge {
		grid-template-columns: 1fr;
	}

	.stm--floating {
		bottom: 12px;
	}

	.stm--pos-right { right: 12px; }
	.stm--pos-left { left: 12px; }

	.stm-float__panel {
		max-width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stm *,
	.stm *::before,
	.stm-modal,
	.stm-modal * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
