/*
 * Widżet „Pomoc” na evsport.pl (WordPress, motyw Hello Elementor) – ten sam public/js/help-widget.js co w systemie,
 * znaczniki we wstawce z views/layout/help-embed.html. Kolory jak w public/css/evsport.css; wszystko pod #evHelp,
 * bo motyw stylizuje button/input/a (np. różowe ramki przycisków) i musi przegrać.
 */
#evHelp {
    --ev-green: #60AC75;
    --ev-green-dark: #46925D;
    --ev-green-deep: #063721;
    --ev-green-ring: rgba(96, 172, 117, .25);
    --ev-grey: #EDEDED;
    --ev-muted: rgba(0, 0, 0, .6);
    --ev-body: #4A5550;
    --ev-heading: #151A17;
    position: fixed; right: 16px; bottom: 16px; z-index: 99990;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px; line-height: 1.5; color: var(--ev-body); text-align: left;
}
#evHelp *, #evHelp *::before, #evHelp *::after { box-sizing: border-box; }
#evHelp [hidden] { display: none !important; }
#evHelp button { font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; }
#evHelp button:disabled { opacity: .55; cursor: default; }

#evHelp .ev-help__toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ev-green); color: #fff; font-weight: 700; line-height: 1.2; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
#evHelp .ev-help__toggle:hover, #evHelp .ev-help__toggle:focus-visible { background: var(--ev-green-dark); outline: none; box-shadow: 0 0 0 3px var(--ev-green-ring); }
#evHelp .ev-help__icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--ev-green-dark); font-size: 12px; font-weight: 800; line-height: 1; }

#evHelp .ev-help__panel { position: absolute; right: 0; bottom: 52px; width: 360px; max-width: calc(100vw - 32px); max-height: min(70vh, 560px); overflow-y: auto; padding: 16px; background: #fff; border: 1px solid var(--ev-grey); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
#evHelp .ev-help__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#evHelp .ev-help__title { margin: 0; padding: 0; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ev-heading); }
#evHelp .ev-help__close { margin: 0; padding: 0 4px; border: 0; border-radius: 4px; background: none; font-size: 22px; line-height: 1; color: var(--ev-muted); }
#evHelp .ev-help__close:hover, #evHelp .ev-help__close:focus-visible { color: var(--ev-heading); outline: none; box-shadow: 0 0 0 3px var(--ev-green-ring); }
#evHelp .ev-help__form { margin: 0; }
#evHelp .ev-help__input { display: block; width: 100%; height: auto; margin: 0; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: inherit; font-size: 14px; color: var(--ev-heading); box-shadow: none; }
#evHelp .ev-help__input:focus { border-color: var(--ev-green); outline: none; box-shadow: 0 0 0 3px var(--ev-green-ring); }
#evHelp .ev-help__suggest { margin-top: 12px; }
#evHelp .ev-help__suggest-label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-muted); }
#evHelp .ev-help__status { margin: 10px 0 0; font-size: 13px; color: var(--ev-muted); }
#evHelp .ev-help__results { list-style: none; margin: 8px 0 0; padding: 0; }
#evHelp .ev-help__results li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--ev-grey); }
#evHelp .ev-help__results li::before { content: none; }
#evHelp .ev-help__results li:last-child { border-bottom: 0; }
#evHelp a { color: var(--ev-green-deep); text-decoration: none; }
#evHelp a:hover, #evHelp a:focus { color: var(--ev-green-dark); text-decoration: underline; }
#evHelp .ev-help__results a { font-weight: 600; }
#evHelp .ev-help__results p { margin: 4px 0 0; font-size: 13px; color: var(--ev-body); }

#evHelp .ev-help__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ev-grey); font-size: 13px; }
#evHelp .ev-help__actions { display: flex; gap: 8px; }
#evHelp .ev-help__actions .ev-help__btn { flex: 1 1 0; text-align: center; }
#evHelp .ev-help__chat-status { margin: 8px 0 0; color: var(--ev-muted); }
#evHelp .ev-help__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin: 10px 0 0; }

/* przyciski jak .btn.btn-sm z systemu */
#evHelp .ev-help__btn { display: inline-block; margin: 0; padding: 7px 12px; border: 1px solid var(--ev-green); border-radius: 6px; background: var(--ev-green); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
#evHelp .ev-help__btn:hover, #evHelp .ev-help__btn:focus-visible { border-color: var(--ev-green-dark); background: var(--ev-green-dark); color: #fff; text-decoration: none; outline: none; box-shadow: 0 0 0 3px var(--ev-green-ring); }
#evHelp .ev-help__btn--ghost { background: #fff; color: var(--ev-green-deep); }
#evHelp .ev-help__btn--ghost:hover, #evHelp .ev-help__btn--ghost:focus-visible { background: var(--ev-green-ring); color: var(--ev-green-deep); }
#evHelp .ev-help__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media print { #evHelp { display: none; } }
