/* Public shell styles owned by the plugin.
   These support small sitewide capabilities that can survive a theme redesign. */

.emma-floating { position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 9000; display: flex; flex-direction: column-reverse; gap: 10px; align-items: flex-end; transition: opacity .18s ease, transform .18s ease; }
.emma-floating.is-footer-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.emma-floating-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--emma-charcoal, #2a2620); color: var(--emma-cream, #f0eede); border: 0; padding: 13px 18px 13px 16px; font-family: var(--emma-font-nats, "Helvetica Neue", Arial, sans-serif); font-size: 16px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; border-radius: 999px; box-shadow: 0 14px 40px rgba(20, 18, 14, .18); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.emma-floating-toggle:hover { background: var(--emma-brown, #32271f); transform: translateY(-1px); box-shadow: 0 18px 48px rgba(20, 18, 14, .22); }
.emma-floating-toggle:focus-visible,
.emma-floating-menu a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.emma-floating-toggle__icon,
.emma-floating-menu__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.emma-floating-toggle__icon { width: 22px; height: 22px; }
.emma-floating-toggle__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	opacity: .9;
	transition: transform .18s ease, opacity .18s ease;
}
.emma-floating[data-open="true"] .emma-floating-toggle__mark {
	opacity: 1;
	transform: rotate(45deg);
}
.emma-floating svg { display: block; width: 100%; height: 100%; }
.emma-floating-menu { display: none; flex-direction: column; gap: 6px; background: rgba(240, 238, 222, .96); border: 1px solid rgba(42, 38, 32, .18); padding: 8px; border-radius: 10px; box-shadow: 0 18px 50px rgba(20, 18, 14, .18); min-width: 250px; backdrop-filter: blur(10px); }
.emma-floating[data-open="true"] .emma-floating-menu { display: flex; }
.emma-floating-menu a { display: flex; align-items: center; gap: 12px; color: var(--emma-charcoal, #2a2620); text-decoration: none; padding: 12px 14px; border-radius: 7px; font-family: var(--emma-font-nats, "Helvetica Neue", Arial, sans-serif); font-size: 18px; line-height: 1; letter-spacing: 0; transition: background-color .15s ease, transform .15s ease; }
.emma-floating-menu a:hover { background: rgba(42, 38, 32, .07); transform: translateX(2px); }
.emma-floating-menu__icon { width: 24px; height: 24px; color: var(--emma-charcoal, #2a2620); }

@media (max-width: 640px) {
	.emma-floating { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
	.emma-floating-toggle { padding: 0; width: 58px; height: 58px; justify-content: center; border-radius: 50%; font-size: 18px; }
	.emma-floating-toggle .emma-toggle-text { display: none; }
	.emma-floating-toggle__mark { display: none; }
	.emma-floating-menu { min-width: min(260px, calc(100vw - 28px)); }
}
