/**
 * QR Code Generator — ShoutingNow yellow/blue theme.
 */

.sn-qr {
	--sn-qr-primary: #f5c518;
	--sn-qr-primary-hover: #e0b310;
	--sn-qr-secondary: #2b7ddb;
	--sn-qr-secondary-hover: #1f6bc4;
	--sn-qr-surface: #f8fafc;
	--sn-qr-border: #dbeafe;
	--sn-qr-text: #0f172a;
	--sn-qr-muted: #64748b;
	--sn-ci-input-border: #ced4da;
	padding: 1rem 1rem 1.5rem;
}

@media (min-width: 640px) {
	.sn-qr {
		padding: 1.25rem 1.5rem 2rem;
	}
}

.sn-qr-types {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: 0.5rem;
	margin-bottom: 1rem;
}

@media (max-width: 1023px) {
	.sn-qr-types {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.sn-qr-types {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sn-qr-type-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
	width: 100%;
	min-height: 4.25rem;
	padding: 0.6rem 0.35rem;
	border: 1px solid var(--sn-qr-border);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--sn-qr-text);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}

.sn-qr-type-btn:hover {
	border-color: var(--sn-qr-secondary);
}

.sn-qr-type-btn.is-active {
	border-color: var(--sn-qr-secondary);
	background: #eff6ff;
	box-shadow: inset 0 0 0 1px var(--sn-qr-secondary);
	color: var(--sn-qr-secondary);
}

.sn-qr-type-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 0.45rem;
	background: #f8fafc;
	color: var(--sn-qr-secondary);
}

.sn-qr-type-btn.is-active .sn-qr-type-btn__icon {
	background: #fff;
}

.sn-qr-type-btn__svg {
	width: 1.15rem;
	height: 1.15rem;
}

.sn-qr-type-btn__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sn-qr-layout {
	display: grid;
	gap: 1rem;
}

@media (min-width: 1024px) {
	.sn-qr-layout {
		grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
		align-items: start;
	}
}

.sn-qr-step {
	background: #fff;
	border: 1px solid var(--sn-qr-border);
	border-radius: 0.85rem;
	margin-bottom: 1rem;
	box-shadow: 0 1px 3px rgb(15 23 42 / 6%);
}

.sn-qr-sidebar .sn-qr-step {
	margin-bottom: 0;
}

@media (min-width: 1024px) {
	.sn-qr-sidebar {
		position: sticky;
		top: 1rem;
	}
}

.sn-qr-step__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--sn-qr-border);
}

.sn-qr-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 999px;
	background: var(--sn-qr-secondary);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
}

.sn-qr-step__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--sn-qr-text);
	flex: 1;
}

.sn-qr-reset {
	margin-left: auto;
	border: 0;
	background: transparent;
	color: var(--sn-qr-secondary);
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

.sn-qr-step__body {
	padding: 1rem;
}

.sn-qr-field {
	display: block;
	margin-bottom: 0.85rem;
}

.sn-qr-field--compact {
	margin-bottom: 0;
}

.sn-qr-field__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sn-qr-text);
	margin-bottom: 0.35rem;
}

.sn-qr-field__hint {
	font-size: 0.78rem;
	color: var(--sn-qr-muted);
	margin: -0.35rem 0 0.75rem;
}

.sn-qr-map-workspace {
	display: grid;
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 720px) {
	.sn-qr-map-workspace {
		grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
	}
}

.sn-qr-map-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sn-qr-map-fields .sn-qr-field {
	margin-bottom: 0.75rem;
}

.sn-qr-map-fields .sn-qr-field__hint {
	margin: 0;
}

.sn-qr-map-view {
	min-height: 280px;
}

.sn-qr-map-canvas {
	width: 100%;
	min-height: 280px;
	height: 100%;
	border: 1px solid var(--sn-qr-border);
	border-radius: 0.65rem;
	overflow: hidden;
	background: #e2e8f0;
	z-index: 0;
}

.sn-qr-map-canvas .leaflet-control-zoom a {
	color: #0f172a;
}

.sn-qr-input,
.sn-qr-textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 0.55rem;
	padding: 0.55rem 0.7rem;
	font-size: 0.9rem;
	color: var(--sn-qr-text);
	background: #fff;
}

.sn-qr-input:focus,
.sn-qr-textarea:focus {
	outline: 2px solid rgb(43 125 219 / 35%);
	border-color: var(--sn-qr-secondary);
}

.sn-qr-input--hex {
	max-width: 7rem;
	font-family: ui-monospace, monospace;
	font-size: 0.82rem;
}

.sn-qr-textarea {
	min-height: 5rem;
	resize: vertical;
}

.sn-qr-char-count {
	display: block;
	text-align: right;
	font-size: 0.75rem;
	color: var(--sn-qr-muted);
	margin-top: 0.25rem;
}

.sn-qr-field-row {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.sn-qr-field-row--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sn-qr-upload {
	display: block;
	margin-bottom: 0.75rem;
}

.sn-qr-upload__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.7rem 1rem;
	border: 2px dashed var(--sn-qr-secondary);
	border-radius: 0.65rem;
	background: #eff6ff;
	color: var(--sn-qr-secondary);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
}

.sn-qr-upload__btn:hover {
	background: #dbeafe;
}

.sn-qr-upload--logo {
	margin-bottom: 0.65rem;
}

.sn-qr-upload__btn--outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	padding: 0.7rem 1rem;
	border: 2px solid var(--sn-qr-secondary);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--sn-qr-secondary);
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
}

.sn-qr-upload__btn--outline:hover {
	background: #eff6ff;
}

.sn-qr-upload__icon {
	flex-shrink: 0;
}

.sn-qr-info {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.78rem;
	color: var(--sn-qr-muted);
	background: var(--sn-qr-surface);
	border: 1px solid var(--sn-qr-border);
	border-radius: 0.55rem;
	padding: 0.6rem 0.7rem;
	margin: 0 0 1rem;
}

.sn-qr-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--sn-qr-secondary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	flex-shrink: 0;
}

.sn-qr-panel-title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--sn-qr-text);
}

.sn-qr-logo-preview {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding: 0.65rem;
	border: 1px solid var(--sn-qr-border);
	border-radius: 0.55rem;
	background: #fff;
}

.sn-qr-logo-preview__img {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: contain;
	border-radius: 0.35rem;
	background: var(--sn-qr-surface);
}

.sn-qr-notice--logo {
	margin-bottom: 1rem;
}

.sn-qr-thumb-grid--logos .sn-qr-thumb {
	width: 3.25rem;
	height: 3.25rem;
	padding: 0.35rem;
}

.sn-qr-thumb__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.sn-qr-thumb__logo img,
.sn-qr-thumb__logo svg {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sn-qr-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--sn-qr-text);
	margin-bottom: 0.75rem;
}

.sn-qr-check--switch input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--sn-qr-secondary);
}

.sn-qr-notice {
	font-size: 0.8rem;
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 0.5rem;
	padding: 0.55rem 0.7rem;
	margin-top: 0.5rem;
}

.sn-qr-mode-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.sn-qr-mode-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 5.25rem;
	padding: 0.85rem 1rem;
	border: 2px solid var(--sn-qr-border);
	border-radius: 0.75rem;
	background: #fff;
	color: var(--sn-qr-text);
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sn-qr-mode-card__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sn-qr-mode-card__radio {
	width: 1rem;
	height: 1rem;
	border: 2px solid #94a3b8;
	border-radius: 50%;
	flex-shrink: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sn-qr-mode-card__label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: inherit;
	line-height: 1.25;
}

.sn-qr-mode-card.is-active:not(.sn-qr-mode-card--logo) {
	border-color: var(--sn-qr-secondary);
	background: #eff6ff;
	box-shadow: 0 2px 10px rgb(43 125 219 / 12%);
}

.sn-qr-mode-card.is-active:not(.sn-qr-mode-card--logo) .sn-qr-mode-card__radio {
	border-color: var(--sn-qr-secondary);
	background: radial-gradient(circle, var(--sn-qr-secondary) 0%, var(--sn-qr-secondary) 42%, transparent 48%);
}

.sn-qr-mode-card--logo.is-active {
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #2b7ddb 0%, #1f6bc4 42%, #f5c518 100%) border-box;
	box-shadow: 0 4px 14px rgb(43 125 219 / 18%);
	color: var(--sn-qr-text);
}

.sn-qr-mode-card--logo.is-active .sn-qr-mode-card__radio {
	border-color: #2b7ddb;
	background: radial-gradient(circle, #2b7ddb 0%, #2b7ddb 42%, transparent 48%);
}

.sn-qr-mode-card--logo.is-active .sn-qr-badge {
	background: linear-gradient(135deg, #2b7ddb, #1f6bc4);
	color: #fff;
}

.sn-qr-mode-card__visual {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	gap: 0.35rem;
	margin-top: auto;
	padding-top: 0.65rem;
}

.sn-qr-mode-card__visual--classic span {
	width: 1rem;
	height: 1rem;
	border-radius: 0.15rem;
	background:
		linear-gradient(90deg, #0f172a 38%, transparent 38%, transparent 62%, #0f172a 62%) 0 0 / 100% 33%,
		linear-gradient(90deg, #0f172a 38%, transparent 38%, transparent 62%, #0f172a 62%) 0 50% / 100% 33%,
		linear-gradient(90deg, #0f172a 38%, transparent 38%, transparent 62%, #0f172a 62%) 0 100% / 100% 33%;
	background-repeat: no-repeat;
	opacity: 0.72;
}

.sn-qr-brand-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	flex-shrink: 0;
}

.sn-qr-brand-chip__svg {
	width: 0.85rem;
	height: 0.85rem;
	color: #fff;
}

.sn-qr-brand-chip--youtube { background: #ff0000; }
.sn-qr-brand-chip--facebook { background: #1877f2; }
.sn-qr-brand-chip--instagram {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.sn-qr-brand-chip--linkedin { background: #0a66c2; }
.sn-qr-brand-chip--whatsapp { background: #25d366; }
.sn-qr-brand-chip--x { background: #0d0d0d; }

.sn-qr-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.35rem;
	border-radius: 0.25rem;
	background: var(--sn-qr-primary);
	color: #0f172a;
	font-size: 0.62rem;
	font-weight: 800;
	vertical-align: middle;
}

.sn-qr-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.sn-qr-tab {
	padding: 0.4rem 0.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--sn-qr-surface);
	color: var(--sn-qr-muted);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.sn-qr-tab.is-active {
	background: var(--sn-qr-secondary);
	color: #fff;
}

.sn-qr-subhead {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--sn-qr-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 0.5rem;
}

.sn-qr-thumb-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.5rem;
}

.sn-qr-thumb-scroll {
	margin-bottom: 1rem;
}

.sn-qr-view-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 0;
	background: transparent;
	color: var(--sn-qr-secondary);
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0.25rem 0;
	text-decoration: underline;
}

.sn-qr-view-more[hidden] {
	display: none;
}

.sn-qr-thumb {
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 2px solid #e2e8f0;
	border-radius: 0.5rem;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}

.sn-qr-thumb.is-active {
	border-color: var(--sn-qr-secondary);
	box-shadow: 0 0 0 1px var(--sn-qr-secondary);
}

.sn-qr-thumb__swatch {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--bg);
	position: relative;
	overflow: hidden;
}

.sn-qr-thumb__swatch::before,
.sn-qr-thumb__swatch::after {
	content: '';
	position: absolute;
	inset: 18% 18% 18% 18%;
	border-radius: 2px;
}

.sn-qr-thumb__swatch::before {
	background: var(--dot);
	opacity: 0.92;
}

.sn-qr-thumb__swatch::after {
	width: 28%;
	height: 28%;
	inset: auto 12% 12% auto;
	background: var(--corner);
	border-radius: 3px;
}

.sn-qr-thumb__theme--birthday {
	background: linear-gradient(135deg, #fdf2f8 0%, #fffbeb 100%);
}

.sn-qr-thumb__theme--wedding::before {
	border-radius: 50% 50% 2px 2px;
}

.sn-qr-thumb__theme--christmas {
	background: repeating-linear-gradient(45deg, #f0fdf4, #f0fdf4 4px, #fff 4px, #fff 8px);
}

.sn-qr-thumb__theme--valentine {
	background: radial-gradient(circle at 30% 30%, #fda4af 0%, #fff1f2 55%);
}

.sn-qr-thumb__theme--halloween {
	background: linear-gradient(180deg, #fff7ed 60%, #1c1917 60%);
}

.sn-qr-thumb__theme--graduation {
	background: linear-gradient(135deg, #eff6ff 0%, #fef9c3 100%);
}

.sn-qr-thumb__theme--sunset {
	background: linear-gradient(160deg, #fff7ed, #fde68a);
}

.sn-qr-thumb__theme--ocean {
	background: linear-gradient(160deg, #e0f2fe, #bae6fd);
}

.sn-qr-thumb__theme--forest {
	background: linear-gradient(160deg, #dcfce7, #bbf7d0);
}

.sn-qr-thumb__theme--lavender {
	background: linear-gradient(160deg, #ede9fe, #f5f3ff);
}

.sn-qr-thumb__theme--coral {
	background: linear-gradient(160deg, #ffe4e6, #fff1f2);
}

.sn-qr-thumb__theme--inverted {
	background: #0f172a;
}

.sn-qr-thumb__theme--neon {
	background: #0f172a;
	box-shadow: inset 0 0 12px rgb(34 211 238 / 35%);
}

.sn-qr-thumb__theme--pastel {
	background: linear-gradient(135deg, #fdf4ff, #e0e7ff);
}

.sn-qr-thumb__theme--retail {
	background: linear-gradient(180deg, #fff 70%, #fee2e2 70%);
}

.sn-qr-thumb__none {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.25rem;
	color: #dc2626;
}

.sn-qr-thumb__frame {
	display: block;
	width: 70%;
	height: 70%;
	margin: 15%;
	border: 2px solid var(--sn-qr-secondary);
}

.sn-qr-thumb__frame--rounded {
	border-radius: 0.35rem;
}

.sn-qr-thumb__frame--scan-bottom {
	border-bottom-width: 6px;
	border-bottom-color: var(--sn-qr-primary);
}

.sn-qr-thumb__frame--scan-bold-bottom {
	border-bottom: 8px solid var(--sn-qr-secondary);
}

.sn-qr-thumb__frame--scan-top {
	border-top: 6px solid var(--sn-qr-secondary);
}

.sn-qr-thumb__frame--thick {
	border-width: 4px;
}

.sn-qr-thumb__frame--dashed {
	border-style: dashed;
}

.sn-qr-thumb__frame--corner-brackets {
	border: 0;
	box-shadow:
		inset 8px 8px 0 0 var(--sn-qr-secondary),
		inset -8px -8px 0 0 var(--sn-qr-secondary);
}

.sn-qr-thumb__frame--shadow-card {
	border-radius: 0.35rem;
	box-shadow: 0 4px 10px rgb(15 23 42 / 15%);
}

.sn-qr-thumb__frame--polaroid {
	border: 0;
	background: #fff;
	box-shadow: 0 0 0 2px #e2e8f0;
	border-bottom: 8px solid #f1f5f9;
}

.sn-qr-thumb__frame--ticket {
	border-radius: 2px;
	border-style: dashed;
}

.sn-qr-thumb__frame--speech {
	border-radius: 0.35rem 0.35rem 0.15rem;
}

.sn-qr-thumb__frame--phone {
	border-radius: 0.45rem;
	border-width: 3px;
}

.sn-qr-thumb__frame--circle,
.sn-qr-thumb__frame--badge {
	border-radius: 50%;
}

.sn-qr-thumb__frame--badge {
	border-width: 3px;
	box-shadow: inset 0 0 0 2px #eff6ff;
}

.sn-qr-thumb__frame--ribbon-bottom {
	border-bottom: 7px solid var(--sn-qr-primary);
}

.sn-qr-thumb__frame--ribbon-top {
	border-top: 7px solid var(--sn-qr-secondary);
}

.sn-qr-thumb__frame--sn-accent {
	border-bottom: 7px solid var(--sn-qr-secondary);
}

.sn-qr-thumb__frame--sn-yellow-bar {
	border-top: 7px solid var(--sn-qr-primary);
}

.sn-qr-thumb__shape {
	display: block;
	width: 72%;
	height: 72%;
	margin: 14%;
	background:
		linear-gradient(90deg, var(--sn-qr-text) 33%, transparent 33%, transparent 66%, var(--sn-qr-text) 66%) 0 0 / 100% 33%,
		linear-gradient(90deg, var(--sn-qr-text) 33%, transparent 33%, transparent 66%, var(--sn-qr-text) 66%) 0 50% / 100% 33%,
		linear-gradient(90deg, var(--sn-qr-text) 33%, transparent 33%, transparent 66%, var(--sn-qr-text) 66%) 0 100% / 100% 33%;
	background-repeat: no-repeat;
	opacity: 0.85;
}

.sn-qr-thumb__shape--rounded {
	border-radius: 0.2rem;
	filter: blur(0.2px);
}

.sn-qr-thumb__shape--dots {
	background: radial-gradient(circle, var(--sn-qr-text) 38%, transparent 40%) 0 0 / 33% 33%;
}

.sn-qr-thumb__shape--classy,
.sn-qr-thumb__shape--classy-rounded {
	background: var(--sn-qr-text);
	clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%);
}

.sn-qr-thumb__shape--extra-rounded {
	border-radius: 0.45rem;
	background: var(--sn-qr-text);
	opacity: 0.75;
}

.sn-qr-thumb__eye {
	display: block;
	width: 70%;
	height: 70%;
	margin: 15%;
	border: 2px solid var(--sn-qr-secondary);
	position: relative;
}

.sn-qr-thumb__eye--dot.sn-qr-thumb__eye--corner-square,
.sn-qr-thumb__eye--extra-rounded.sn-qr-thumb__eye--corner-square,
.sn-qr-thumb__eye--rounded.sn-qr-thumb__eye--corner-square {
	border-radius: 0.35rem;
}

.sn-qr-thumb__eye--dot.sn-qr-thumb__eye--corner-square {
	border-radius: 50%;
}

.sn-qr-thumb__eye--corner-dot::after {
	content: '';
	position: absolute;
	width: 36%;
	height: 36%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--sn-qr-secondary);
}

.sn-qr-thumb__eye--dot.sn-qr-thumb__eye--corner-dot::after {
	border-radius: 50%;
}

.sn-qr-thumb__eye--rounded.sn-qr-thumb__eye--corner-dot::after,
.sn-qr-thumb__eye--extra-rounded.sn-qr-thumb__eye--corner-dot::after {
	border-radius: 0.2rem;
}

.sn-qr-thumb__eye--dots.sn-qr-thumb__eye--corner-dot::after {
	width: 24%;
	height: 24%;
	border-radius: 50%;
	box-shadow: 8px 0 0 var(--sn-qr-secondary);
}

.sn-qr-color-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sn-qr-color-wrap input[type="color"] {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid #cbd5e1;
	border-radius: 0.35rem;
	cursor: pointer;
}

.sn-qr-range-wrap {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.sn-qr-range-wrap input[type="range"] {
	flex: 1;
	accent-color: var(--sn-qr-secondary);
}

.sn-qr-link-btn {
	border: 0;
	background: transparent;
	color: var(--sn-qr-secondary);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 0.75rem;
}

.sn-qr-preview-wrap {
	padding: 1rem;
	display: flex;
	justify-content: center;
}

.sn-qr-preview {
	width: 100%;
	max-width: 280px;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sn-qr-surface);
	border-radius: 0.65rem;
	border: 1px dashed #cbd5e1;
}

.sn-qr-preview.is-empty {
	opacity: 0.45;
}

.sn-qr-preview canvas,
.sn-qr-preview svg {
	max-width: 100%;
	height: auto;
}

.sn-qr-export-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	padding: 0 1rem 1rem;
}

.sn-qr-download {
	display: block;
	width: calc(100% - 2rem);
	margin: 0 1rem 0.75rem;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 0.65rem;
	background: var(--sn-qr-primary);
	color: #0f172a;
	font-size: 0.95rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s;
}

.sn-qr-download:hover:not(:disabled) {
	background: var(--sn-qr-primary-hover);
}

.sn-qr-download:disabled {
	background: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
}

.sn-qr-legal {
	font-size: 0.72rem;
	color: var(--sn-qr-muted);
	text-align: center;
	padding: 0 1rem 1rem;
	margin: 0;
}

.sn-qr-error {
	margin-top: 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: 0.5rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 0.85rem;
}

.sn-qr-error[hidden] {
	display: none;
}

.sn-qr-panel[hidden],
.sn-qr-tab-panel[hidden] {
	display: none;
}
