/* ==========================================================================
   ruach.jetzt Redemption Codes – Frontend-Styles
   Eingebunden via wp_enqueue_style() in Ruach_Redemption_Hooks::enqueue_assets()
   ========================================================================== */

.ruach-redeem-wrap {
	max-width: 480px;
	margin: 0 auto;
	font-family: inherit;
}

/* --------------------------------------------------------------------------
   Login-Hinweis (für nicht eingeloggte Nutzer)
   -------------------------------------------------------------------------- */

.ruach-redeem-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.ruach-redeem-notice--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.ruach-redeem-notice a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */

.ruach-redeem-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ruach-redeem-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
	color: #1a1a2e;
}

.ruach-redeem-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.ruach-redeem-input {
	flex: 1;
	padding: 10px 14px;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	font-size: 16px;
	font-family: 'Courier New', Courier, monospace;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #111827;
	background: #fff;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.ruach-redeem-input:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba( 99, 102, 241, 0.15 );
}

.ruach-redeem-input:disabled {
	background: #f3f4f6;
	color: #9ca3af;
	cursor: not-allowed;
}

.ruach-redeem-input::placeholder {
	color: #9ca3af;
	letter-spacing: 0.05em;
}

.ruach-redeem-btn {
	padding: 10px 20px;
	background: #6366f1;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.ruach-redeem-btn:hover:not(:disabled) {
	background: #4f46e5;
}

.ruach-redeem-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ruach-redeem-hint {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Feedback-Box (Fehler & Erfolg)
   -------------------------------------------------------------------------- */

.ruach-redeem-feedback {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}

.ruach-redeem-feedback--success {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

.ruach-redeem-feedback--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

.ruach-redeem-feedback__msg {
	margin: 0 0 8px;
	font-weight: 600;
}

.ruach-redeem-feedback__msg:last-child {
	margin-bottom: 0;
}

.ruach-redeem-feedback__link {
	margin: 0;
}

.ruach-redeem-course-link {
	display: inline-block;
	color: #166534;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ruach-redeem-feedback--error .ruach-redeem-course-link {
	color: #991b1b;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media ( max-width: 480px ) {
	.ruach-redeem-row {
		flex-direction: column;
	}

	.ruach-redeem-btn {
		width: 100%;
		padding: 12px;
	}

	.ruach-redeem-input {
		font-size: 18px; /* größer für mobile Eingabe */
	}
}
