/* Button Style (field settings → Style: Default, Danger, Info, Primary, Success, Warning), one look for the live
   form (show.blade.php + the embed views), the builder's Preview and its canvas.
   Before: Default was filled with the site's secondary colour (often a strong red) with dark text, Primary had a
   heavy 3D drop shadow, and Info / Warning were Bootstrap's own colours with black text, none matching the
   dots in the Style picker. Each style now has one background + a text colour readable on it (WCAG ≥ 4:1 at
   the button's 18px bold): the Style dots use the same colours (studio-fixes.css).
   Sign-in buttons (.fbs-btn-auth) keep their own look. */
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn:not(.fbs-btn-auth) {
	--fbs-b-bg: #fff; --fbs-b-fg: #101828; --fbs-b-bd: #d0d5dd; --fbs-b-hover: #f2f4f7;
	position: relative; background: var(--fbs-b-bg) !important; color: var(--fbs-b-fg) !important;
	border: 1px solid var(--fbs-b-bd) !important; text-shadow: none !important; text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .08) !important; transform: none;
	transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-danger:not(.fbs-btn-auth) { --fbs-b-bg: #e0352b; --fbs-b-fg: #fff; --fbs-b-bd: #e0352b; --fbs-b-hover: #c42a21; }
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-info:not(.fbs-btn-auth) { --fbs-b-bg: #1f7fd6; --fbs-b-fg: #fff; --fbs-b-bd: #1f7fd6; --fbs-b-hover: #196cb8; }
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-primary:not(.fbs-btn-auth) {
	--fbs-b-bg: var(--primary, #02647e); --fbs-b-fg: #fff; --fbs-b-bd: var(--primary, #02647e);
	--fbs-b-hover: color-mix(in srgb, var(--primary, #02647e) 85%, #000);
}
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-success:not(.fbs-btn-auth) { --fbs-b-bg: #3d8f2c; --fbs-b-fg: #fff; --fbs-b-bd: #3d8f2c; --fbs-b-hover: #337a25; }
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-warning:not(.fbs-btn-auth) { --fbs-b-bg: #ffab2d; --fbs-b-fg: #1d1d1d; --fbs-b-bd: #ffab2d; --fbs-b-hover: #f59a0f; }

/* Same selector list as above on purpose (equal specificity, so :hover wins). Hover lifts a little and darkens; keyboard focus gets a visible ring */
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn:not(.fbs-btn-auth):hover {
	background: var(--fbs-b-hover) !important; border-color: var(--fbs-b-hover) !important;
	box-shadow: 0 6px 14px -6px rgba(16, 24, 40, .35) !important; transform: translateY(-1px);
}
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-default:not(.fbs-btn-auth):hover { border-color: #b9c0cb !important; }
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn:not(.fbs-btn-auth):active { transform: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .08) !important; }
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn:not(.fbs-btn-auth):focus-visible { outline: 3px solid #84adff; outline-offset: 2px; }

/* The old Primary 3D effect (form-render.css .btn-primary::before/::after): off for form buttons */
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-primary:not(.fbs-btn-auth)::before,
:is(.rendered-form .formbuilder-button, .fbs .frmb li.button-field .prev-holder, .fbs-device) .btn.btn-primary:not(.fbs-btn-auth)::after { display: none !important; }
