/*!
 * Shoppable Chat Testimonials — phone carousel and bigger view.
 * Every rule is scoped to .sct-root so theme styles (Astra buttons, links, images) don't leak in.
 * Button colors come from the settings as --sct-btn-bg / --sct-btn-color.
 */

.sct-root,
.sct-root *,
.sct-root *::before,
.sct-root *::after {
	box-sizing: border-box;
}

.sct-root [hidden] {
	display: none !important;
}

.sct-root svg {
	display: block;
	flex: none;
	pointer-events: none;
}

.sct-root button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	text-align: inherit;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
	min-width: 0;
	min-height: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.sct-root img {
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Section and carousel                                               */
/* ------------------------------------------------------------------ */

.sct-section {
	--sct-gap: 28px;
	--sct-w: min(var(--sct-phone-w, 300px), calc(84vh / 2.05));
	position: relative;
	margin: 0 0 2.5em;
}

/* The carousel's scroll area reaches a little above and below the phones (room for their
   shadows), so the title and the dots sit on top of it to stay clickable. */
.sct-head,
.sct-dots {
	position: relative;
	z-index: 2;
}

.sct-head {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	margin: 0 0 1.6em;
}

.sct-section .sct-head__title {
	margin: 0;
}

.sct-section .sct-head__text {
	margin: 0;
	opacity: 0.75;
	line-height: 1.7;
}

@media (min-width: 900px) {
	.sct-head.has-text {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 3em;
	}

	.sct-head.has-text .sct-head__text {
		flex: 0 1 44%;
	}
}

.sct-carousel {
	position: relative;
}

.sct-viewport {
	margin: -18px -8px -34px;
	padding: 18px 8px 34px;
	scroll-padding: 0 8px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sct-viewport::-webkit-scrollbar {
	display: none;
}

.sct-track {
	display: flex;
	gap: var(--sct-gap);
}

.sct-slide {
	flex: 0 0 auto;
	width: var(--sct-w);
	scroll-snap-align: start;
}

/* Centre the phones when they all fit; scroll normally when they don't. */
.sct-slide:first-child {
	margin-inline-start: auto;
}

.sct-slide:last-child {
	margin-inline-end: auto;
}

@media (max-width: 640px) {
	.sct-section {
		--sct-gap: 16px;
		--sct-w: min(80vw, calc(88vh / 2.05), 360px);
	}

	.sct-slide {
		scroll-snap-align: center;
	}
}

.sct-root .sct-arrow,
.sct-root .sct-arrow:hover,
.sct-root .sct-arrow:focus,
.sct-root .sct-arrow:active {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}

.sct-root .sct-arrow:hover {
	transform: scale(1.06);
}

.sct-root .sct-arrow:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.sct-root .sct-arrow svg {
	width: 20px;
	height: 20px;
}

.sct-root .sct-arrow--prev {
	inset-inline-start: -6px;
}

.sct-root .sct-arrow--next {
	inset-inline-end: -6px;
}

[dir="rtl"] .sct-root .sct-arrow svg,
[dir="rtl"] .sct-root .sct-chat-head__back svg,
[dir="rtl"] .sct-root .sct-products__arrow svg,
[dir="rtl"] .sct-viewer__nav svg {
	transform: scaleX(-1);
}

@media (hover: none), (max-width: 640px) {
	.sct-root .sct-arrow {
		display: none !important;
	}
}

.sct-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
}

.sct-root .sct-dot,
.sct-root .sct-dot:hover,
.sct-root .sct-dot:focus {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.18);
	transition: width 0.25s ease, background-color 0.25s ease;
}

.sct-root .sct-dot.is-active {
	width: 22px;
	background: var(--sct-btn-bg, #111);
}

.sct-root .sct-dot:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Phone                                                              */
/* ------------------------------------------------------------------ */

.sct-phone {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 2.05;
	padding: calc(var(--sct-w) * 0.034);
	border-radius: calc(var(--sct-w) * 0.155);
	background: var(--sct-frame, #111);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.08),
		0 0 0 1.5px rgba(0, 0, 0, 0.28),
		0 18px 28px -16px rgba(0, 0, 0, 0.45);
	color: #111;
	font-size: 13px;
	line-height: 1.35;
	text-align: start;
}

@supports not (aspect-ratio: 1 / 1) {
	.sct-phone {
		height: calc(var(--sct-w) * 2.05);
	}
}

/* Side buttons. */
.sct-phone::before,
.sct-phone::after {
	content: "";
	position: absolute;
	width: 3px;
	border-radius: 3px;
	background: var(--sct-frame, #111);
	filter: brightness(0.75);
}

.sct-phone::before {
	top: 24%;
	right: -3px;
	height: 13%;
}

.sct-phone::after {
	top: 19%;
	left: -3px;
	height: 16%;
}

.sct-phone__screen {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: calc(var(--sct-w) * 0.125);
	background: #fff;
	isolation: isolate;
}

.sct-status {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	height: 38px;
	padding: 2px 20px 0 26px;
	color: #111;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.sct-status--island-only {
	height: 36px;
}

.sct-status__island {
	position: absolute;
	top: 9px;
	left: 50%;
	width: 31%;
	height: 22px;
	border-radius: 12px;
	background: #000;
	transform: translateX(-50%);
}

.sct-status__icons svg {
	width: 58px;
	height: 11px;
}

/* Chat header */

.sct-chat-head {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 8px 6px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	background: #fff;
}

.sct-root .sct-chat-head__back,
.sct-root .sct-chat-head__back:hover,
.sct-root .sct-chat-head__back:focus,
.sct-root .sct-chat-head__back:active {
	display: flex;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sct-btn-bg, #111);
	box-shadow: none;
}

.sct-root .sct-chat-head__back:focus-visible {
	outline: 2px solid var(--sct-btn-bg, #111);
	outline-offset: 2px;
}

.sct-chat-head__back svg {
	width: 22px;
	height: 22px;
}

.sct-avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sct-avatar, #8e5a9b);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.sct-avatar--anonymous {
	background: #e7e7ea;
	color: #a1a1aa;
}

.sct-avatar--anonymous svg {
	width: 22px;
	height: 22px;
}

.sct-chat-head__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.sct-chat-head__name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sct-chat-head__sub {
	display: flex;
	align-items: center;
	gap: 3px;
	overflow: hidden;
	color: #15803d;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

.sct-root .sct-badge {
	width: 13px;
	height: 13px;
	color: #16a34a;
}

.sct-root .sct-expand,
.sct-root .sct-expand:hover,
.sct-root .sct-expand:focus,
.sct-root .sct-expand:active {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f1f3;
	color: #333;
	box-shadow: none;
}

.sct-root .sct-expand:hover {
	background: #e4e4e7;
}

.sct-root .sct-expand:focus-visible {
	outline: 2px solid var(--sct-btn-bg, #111);
	outline-offset: 1px;
}

.sct-root .sct-expand svg {
	width: 15px;
	height: 15px;
}

/* Screenshots */

.sct-chat-wrap {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

.sct-chat {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sct-chat::-webkit-scrollbar {
	width: 4px;
}

.sct-chat::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.2);
}

.sct-chat:focus {
	outline: none;
}

.sct-chat:focus-visible {
	outline: 2px solid var(--sct-btn-bg, #111);
	outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
	.sct-section[data-sct-enlarge="1"] .sct-chat {
		cursor: zoom-in;
	}
}

.sct-root .sct-shot {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-drag: none;
	user-select: none;
}

.sct-chat__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 34px;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.sct-chat-wrap.can-scroll:not(.at-end) .sct-chat__fade {
	opacity: 1;
}

.sct-chat__hint {
	position: absolute;
	bottom: 10px;
	left: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-left: -15px;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.72);
	color: #fff;
	pointer-events: none;
	animation: sct-bob 1.6s ease-in-out infinite;
}

.sct-chat__hint svg {
	width: 18px;
	height: 18px;
}

.sct-chat-wrap.can-scroll:not(.is-scrolled) .sct-chat__hint {
	display: flex;
}

@keyframes sct-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(4px);
	}
}

/* Bottom: product card or message bar */

.sct-bottom {
	position: relative;
	flex: none;
	padding: 8px 8px 18px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
}

.sct-home {
	position: absolute;
	bottom: 6px;
	left: 50%;
	width: 34%;
	height: 4px;
	border-radius: 4px;
	background: #111;
	opacity: 0.85;
	transform: translateX(-50%);
}

.sct-compose {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sct-compose__field {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 18px;
	background: #f1f1f3;
	color: #9a9aa2;
	font-size: 13px;
}

.sct-compose__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sct-btn-bg, #111);
	color: var(--sct-btn-color, #fff);
}

.sct-compose__icon svg {
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------------ */
/* Product cards                                                      */
/* ------------------------------------------------------------------ */

.sct-products {
	position: relative;
}

.sct-products__stage {
	position: relative;
}

.sct-products.is-multi .sct-products__stage {
	padding: 0 22px;
}

.sct-products__track {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sct-products__track::-webkit-scrollbar {
	display: none;
}

.sct-card {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
	padding: 7px;
	border-radius: 14px;
	background: #f4f4f5;
	color: #111;
	font-size: 12.5px;
	line-height: 1.3;
	text-align: start;
	scroll-snap-align: start;
}

.sct-products.is-multi .sct-card {
	flex-basis: calc(100% - 12px);
}

.sct-card__main {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.sct-root .sct-card__image,
.sct-root .sct-card__image:hover,
.sct-root .sct-card__image:focus {
	display: block;
	flex: none;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.sct-root .sct-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sct-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: 5px;
	min-width: 0;
}

.sct-root .sct-card__name,
.sct-root .sct-card__name:visited,
.sct-root .sct-card__name:hover,
.sct-root .sct-card__name:focus {
	display: -webkit-box;
	overflow: hidden;
	color: #111;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.sct-root .sct-card__name:hover {
	text-decoration: underline;
}

.sct-card__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 6px;
}

.sct-root .sct-card__price {
	flex: 1 1 56px;
	min-width: 0;
	color: #333;
	font-size: 12px;
	line-height: 1.25;
}

.sct-root .sct-card__price .woocommerce-Price-amount,
.sct-root .sct-card__price bdi {
	white-space: nowrap;
}

.sct-root .sct-card__price del {
	margin-inline-end: 3px;
	color: #777;
	font-size: 0.9em;
	opacity: 0.8;
}

.sct-root .sct-card__price ins {
	background: none;
	color: #111;
	font-weight: 700;
	text-decoration: none;
}

.sct-root .sct-card__price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

[dir="rtl"] .sct-root .sct-card__name,
[dir="rtl"] .sct-root .sct-card__price,
[dir="rtl"] .sct-root .sct-chat-head__name {
	text-align: right;
}

.sct-root .sct-card__buy,
.sct-root .sct-card__buy:visited,
.sct-root .sct-card__buy:hover,
.sct-root .sct-card__buy:focus,
.sct-root .sct-card__buy:active {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	margin-inline-start: auto;
	min-height: 30px;
	padding: 6px 13px;
	border: 0;
	border-radius: 8px;
	background: var(--sct-btn-bg, #111);
	color: var(--sct-btn-color, #fff);
	box-shadow: none;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.sct-root .sct-card__buy:hover {
	filter: brightness(1.18);
}

.sct-root .sct-card__buy:focus {
	outline: none;
}

.sct-root .sct-card__buy:focus-visible {
	outline: 2px solid var(--sct-btn-bg, #111);
	outline-offset: 2px;
}

.sct-root .sct-card__buy.is-disabled {
	opacity: 0.45;
	filter: none;
	cursor: not-allowed;
}

.sct-root .sct-card__buy.is-pending {
	opacity: 0.6;
}

.sct-root .sct-card__buy.is-loading {
	opacity: 1;
	cursor: progress;
	pointer-events: none;
}

.sct-root .sct-card__buy.is-loading .sct-card__label {
	visibility: hidden;
}

.sct-card__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	width: 15px;
	height: 15px;
	margin: -7.5px 0 0 -7.5px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sct-spin 0.7s linear infinite;
}

.sct-card__buy.is-loading .sct-card__spinner {
	display: block;
}

@keyframes sct-spin {
	to {
		transform: rotate(360deg);
	}
}

.sct-card__msg {
	margin-top: 5px;
	font-size: 11.5px;
	line-height: 1.35;
}

.sct-card__msg.is-error {
	color: #b42318;
}

.sct-card__msg.is-success {
	color: #067647;
}

.sct-root .sct-card__msg a,
.sct-root .sct-card__msg a:hover,
.sct-root .sct-card__msg a:focus {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

/* Option picker (size, color…) */

.sct-card__options {
	max-height: 170px;
	margin-bottom: 7px;
	padding-bottom: 7px;
	overflow-y: auto;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	overscroll-behavior: contain;
}

.sct-card__options-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 700;
}

.sct-root .sct-card__collapse,
.sct-root .sct-card__collapse:hover,
.sct-root .sct-card__collapse:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.07);
	color: #111;
}

.sct-root .sct-card__collapse svg {
	width: 12px;
	height: 12px;
}

.sct-opt-group + .sct-opt-group {
	margin-top: 7px;
}

.sct-opt-label {
	margin-bottom: 4px;
	color: #555;
	font-size: 11.5px;
}

.sct-opt-label strong {
	color: #111;
}

.sct-opt-list {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.sct-root .sct-opt,
.sct-root .sct-opt:hover,
.sct-root .sct-opt:focus,
.sct-root .sct-opt:active {
	min-height: 26px;
	padding: 4px 10px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	background: #fff;
	color: #111;
	box-shadow: none;
	font-size: 11.5px;
	line-height: 1.2;
}

.sct-root .sct-opt:hover {
	border-color: #111;
}

.sct-root .sct-opt:focus-visible {
	outline: 2px solid #111;
	outline-offset: 1px;
}

.sct-root .sct-opt.is-selected {
	border-color: var(--sct-btn-bg, #111);
	background: var(--sct-btn-bg, #111);
	color: var(--sct-btn-color, #fff);
}

.sct-root .sct-opt:disabled {
	border-color: rgba(0, 0, 0, 0.1);
	color: #a1a1aa;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* Several products: arrows and dots */

.sct-root .sct-products__arrow,
.sct-root .sct-products__arrow:hover,
.sct-root .sct-products__arrow:focus,
.sct-root .sct-products__arrow:active {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e4e4e7;
	color: #111;
	box-shadow: none;
}

.sct-root .sct-products__arrow:disabled {
	opacity: 0.35;
}

.sct-root .sct-products__arrow svg {
	width: 13px;
	height: 13px;
}

.sct-products__arrow--prev {
	inset-inline-start: 0;
}

.sct-products__arrow--next {
	inset-inline-end: 0;
}

.sct-products__dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 6px;
}

.sct-products__dots span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #d4d4d8;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sct-products__dots span.is-active {
	background: #111;
	transform: scale(1.2);
}

/* ------------------------------------------------------------------ */
/* Bigger view                                                        */
/* ------------------------------------------------------------------ */

html.sct-lock,
html.sct-lock body {
	overflow: hidden !important;
}

.sct-viewer {
	--sct-w: min(430px, calc((100vh - 104px) / 2.05));
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99995;
	background: rgba(10, 10, 12, 0.82);
	opacity: 0;
	transition: opacity 0.25s ease;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.sct-viewer.is-open {
	opacity: 1;
}

.sct-viewer__track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sct-viewer__track::-webkit-scrollbar {
	display: none;
}

.sct-viewer__slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 28px 90px;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.sct-viewer .sct-phone {
	flex: none;
	width: var(--sct-w);
	transform: scale(0.96);
	transition: transform 0.3s ease;
}

.sct-viewer.is-open .sct-phone {
	transform: none;
}

.sct-root .sct-viewer__btn,
.sct-root .sct-viewer__btn:hover,
.sct-root .sct-viewer__btn:focus,
.sct-root .sct-viewer__btn:active {
	position: fixed;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	box-shadow: none;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.sct-root .sct-viewer__btn:hover {
	background: rgba(255, 255, 255, 0.26);
}

.sct-root .sct-viewer__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sct-root .sct-viewer__btn:disabled {
	opacity: 0.25;
	cursor: default;
}

.sct-root .sct-viewer__btn svg {
	width: 22px;
	height: 22px;
}

.sct-root .sct-viewer__close {
	top: 18px;
	inset-inline-end: 18px;
}

.sct-root .sct-viewer__prev,
.sct-root .sct-viewer__next {
	top: 50%;
	margin-top: -23px;
}

.sct-root .sct-viewer__prev {
	inset-inline-start: 24px;
}

.sct-root .sct-viewer__next {
	inset-inline-end: 24px;
}

.sct-viewer__count {
	position: fixed;
	bottom: 14px;
	left: 50%;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 13px;
	transform: translateX(-50%);
	pointer-events: none;
}

.sct-viewer .sct-chat {
	cursor: auto;
}

/* The header button of a phone becomes "close" inside the bigger view. */
.sct-viewer .sct-expand svg {
	width: 13px;
	height: 13px;
}

@media (max-width: 767px) {
	.sct-viewer {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.sct-viewer__slide {
		padding: 0;
	}

	.sct-viewer .sct-phone {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		padding: 0;
		border-radius: 0;
		background: #fff;
		box-shadow: none;
		transform: none;
	}

	.sct-viewer .sct-phone::before,
	.sct-viewer .sct-phone::after,
	.sct-viewer .sct-status,
	.sct-viewer .sct-home,
	.sct-root .sct-viewer__close,
	.sct-root .sct-viewer__prev,
	.sct-root .sct-viewer__next {
		display: none;
	}

	.sct-viewer .sct-phone__screen {
		border-radius: 0;
	}

	.sct-viewer .sct-chat-head {
		padding-top: calc(10px + env(safe-area-inset-top, 0px));
	}

	.sct-viewer .sct-bottom {
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	}

	.sct-viewer__count {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sct-root,
	.sct-root * {
		transition: none !important;
		animation: none !important;
	}

	.sct-card__spinner {
		animation: sct-spin 1.2s linear infinite !important;
	}
}

@media print {
	.sct-viewer {
		display: none !important;
	}
}
