/**
 * Cedric Fotso Theme - Welcome Card Module (Swiss Tech Style)
 */

.cf-welcome-card {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: calc(100vw - 32px);
	max-width: 380px;
	background: #FFFFFF;
	border: 1px solid #E4E4E7;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	z-index: 99999;
	opacity: 0;
	transform: translateY(24px) scale(0.98);
	transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	will-change: opacity, transform;
	box-sizing: border-box;
}

.cf-welcome-card.cf-welcome-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.cf-welcome-card.cf-welcome-hiding {
	opacity: 0;
	transform: translateY(16px) scale(0.98);
}

.cf-welcome-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #FAFAFA;
	border-bottom: 1px solid #F4F4F5;
}

.cf-welcome-header .cf-swiss-tag {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #10B981;
}

.cf-welcome-close {
	background: transparent;
	border: none;
	color: #71717A;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 4px;
	transition: background 0.15s ease, color 0.15s ease;
}

.cf-welcome-close:hover {
	background: #E4E4E7;
	color: #18181B;
}

.cf-welcome-body {
	padding: 16px 20px 20px 20px;
}

.cf-welcome-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #18181B;
	margin: 0 0 8px 0;
	letter-spacing: -0.01em;
}

.cf-welcome-text {
	font-size: 13px;
	line-height: 1.5;
	color: #52525B;
	margin: 0 0 16px 0;
}

.cf-welcome-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cf-welcome-input-group {
	display: flex;
	gap: 8px;
}

.cf-welcome-input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	font-size: 13px;
	border: 1px solid #D4D4D8;
	border-radius: 8px;
	background: #FFFFFF;
	color: #18181B;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.cf-welcome-input:focus {
	border-color: #18181B;
	box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.1);
}

.cf-welcome-btn {
	background: #18181B;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease;
}

.cf-welcome-btn:hover {
	background: #27272A;
}

.cf-welcome-btn:active {
	transform: scale(0.98);
}

.cf-welcome-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.cf-welcome-privacy {
	font-size: 11px;
	color: #71717A;
	margin: 4px 0 0 0;
}

.cf-welcome-feedback {
	padding: 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 8px;
}

.cf-welcome-feedback-success {
	background: #ECFDF5;
	border: 1px solid #10B981;
	color: #065F46;
}

.cf-welcome-feedback-error {
	background: #FEF2F2;
	border: 1px solid #EF4444;
	color: #991B1B;
}

/* Adaptations Mobile (<768px) Bottom Sheet Style */
@media (max-width: 767px) {
	.cf-welcome-card {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100vw;
		max-width: 100vw;
		border-radius: 16px 16px 0 0;
		border-bottom: none;
		border-left: none;
		border-right: none;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
		transform: translateY(100%);
	}

	.cf-welcome-card.cf-welcome-visible {
		transform: translateY(0);
	}

	.cf-welcome-card.cf-welcome-hiding {
		transform: translateY(100%);
	}

	.cf-welcome-input-group {
		flex-direction: column;
	}

	.cf-welcome-btn {
		width: 100%;
		padding: 12px;
		font-size: 13px;
	}
}
