.wa-widget[hidden], .wa-panel[hidden] { display: none; }
.wa-widget { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--sans); }
.wa-trigger { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 17px; border: 1px solid #ffffff40; border-radius: 10px; background: #246549; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 18px #302d2d20; cursor: pointer; }
.wa-trigger svg { width: 21px; height: 21px; flex: none; }
.wa-panel { width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; box-shadow: 0 8px 30px #302d2d20; max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.wa-panel-header { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.wa-panel h2 { font-family: var(--serif); font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.wa-close { flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0; border: 0; border-radius: 6px; background: transparent; color: var(--wine); font-size: 27px; cursor: pointer; }
.wa-panel p { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; }
.wa-options { display: grid; gap: 7px; }
.wa-options a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--wine); background: var(--paper); font-size: 13px; line-height: 1.4; }
.wa-options a:hover { background: #eee7df; border-color: var(--wine); }
.wa-panel small { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.wa-widget :focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
@media(max-width:600px) { .wa-widget { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); } .wa-panel { padding: 18px; } }
