/* EU Elállási Gomb – Frontend stílusok */

/* Lábléc link */
.ewb-footer-link {
	text-align: center;
	padding: 10px 16px;
	font-size: 0.875em;
}
.ewb-footer-link a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ewb-footer-link a:hover {
	opacity: 0.8;
}

/* Wrapper */
.ewb-form-wrapper {
	max-width: 620px;
	margin: 0 auto;
	padding: 24px 0;
	font-family: inherit;
}

/* Bevezető doboz */
.ewb-form-intro {
	background: #eef2ff;
	border-left: 4px solid #4a6cf7;
	padding: 14px 18px;
	margin-bottom: 28px;
	border-radius: 0 6px 6px 0;
	font-size: 0.95em;
	line-height: 1.6;
	color: #1e293b;
}
.ewb-form-intro p {
	margin: 0;
}

/* Form group */
.ewb-form-group {
	margin-bottom: 22px;
}
.ewb-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
	font-size: 0.95em;
	color: #1e293b;
}
.ewb-required {
	color: #dc2626;
	margin-left: 2px;
}

/* Input mezők */
.ewb-form-group input[type="text"],
.ewb-form-group input[type="email"],
.ewb-form-group input[type="number"] {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 6px;
	font-size: 1em;
	color: #1e293b;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.18s, box-shadow 0.18s;
	-webkit-appearance: none;
}
.ewb-form-group input:focus {
	border-color: #4a6cf7;
	outline: none;
	box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.18);
}
.ewb-form-group input.ewb-error-field {
	border-color: #dc2626;
}

/* Segítő szöveg */
.ewb-hint {
	display: block;
	margin-top: 5px;
	font-size: 0.82em;
	color: #64748b;
	line-height: 1.4;
}

/* Checkbox sor */
.ewb-checkbox-group label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: 400;
	font-size: 0.95em;
	color: #1e293b;
}
.ewb-checkbox-group input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: #4a6cf7;
	cursor: pointer;
}

/* Üzenet doboz */
#ewb-form-message {
	display: none;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 0.95em;
	line-height: 1.5;
}
#ewb-form-message.ewb-msg-success {
	display: block;
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #14532d;
}
#ewb-form-message.ewb-msg-error {
	display: block;
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #7f1d1d;
}

/* Gomb */
.ewb-form-actions {
	margin-top: 8px;
}
.ewb-btn-submit {
	display: inline-block;
	background: #4a6cf7;
	color: #fff;
	border: none;
	padding: 13px 32px;
	font-size: 1em;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.18s, transform 0.1s;
}
.ewb-btn-submit:hover {
	background: #3a57d8;
}
.ewb-btn-submit:active {
	transform: scale(0.98);
}
.ewb-btn-submit:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
}

/* Sikeres beküldés után a form fakított megjelenése */
.ewb-form-submitted fieldset,
.ewb-form-submitted input,
.ewb-form-submitted textarea,
.ewb-form-submitted button {
	opacity: 0.5;
	pointer-events: none;
}

/* Pénztár jelölőnégyzet */
.ewb-checkout-consent {
	margin-bottom: 12px;
}
.ewb-checkout-consent label {
	display: flex !important;
	align-items: flex-start !important;
	gap: 8px !important;
	cursor: pointer;
}
.ewb-checkout-consent label,
.ewb-checkout-consent label *,
.ewb-checkout-consent .ewb-checkout-consent-text {
	color: #1e293b !important;
	font-size: 0.88em !important;
	line-height: 1.5 !important;
}
.ewb-checkout-consent input[type="checkbox"] {
	flex-shrink: 0 !important;
	margin-top: 3px !important;
	width: auto !important;
}
.ewb-checkout-consent abbr.required {
	color: #dc2626 !important;
	border-bottom: none !important;
	text-decoration: none !important;
}

@media (max-width: 480px) {
	.ewb-form-wrapper {
		padding: 16px 0;
	}
	.ewb-btn-submit {
		width: 100%;
		text-align: center;
	}
}
