/**
 * EU Withdrawal Compliance — Frontend styles.
 *
 * Selectors are scoped under .ayudawp-euw-wrapper / .ayudawp-euw-form to
 * raise specificity above most theme rules (Storefront, Astra, Twenty-X, etc.)
 * and to insulate the form from theme defaults that reach <p>, <input>, etc.
 */

.ayudawp-euw-wrapper {
	max-width: 640px;
	margin: 2rem auto;
	box-sizing: border-box;
}

.ayudawp-euw-wrapper *,
.ayudawp-euw-wrapper *::before,
.ayudawp-euw-wrapper *::after {
	box-sizing: border-box;
}

.ayudawp-euw-wrapper .ayudawp-euw-intro {
	margin: 0 0 1.5rem;
	color: #4a4a4a;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ayudawp-euw-wrapper .ayudawp-euw-form {
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	padding: 1.5rem;
	margin: 0;
}

/* --- Field row ----------------------------------------------------------- */

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field {
	display: block;
	margin: 0 0 1.25rem;
	padding: 0;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field > label {
	display: block;
	margin: 0 0 0.4rem;
	padding: 0;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
	color: #1a1a1a;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field input[type="text"],
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field input[type="email"],
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field input[type="date"],
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field select,
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.6rem 0.75rem;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #fff;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-shadow: none;
	min-height: 0;
	height: auto;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field textarea {
	min-height: 110px;
	resize: vertical;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field input:focus,
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field select:focus,
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field textarea:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-color: #2271b1;
	box-shadow: none;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-help {
	display: block;
	margin: 0.35rem 0 0;
	color: #6b6b6b;
	font-size: 0.85rem;
	line-height: 1.4;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-required {
	color: #d63638;
	font-weight: 700;
}

/* --- Privacy checkbox ---------------------------------------------------- */

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field--checkbox > label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	font-weight: 400;
	font-size: 0.95rem;
	cursor: pointer;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field--checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0.25rem 0 0;
	accent-color: #2271b1;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-field--checkbox > label > span {
	flex: 1 1 auto;
	line-height: 1.4;
}

/* --- Submit -------------------------------------------------------------- */

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-submit {
	margin: 1.5rem 0 0;
	padding: 0;
	text-align: right;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-button {
	display: inline-block;
	margin: 0;
	padding: 0.75rem 1.75rem;
	background: #2271b1;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease-in-out;
	min-height: 0;
	height: auto;
}

.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-button:hover,
.ayudawp-euw-wrapper .ayudawp-euw-form .ayudawp-euw-button:focus {
	background: #135e96;
	color: #fff;
}

/* --- Notices ------------------------------------------------------------- */

.ayudawp-euw-wrapper .ayudawp-euw-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid;
	border-radius: 4px;
}

.ayudawp-euw-wrapper .ayudawp-euw-notice p {
	margin: 0;
}

.ayudawp-euw-wrapper .ayudawp-euw-notice--success {
	background: #edfaef;
	border-color: #00a32a;
	color: #14532d;
}

.ayudawp-euw-wrapper .ayudawp-euw-notice--error {
	background: #fcf0f1;
	border-color: #d63638;
	color: #7a1d1f;
}

/* --- Honeypot (hidden visually but accessible to bots) ------------------- */

.ayudawp-euw-wrapper .ayudawp-euw-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
