/* EPM Color Mixer — brand tokens
   form bg: #002771 (navy) | button bg: #8EE302 | button text: #002771
   input bg: white | input text: dark navy | font: Merriweather Sans
   sentence case throughout, no uppercase transforms

   Layout note: [epm_color_mixer_colors] and [epm_color_mixer_form] are
   two independent shortcodes on purpose. Putting a two-column flex/grid
   layout inside this plugin's own wrapper was found to conflict with this
   site's sticky Elementor header (confirmed by testing), so the two-column
   arrangement is delegated entirely to Elementor's own native columns.
   Place each shortcode in its own Elementor column, side by side.

   Several rules below use !important — deliberate, to win against this
   site's global button/input styles (Elementor Site Settings and/or the
   theme) which otherwise override border-radius and colors on inputs
   and buttons.
*/

html {
	scrollbar-gutter: stable;
	overflow-y: scroll;
}

.epm-block,
.epm-block *,
.epm-block *::before,
.epm-block *::after {
	box-sizing: border-box;
}

.epm-block {
	font-family: 'Merriweather Sans', sans-serif;
	background: #002771;
	color: #FFFFFF;
	width: 100%;
	padding: 48px 40px;
}

.epm-combined {
	display: flex;
	flex-direction: column;
}

.epm-combined .epm-block {
	max-width: 1160px;
	margin: 0 auto;
}

.epm-title {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: #FFFFFF;
	margin: 0 0 8px;
}

.epm-subtitle {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 28px;
	line-height: 1.5;
}

.epm-empty {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
}

.epm-chip-scroll {
	max-height: 460px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 8px;
	margin-bottom: 16px;
}

.epm-chip-scroll::-webkit-scrollbar {
	width: 8px;
}

.epm-chip-scroll::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
}

.epm-chip-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 8px;
}

.epm-family-label {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.55);
	margin: 20px 0 10px;
}

.epm-family-label:first-child {
	margin-top: 0;
}

.epm-chip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 22px 18px;
}

.epm-block .epm-chip {
	font-family: 'Merriweather Sans', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	padding: 4px;
}

.epm-block .epm-chip:focus {
	outline: none;
}

.epm-block .epm-chip:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
	border-radius: 8px;
}

.epm-chip-dot {
	display: inline-block;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--epm-chip-color);
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 -5px 9px rgba(0, 0, 0, 0.22), inset 0 4px 7px rgba(255, 255, 255, 0.2);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.epm-chip-label {
	font-size: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.25;
	overflow-wrap: break-word;
	word-break: break-word;
	max-width: 100%;
}

.epm-block .epm-chip:hover .epm-chip-dot {
	transform: translateY(-2px);
}

/* Selection ring: neutral white/gray on purpose — a colored ring would
   visually compete with the actual paint color being previewed. */
.epm-block .epm-chip.is-selected .epm-chip-dot {
	box-shadow: 0 0 0 3px #002771, 0 0 0 5px #E4E7ED, inset 0 -5px 9px rgba(0, 0, 0, 0.22);
}

.epm-block .epm-chip.is-selected .epm-chip-label {
	color: #FFFFFF;
	font-weight: 700;
}

.epm-block .epm-chip.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.epm-hint {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
}

.epm-selected-count {
	font-weight: 700;
	color: #8EE302;
}

.epm-form {
	display: grid;
	gap: 14px;
}

.epm-block .epm-field input {
	font-family: 'Merriweather Sans', sans-serif;
	display: block;
	width: 100%;
	padding: 15px 20px !important;
	border: none !important;
	border-radius: 999px !important;
	background: #FFFFFF !important;
	font-size: 15px;
	color: #002771 !important;
	box-shadow: none !important;
}

.epm-block .epm-field input::placeholder {
	color: rgba(0, 39, 113, 0.55);
	opacity: 1;
}

.epm-block .epm-field input:focus {
	outline: none !important;
	box-shadow: 0 0 0 3px #8EE302 !important;
}

.epm-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.epm-error {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 13px;
	color: #FFADA6;
	margin: 0;
}

.epm-block .epm-submit {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: 700;
	font-size: 16px;
	width: 100%;
	display: block;
	background: #8EE302 !important;
	color: #002771 !important;
	border: none !important;
	box-shadow: none !important;
	padding: 16px !important;
	border-radius: 0 999px 999px 999px !important;
	cursor: pointer;
	margin-top: 6px;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.epm-block .epm-submit:hover {
	transform: translateY(-1px);
}

.epm-block .epm-submit:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.epm-block .epm-submit:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

.epm-success {
	font-family: 'Merriweather Sans', sans-serif;
	padding: 10px 0;
	font-size: 15px;
	color: #FFFFFF;
}

@media (max-width: 480px) {
	.epm-block {
		padding: 32px 20px;
	}
	.epm-chip-grid {
		grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	}
}
