/* RA Builder Frontend Styles */
/* This file is intentionally minimal - frontend styles are generated dynamically via CSS tokens */

/* WAVE4-005: inline submit feedback shown by assets/js/frontend.js in place
   of the redirect+query-arg confirmation, for forms without a redirectUrl. */
.ra-form-feedback {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 0.95em;
	line-height: 1.4;
}

.ra-form-feedback--success {
	background: #eafaf0;
	border: 1px solid #34a853;
	color: #1e7e34;
}

.ra-form-feedback--error {
	background: #fdecea;
	border: 1px solid #d93025;
	color: #a12a21;
}

/* FORM-SELECT-01 - select fields: custom chevron, styled native multi list. Box/typography come from the .ra-form-field style controls. */
.ra-form-select { appearance: none; -webkit-appearance: none; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75em center; padding-inline-end: 2.25em; cursor: pointer; }
[dir="rtl"] .ra-form-select { background-position: left .75em center; }
/* Separate rules - never comma-join: a browser without :dir() would drop the whole list. */
.ra-form-select:dir(rtl) { background-position: left .75em center; }
.ra-form-select:dir(ltr) { background-position: right .75em center; }
.ra-form-select option { color: #1d2939; background-color: #fff; } /* native popup stays readable when the select inherits a light text colour */
/* FORM-MULTI-01 - multi-select: a closed trigger + checkbox panel; the native <select multiple> stays in the DOM as the submitted control (visually hidden, not display:none, so `required` still validates). Logical properties: RTL needs no extra rules. */
.ra-form-multiselect { position: relative; }
.ra-form-multiselect__native { position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.ra-form-multiselect__trigger { text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-form-multiselect__panel { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 4px); z-index: 20; max-height: 14rem; overflow-y: auto; padding: .25rem; background: #fff; color: #1d2939; border: 1px solid rgba(127,127,127,.5); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ra-form-multiselect__trigger.is-invalid { border-color: #dc2626; }
.ra-form-multiselect__panel[hidden] { display: none; }
.ra-form-multiselect__panel label { display: flex; gap: .5rem; padding: .4rem .5rem; cursor: pointer; }
.ra-form-select:focus-visible { outline: 2px solid var(--ra-color-primary, #2563eb); outline-offset: 2px; }
