.paw-widget {
	--paw-accent: #73701e;
	--paw-ink: #252716;
	--paw-panel-background: #fff;
	--paw-line: #e6e4d8;
	--paw-shadow: 0 18px 54px rgb(29 31 15 / 20%);
	position: fixed;
	z-index: 99998;
	bottom: max(20px, env(safe-area-inset-bottom));
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--paw-ink);
}
.paw-widget--left { left: max(20px, env(safe-area-inset-left)); right: auto; }
.paw-widget--right { right: max(20px, env(safe-area-inset-right)); left: auto; }

.paw-widget *,
.paw-widget *::before,
.paw-widget *::after { box-sizing: border-box; }

.paw-widget button { font: inherit; }
.paw-widget button:focus-visible { outline: 3px solid #1677b8; outline-offset: 3px; }

.paw-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 8px 18px 8px 9px;
	border: 1px solid rgb(255 255 255 / 70%);
	border-radius: 999px;
	background: var(--paw-accent);
	box-shadow: 0 5px 18px rgb(29 31 15 / 24%);
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: .01em;
}
.paw-launcher:hover { filter: brightness(1.08); }
.paw-launcher__glyph {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 50%;
	background: rgb(255 255 255 / 16%);
	font-size: 27px;
	line-height: 1;
}

.paw-panel {
	position: absolute;
	bottom: 68px;
	width: min(348px, calc(100vw - 32px));
	overflow: hidden;
	border: 1px solid rgb(43 43 29 / 12%);
	border-radius: 22px;
	background: var(--paw-panel-background);
	box-shadow: var(--paw-shadow);
}
.paw-widget--left .paw-panel { left: 0; right: auto; }
.paw-widget--right .paw-panel { right: 0; left: auto; }
.paw-panel[hidden] { display: none; }
.paw-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 20px 17px;
	background: var(--paw-accent);
	color: #fff;
}
.paw-panel__header h2 { margin: 0; color: inherit; font-size: 21px; font-weight: 680; line-height: 1.2; }
.paw-close {
	display: grid;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid rgb(255 255 255 / 40%);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 25px;
	line-height: 1;
}
.paw-close:hover { background: rgb(255 255 255 / 13%); }
.paw-panel__body { padding: 18px 20px 20px; }
.paw-control-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.paw-size__buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paw-size__buttons button {
	min-height: 42px;
	border: 1px solid var(--paw-line);
	border-radius: 11px;
	background: #fff;
	color: var(--paw-ink);
	cursor: pointer;
	font-weight: 700;
}
.paw-size__buttons button:hover { border-color: var(--paw-accent); color: var(--paw-accent); }
.paw-options { display: grid; gap: 7px; margin: 17px 0 14px; }
.paw-option {
	display: grid;
	grid-template-columns: 36px 1fr 34px;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 6px 8px;
	border: 1px solid var(--paw-line);
	border-radius: 13px;
	background: #fff;
	color: var(--paw-ink);
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}
.paw-option:hover { border-color: color-mix(in srgb, var(--paw-accent), white 45%); }
.paw-option__icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: color-mix(in srgb, var(--paw-accent), white 88%);
	color: var(--paw-accent);
	font-size: 19px;
	font-weight: 750;
}
.paw-option__state {
	position: relative;
	width: 32px;
	height: 19px;
	border-radius: 99px;
	background: #d5d5cc;
}
.paw-option__state::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 22%);
	content: "";
	transition: transform .16s ease;
}
.paw-option[aria-pressed="true"] { border-color: var(--paw-accent); }
.paw-option[aria-pressed="true"] .paw-option__state { background: var(--paw-accent); }
.paw-option[aria-pressed="true"] .paw-option__state::after { transform: translateX(13px); }
.paw-reset {
	width: 100%;
	min-height: 42px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: #585a4a;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.paw-reset:hover { background: #efeee5; color: var(--paw-ink); }
.paw-status { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

html.paw-text-small { font-size: 90% !important; }
html.paw-text-large { font-size: 112.5% !important; }
html.paw-contrast,
html.paw-contrast body { background: #000 !important; color: #fff !important; }
html.paw-contrast body *:not(.paw-widget):not(.paw-widget *) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
html.paw-contrast body a:not(.paw-widget a) { color: #ff0 !important; text-decoration: underline !important; }
html.paw-highlight-links body a:not(.paw-widget a) { background: #ffef75 !important; color: #171600 !important; outline: 2px solid #171600 !important; outline-offset: 1px !important; text-decoration: underline !important; }
html.paw-stop-motion *,
html.paw-stop-motion *::before,
html.paw-stop-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media (max-width: 480px) {
	.paw-widget { bottom: max(12px, env(safe-area-inset-bottom)); }
	.paw-widget--left { left: max(12px, env(safe-area-inset-left)); }
	.paw-widget--right { right: max(12px, env(safe-area-inset-right)); }
	.paw-panel { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.paw-widget *, .paw-widget *::before, .paw-widget *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
