/* ---------- WP Frontend Delete Account: align with Yuga ---------- */
/* The plugin hardcodes red/orange/green and float layout. These rules
   map it onto the theme's own tokens. Safe to delete to revert. */

.wpfda-delete-account-container {
	font-family: var(--wp--preset--font-family--dm-sans);
	color: var(--wp--preset--color--foreground);
	font-size: var(--wp--preset--font-size--small);
}

/* Trigger button: still reads as destructive, but a considered red */
.wpf-delete-account-button button,
.wpfda-delete-account-container button {
	font-family: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	background-color: transparent;
	color: #9b2c2c;
	border: 1px solid #9b2c2c;
	border-radius: 4px;
	padding: 0.7em 1.4em;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wpf-delete-account-button button:hover,
.wpfda-delete-account-container button:hover {
	background-color: #9b2c2c;
	color: var(--wp--preset--color--background);
}

/* Inputs */
.wpfda-delete-account-container input[type="text"],
.wpfda-delete-account-container input[type="password"],
.wp-frontend-delete-account-modal-body input[type="text"],
.wp-frontend-delete-account-modal-body input[type="password"],
.wp-frontend-delete-account-modal-body textarea,
.wp-frontend-delete-account-modal-body select {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--foreground);
	background-color: var(--wp--preset--color--background);
	border: 1px solid rgba(0, 42, 50, 0.25);
	border-radius: 4px;
	padding: 0.7em 0.9em;
	width: 100%;
	max-width: 28rem;
}

/* Modal shell — responsive instead of a fixed 50% */
.wp-frontend-delete-account-modal { padding-top: 5vh; background-color: rgba(0, 42, 50, 0.55); }
.wp-frontend-delete-account-modal-content {
	width: min(92vw, 34rem);
	margin: 0 auto;
	border: none;
	border-radius: 8px;
	background-color: var(--wp--preset--color--background);
	box-shadow: 0 10px 40px rgba(0, 42, 50, 0.25);
	overflow: hidden;
}
.wp-frontend-delete-account-modal-header,
.wp-frontend-delete-account-modal-footer {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	padding: 1rem 1.25rem;
	font-family: var(--wp--preset--font-family--dm-sans);
}
.wp-frontend-delete-account-modal-header a,
.wp-frontend-delete-account-modal-header .close { color: var(--wp--preset--color--background); }
.wp-frontend-delete-account-modal-body { padding: 1.25rem; font-family: var(--wp--preset--font-family--dm-sans); }
.wp-frontend-delete-account-modal-body .container { background-color: transparent; padding: 0; }
.wp-frontend-delete-account-modal-body input[type="submit"] {
	float: none;
	background-color: #9b2c2c;
	font-family: var(--wp--preset--font-family--dm-sans);
	border-radius: 4px;
	padding: 0.75em 1.5em;
}
.wp-frontend-delete-account-modal-body input[type="submit"]:hover { background-color: #7f2323; }

/* Replace the float grid with flex */
.wp-frontend-delete-account-modal-body .row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.wp-frontend-delete-account-modal-body .col-25,
.wp-frontend-delete-account-modal-body .col-75 { float: none; width: auto; margin-top: 0; }
.wp-frontend-delete-account-modal-body .col-25 { flex: 0 0 8rem; }
.wp-frontend-delete-account-modal-body .col-75 { flex: 1 1 14rem; }

.wpfda-error { color: #9b2c2c; font-size: var(--wp--preset--font-size--x-small); }
/* ---------- delete-account spacing ---------- */
/* The JS renders a <form> inside the container, so the flex context
   has to live on the form — spacing the container does nothing. */
.wpfda-delete-account-container form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}
.wpfda-delete-account-container { margin-block: 1.5rem; }
.wpfda-delete-account-container label { display: block; margin-bottom: 0.25rem; }
.wpfda-delete-account-container p { margin: 0; max-width: 42rem; line-height: 1.6; }
.wpfda-delete-account-container button { margin-top: 0.25rem; }

/* Modal internals */
.wp-frontend-delete-account-modal-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.wp-frontend-delete-account-modal-body form { display: flex; flex-direction: column; gap: 0.5rem; }
.wp-frontend-delete-account-modal-body label { margin-bottom: 0.25rem; }
.wp-frontend-delete-account-modal-body input[type="submit"] { margin-top: 0.5rem; align-self: flex-start; }
/* ---------- footer cookie-settings link ---------- */
/* WPConsent renders <button class="wpconsent-open-preferences button wpc-footer-link">.
   The .button class pulls in theme button styling, so match its specificity. */
button.wpconsent-open-preferences.wpc-footer-link,
.wpconsent-open-preferences.wpc-footer-link,
.wpc-footer-link {
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	min-height: 0;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: inherit;
	line-height: 1.6;
	color: inherit !important;
	text-decoration: underline;
	cursor: pointer;
}
button.wpconsent-open-preferences.wpc-footer-link:hover { opacity: 0.7; }