.mixy-wordmark {
	display: inline-flex;
	gap: 0;
}

.mixy-info-cards {
	position: relative;
	z-index: 20;
	width: 100%;
}

.mixy-info-cards__hint {
	position: absolute;
	top: 80%;
	right: -10%;
	z-index: 20;
	width: 211px;
	height: 211px;
	pointer-events: none;
}

.mixy-info-cards__track {
	position: relative;
	z-index: 20;
	display: flex;
	gap: 16px;
	width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	touch-action: pan-x;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.mixy-info-cards__track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.mixy-info-card {
	flex: 0 0 auto;
	width: fit-content;
	scroll-snap-align: start;
}

.mixy-content-layer {
	position: relative;
	z-index: 30;
}

.mixy-header-scrolled {
	background: color-mix(in oklab, var(--foreground) 20%, transparent);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
}

.mixy-language {
	position: relative;
}

.mixy-language-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	min-width: 190px;
	padding: 8px;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 20px;
	background: var(--foreground);
	box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
}

.mixy-language-menu a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 12px;
	border-radius: 12px;
	color: rgb(255 255 255 / 70%);
	white-space: nowrap;
}

.mixy-language-menu a:hover,
.mixy-language-menu a[aria-current='true'] {
	background: rgb(255 255 255 / 8%);
	color: #fff;
}

.mixy-mobile-only {
	display: flex;
}

.mixy-mobile-drawer[hidden],
.mixy-modal[hidden],
.mixy-modal__state[hidden],
[data-modal-data][hidden],
.mixy-language-menu[hidden],
.mixy-toast[hidden] {
	display: none !important;
}

.mixy-tablet-up,
.mixy-desktop-nav,
.mixy-laptop-menu {
	display: none;
}

.mixy-mobile-drawer,
.mixy-modal {
	position: fixed;
	inset: 0;
	z-index: 70;
}

.mixy-mobile-menu-trigger svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.mixy-mobile-drawer__backdrop,
.mixy-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgb(0 0 0 / 55%);
	cursor: pointer;
}

.mixy-mobile-drawer__backdrop {
	background: rgb(0 0 0 / 50%);
	opacity: 0;
	transition: opacity 200ms ease-out;
}

.mixy-mobile-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-height: 100vh;
	max-height: 100dvh;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
	transform: translate3d(0, calc(-100% - 8px), 0);
	transition: transform 500ms cubic-bezier(.32, .72, 0, 1);
	will-change: transform;
}

.mixy-mobile-drawer__panel::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.mixy-mobile-drawer__header,
.mixy-mobile-drawer__body {
	flex: none;
}

.mixy-mobile-drawer__compact-support {
	display: none;
}

.mixy-mobile-drawer__actions {
	gap: 18px;
}

.mixy-nav-link.is-active {
	color: #fff;
}

.mixy-laptop-menu {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 20;
	width: 100%;
	margin-bottom: 16px;
	padding: 0 24px;
	pointer-events: none;
}

.mixy-laptop-menu.is-at-container-end {
	position: absolute;
	padding: 0 16px;
}

.mixy-laptop-menu__surface {
	border-radius: 24px;
	background: color-mix(in oklab, var(--foreground) 20%, transparent);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	pointer-events: auto;
}

.mixy-laptop-menu.is-at-container-end .mixy-laptop-menu__surface {
	background: var(--background);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.mixy-laptop-menu__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 24px;
}

.mixy-laptop-menu__nav a {
	color: rgb(255 255 255 / 70%);
	white-space: nowrap;
	cursor: pointer;
	transition: color 150ms ease-out;
}

.mixy-laptop-menu__nav a:hover,
.mixy-laptop-menu__nav a.is-active {
	color: #fff;
}

.mixy-mobile-drawer.is-open .mixy-mobile-drawer__backdrop {
	opacity: 1;
}

.mixy-mobile-drawer.is-open .mixy-mobile-drawer__panel {
	transform: translate3d(0, 0, 0);
}

.mixy-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.mixy-modal__content {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding: 32px;
	border: 1px solid rgb(255 255 255 / 10%);
	box-shadow: 0 24px 80px rgb(0 0 0 / 50%);
}

.mixy-modal__content::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.mixy-modal__limits {
	margin: 0;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.428571;
	text-align: center;
}

.mixy-modal__close {
	position: absolute;
	top: 32px;
	right: 32px;
	z-index: 2;
	display: flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.mixy-modal__close svg {
	display: block;
	width: 32px;
	height: 32px;
}

.mixy-modal__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	padding-top: 32px;
}

.mixy-modal__action {
	display: inline-flex;
	height: 40px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 24px;
	border: 0;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s;
}

.mixy-modal__action--secondary {
	background: var(--foreground);
	color: var(--secondary-foreground);
}

.mixy-modal__action--secondary:hover {
	background: color-mix(in oklab, var(--secondary) 80%, transparent);
}

.mixy-modal__action--muted {
	background: var(--primary-foreground);
	color: var(--primary);
}

.mixy-modal__action--muted:hover {
	background: color-mix(in oklab, var(--primary-foreground) 90%, transparent);
}

.mixy-modal__state {
	display: flex;
	min-height: 260px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.mixy-qr {
	position: relative;
	width: min(360px, 82vw);
	aspect-ratio: 1;
	padding: 16px;
	border-radius: 24px;
	background: #fff;
}

.mixy-qr canvas,
.mixy-qr > img:not(.mixy-qr__logo) {
	display: block;
	width: 100% !important;
	height: 100% !important;
	image-rendering: pixelated;
}

.mixy-qr__logo-box {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 20px;
	background: #fff;
	padding: 3.5%;
}

.mixy-qr__logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mixy-status-panel {
	display: flex;
	width: 100%;
	min-height: 88px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
}

.mixy-loader {
	width: 34px;
	height: 34px;
	border: 3px solid rgb(255 255 255 / 20%);
	border-top-color: var(--primary-foreground);
	border-radius: 50%;
	animation: mixy-spin 0.8s linear infinite;
}

.mixy-loader.is-stopped {
	display: none;
}

.mixy-status-title {
	font-size: 20px;
	font-weight: 500;
	white-space: pre-line;
}

.mixy-status-detail {
	max-width: 100%;
	color: rgb(255 255 255 / 65%);
	font-size: 15px;
	word-break: break-all;
}

.mixy-toast {
	--mixy-toast-inset: 16px;
	position: fixed;
	top: var(--mixy-toast-inset);
	left: 50%;
	z-index: 9999;
	width: calc(100% - 32px);
	max-width: 512px;
	padding: 32px 14px;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 16px;
	background: var(--background);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
	color: #fff;
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s, height 0.15s;
	user-select: none;
	will-change: transform, opacity;
}

.mixy-toast[data-state='entering'] {
	transform: translateX(-50%) translateY(calc(-100% - var(--mixy-toast-inset)));
}

.mixy-toast[data-state='closing'] {
	opacity: 0;
	transform: translateX(-50%) translateY(calc(-100% - var(--mixy-toast-inset)));
}

.mixy-toast__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	overflow: hidden;
	font-size: 14px;
	line-height: 20px;
}

.mixy-toast__main,
.mixy-toast__body {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 8px;
}

.mixy-toast__main {
	align-items: center;
}

.mixy-toast__icon svg {
	display: block;
	width: 28px;
	height: 28px;
}

.mixy-toast[data-type='error'] .mixy-toast__icon {
	color: rgb(251 44 54 / 90%);
}

.mixy-toast[data-type='error'] [data-toast-icon='info'],
.mixy-toast:not([data-type='error']) [data-toast-icon='error'] {
	display: none;
}

.mixy-toast__title,
.mixy-toast__description {
	margin: 0;
	text-align: center;
}

.mixy-toast__title {
	font-size: 20px;
	font-weight: 500;
	line-height: 28.5714px;
}

.mixy-toast__description {
	color: rgb(255 255 255 / 60%);
	font-size: 16px;
	line-height: 22.8571px;
}

body.mixy-lock-scroll {
	overflow: hidden;
}

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

@media (max-width: 440px) {
	.mixy-header-support {
		display: none;
	}

	.mixy-mobile-drawer__header-support {
		display: none;
	}

	.mixy-mobile-drawer__compact-support {
		display: block;
	}
}

@media (max-width: 767px) {
	.mixy-modal__content {
		padding: 52px 20px 24px;
	}
}

@media (min-width: 640px) {
	.mixy-toast {
		--mixy-toast-inset: 32px;
		width: calc(100% - 64px);
		border-radius: 24px;
	}

	.mixy-toast__title {
		font-size: 28px;
		line-height: 40px;
	}

	.mixy-toast__description {
		font-size: 18px;
		line-height: 25.7143px;
	}
}

@media (min-width: 768px) {
	.mixy-info-cards {
		max-width: 1024px;
		height: 512px;
	}

	.mixy-info-cards__hint {
		display: none;
	}

	.mixy-info-cards__track {
		position: absolute;
		inset: 0;
		display: block;
		overflow: visible;
	}

	.mixy-info-card {
		width: auto;
	}

	.mixy-mobile-only {
		display: none;
	}

	.mixy-tablet-up {
		display: flex;
	}

	.mixy-laptop-menu {
		display: block;
	}

	.mixy-modal__limits {
		font-size: 24px;
	}

	.mixy-modal__actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mixy-modal__action {
		height: 50px;
		border-radius: 20px;
		font-size: 18px;
	}
}

@media (min-width: 1024px) {
	.mixy-modal__action {
		height: 60px;
		font-size: 20px;
	}
}

@media (min-width: 1321px) {
	.mixy-desktop-nav {
		display: flex;
	}

	.mixy-laptop-menu {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mixy-loader {
		animation-duration: 1.6s;
	}
}
