@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.wc-fod-container {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 0;
}

.wc-fod-card {
	background: transparent;
	border-radius: 0;
	width: 100%;
	text-align: left;
	box-sizing: border-box;
	position: relative;
	max-width: 520px;
}

.wc-fod-header {
	margin-bottom: 16px;
	text-align: left;
}

.wc-fod-header h2 {
	font-size: 18px;
	font-weight: 600;
	color: #374151;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.2px;
	text-align: left;
}

.wc-fod-header p {
	display: none;
}

.wc-fod-form-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.wc-fod-input-group {
	position: relative;
	width: 100%;
}

.wc-fod-input-group input[type="email"] {
	width: 100% !important;
	height: 44px !important;
	padding: 0 14px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #121212 !important;
	background: #ffffff !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	text-align: left !important;
}

.wc-fod-input-group input[type="email"]::placeholder {
	color: #9ca3af !important;
	opacity: 1 !important;
}

.wc-fod-input-group input[type="email"]:focus {
	outline: none !important;
	border-color: #2f61e8 !important;
	box-shadow: 0 0 0 2px rgba(47, 97, 232, 0.15) !important;
}

.wc-fod-btn {
	width: 100% !important;
	height: 44px !important;
	background: #2f61e8 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	box-shadow: none !important;
}

.wc-fod-btn:hover {
	background-color: #1d4ed8 !important;
}

.btn-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: spin 1s ease-in-out infinite;
}

.wc-fod-result {
	animation: scale-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wc-fod-success-message {
	margin-bottom: 16px;
	text-align: left;
}

.wc-fod-check-wrapper {
	width: 36px;
	height: 36px;
	background-color: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 10px 0;
	color: #ffffff;
}

.wc-fod-check-wrapper svg {
	width: 18px;
	height: 18px;
}

.wc-fod-success-title {
	font-size: 16px;
	font-weight: 700;
	color: #10b981;
	margin: 0 0 4px;
}

.wc-fod-success-desc {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}

.wc-fod-coupon-box {
	background: #f9fafb;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.wc-fod-coupon-box:hover {
	border-color: #2f61e8;
}

.wc-fod-coupon-text {
	font-family: monospace;
	font-size: 15px;
	font-weight: 700;
	color: #121212;
	letter-spacing: 0.05em;
}

.wc-fod-copy-btn {
	background: #e5e7eb;
	border: none;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	color: #374151;
	font-size: 11px;
	font-weight: 600;
	position: relative;
}

.wc-fod-copy-btn:hover {
	background: #d1d5db;
}

.wc-fod-copy-btn svg {
	width: 12px;
	height: 12px;
}

.copy-feedback {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #121212;
	color: #ffffff;
	font-size: 10px;
	padding: 3px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.copy-feedback::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 3px solid transparent;
	border-top-color: #121212;
}

.wc-fod-coupon-expiry {
	font-size: 11px;
	font-weight: 600;
	color: #9ca3af;
	margin: 0;
	text-align: left;
	text-transform: uppercase;
}

.wc-fod-error-box {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #b91c1c;
	font-size: 13px;
	font-weight: 500;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 10px;
}

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

@keyframes scale-up {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
