/* Export SVG decoration */
.sc-fp-export-svg {
	position: absolute;
	top: 8%;
	left: 5%;
	width: 22%;
	height: auto;
	color: var(--preview-text, #ffffff);
	pointer-events: none;
	z-index: 0;
}

/* Export image draggable wrapper */
.sc-fp-image-draggable {
	position: absolute !important;
	bottom: 6%;
	right: 5%;
	max-width: none;
	cursor: grab;
	z-index: 2;
}

.sc-fp-image-draggable .sc-fp-drag-handle {
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
}

/* Export image */
.sc-fp-export-image {
	display: block;
	width: 120px;
	height: auto;
	max-height: 160px;
	object-fit: contain;
	border-radius: 4px;
	pointer-events: none;
}

/* Preview Content (inner slide — palette background lives here) */
.sc-fp-preview-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background-color: var(--preview-bg, #4361ee);
	border-radius: 8px;
	overflow: hidden;
}

/* Business Card Layout - Hidden by default */
.sc-fp-content-business-card {
	display: none !important;
	padding: 0;
}

/* Individual Business Card */
.sc-fp-card {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

.sc-fp-card-front {
	display: flex;
	flex-direction: column;
	background: var(--preview-color-2, var(--preview-bg));
	border: solid 4px #fff;
	box-sizing: border-box;
	overflow: hidden;
}

/* Brush stroke SVG */
.sc-fp-card-brush {
	position: absolute;
	top: 30px;
	left: 55px;
	width: 390px;
	height: auto;
	color: var(--preview-color-3, rgba(255, 255, 255, 0.4));
	pointer-events: none;
	z-index: 0;
}

/* Center block: name + subtitle */
.sc-fp-card-center {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	z-index: 1;
	padding: 20px 24px 0;
}

.sc-fp-card-title {
	font-size: 45px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
	outline: none;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sc-fp-card-subtitle {
	font-size: 12px;
	font-weight: 500;
	margin: 8px 0 0;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
	outline: none;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

/* Bottom block: divider + contacts */
.sc-fp-card-bottom {
	position: relative;
	z-index: 1;
	padding: 0 24px 16px;
	flex-shrink: 0;
}

.sc-fp-card-divider {
	width: 100%;
	height: 4px;
	background: #fff;
	margin-bottom: 10px;
}

.sc-fp-card-contacts {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.sc-fp-card-contact-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sc-fp-card-contact-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.sc-fp-card-contact-item span {
	font-size: 13px;
	color: #fff;
	outline: none;
	white-space: nowrap;
}

/* Business card draggable elements */
.sc-fp-bc-draggable {
	max-width: none;
}

.sc-fp-bc-draggable .sc-fp-drag-handle {
	left: -20px;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
}

/* Focus states for card elements */
.sc-fp-card-title:focus,
.sc-fp-card-subtitle:focus,
.sc-fp-card-contact-item span:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
}

/* Draggable Elements */
.sc-fp-draggable {
	position: relative;
	cursor: default;
	user-select: none;
	transition: box-shadow 0.2s ease;
	border-radius: 4px;
	max-width: 90%;
}

.sc-fp-draggable:hover {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.sc-fp-draggable.dragging {
	z-index: 10;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sc-fp-drag-handle {
	position: absolute;
	left: -28px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	color: var(--preview-text, #ffffff);
	opacity: 0;
	transition: opacity 0.2s ease;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
}

.sc-fp-draggable:hover .sc-fp-drag-handle {
	opacity: 0.6;
}

.sc-fp-drag-handle:hover {
	opacity: 1 !important;
	background: rgba(255, 255, 255, 0.2);
}

.sc-fp-draggable.dragging .sc-fp-drag-handle {
	cursor: grabbing;
	opacity: 1;
}

.sc-fp-preview-title {
	font-size: clamp(1.5rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
	padding: 8px 12px;
	color: var(--preview-text, #ffffff);
	outline: none;
	transition: font-family 0.3s ease, color 0.3s ease;
	cursor: text;
	user-select: text;
}

.sc-fp-preview-title:empty::before {
	content: attr(data-placeholder);
	opacity: 0.5;
}

.sc-fp-preview-subtitle {
	font-size: clamp(0.875rem, 2vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	padding: 8px 12px;
	color: var(--preview-text-secondary, rgba(255, 255, 255, 0.8));
	outline: none;
	transition: font-family 0.3s ease, color 0.3s ease;
	cursor: text;
	user-select: text;
}

.sc-fp-preview-subtitle:empty::before {
	content: attr(data-placeholder);
	opacity: 0.5;
}

/* Editable focus state */
.sc-fp-preview-title:focus,
.sc-fp-preview-subtitle:focus {
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

/* Reset button for positions */
.sc-fp-reset-positions {
	position: absolute;
	bottom: 12px;
	right: 12px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 500;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.45);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	z-index: 5;
}

.sc-fp-preview:hover .sc-fp-reset-positions.visible {
	opacity: 0.9;
}

.sc-fp-reset-positions:hover {
	opacity: 1 !important;
	background: rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 768px) {
	.sc-fp-card-brush {
		left: 27px;
		top: 10px;
	}
}