/* Editor: click anywhere on preview to select block */
.sfqr-block-editor-target {
	min-height: 48px;
	outline: 1px dashed transparent;
	margin: 0.75rem 0;
	max-width: 100%;
}

.sfqr-block-editor-target:hover {
	outline-color: rgba(59, 130, 246, 0.35);
}

.sfqr-wrap {
	max-width: 100%;
}

.sfqr-figure-wrap {
	display: flex;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.sfqr-figure-wrap--align-left {
	justify-content: flex-start;
}

.sfqr-figure-wrap--align-center {
	justify-content: center;
}

.sfqr-figure-wrap--align-right {
	justify-content: flex-end;
}

.sfqr {
	margin: 0;
	display: inline-block;
	max-width: 100%;
	text-align: center;
	vertical-align: top;
}

.sfqr--layout-border img {
	border: none;
}

.sfqr-actions {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	max-width: 360px;
	width: 100%;
	box-sizing: border-box;
}

.sfqr-actions--row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	max-width: 100%;
}

.sfqr-actions--row .sfqr-btn {
	flex: 1 1 auto;
	min-width: min(100%, 120px);
}

.sfqr-actions--follow-left {
	margin-left: 0;
	margin-right: auto;
}

.sfqr-actions--follow-center {
	margin-left: auto;
	margin-right: auto;
}

.sfqr-actions--follow-right {
	margin-left: auto;
	margin-right: 0;
}

.sfqr-btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	line-height: 1.3;
	transition: filter 0.15s ease, background 0.15s ease;
}

.sfqr-btn--download {
	background: #0f172a;
	color: #fff;
	border: 1px solid #0f172a;
}

.sfqr-btn--download:hover {
	filter: brightness(1.08);
	color: #fff;
}

.sfqr-btn--openlink {
	background: #fff;
	color: #0f172a;
	border: 1px solid #cbd5e1;
}

.sfqr-btn--openlink:hover {
	background: #f8fafc;
	color: #0f172a;
}

.sfqr-btn--copy {
	cursor: pointer;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	background: #f1f5f9;
	color: #0f172a;
	border: 1px solid #cbd5e1;
}

.sfqr-btn--copy:hover {
	filter: brightness(0.98);
}

.sfqr-btn--save-contact {
	background: #059669;
	color: #fff;
	border: 1px solid #047857;
}

.sfqr-btn--save-contact:hover {
	filter: brightness(1.06);
	color: #fff;
}

.sfqr-copy-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.sfqr-copy-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #334155;
}

.sfqr-share-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
	color: #0f172a;
}

.sfqr-copy-hint {
	font-size: 0.72rem;
	line-height: 1.35;
	color: #64748b;
}

.sfqr img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	background: #fff;
	padding: 6px;
	box-sizing: border-box;
	border: 1px solid rgba(15, 23, 42, 0.1);
}

.sfqr-caption {
	margin: 0.5rem 0 0;
	font-size: 0.82rem;
	line-height: 1.35;
	color: #475569;
}

.sfqr-block-placeholder {
	margin: 0;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: #475569;
	background: #f1f5f9;
	border-radius: 8px;
	border: 1px dashed #94a3b8;
}

.sfqr-elementor-empty {
	margin: 0;
	padding: 0.75rem;
	font-size: 0.9rem;
	color: #64748b;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
}
