.wf-popover{position:fixed;z-index:1200;display:flex;gap:12px;width:380px;max-width:calc(100vw - 32px);max-height:calc(100vh - 16px);overflow:auto;padding:17px 18px;border:1px solid #75664e;border-radius:10px;background:linear-gradient(155deg,#151e2c,#0a101a);box-shadow:0 15px 40px #0009;color:#edf0f5;font-family:"Trebuchet MS",Arial,sans-serif;font-size:13px;line-height:1.48;text-align:left;overflow-wrap:anywhere}
.wf-popover[hidden]{display:none!important}.wf-tip-icon{flex:0 0 36px;width:36px;height:36px;border:1px solid #737177;border-radius:5px}.wf-tip-content{min-width:0;flex:1}.wf-tip-title{display:block;margin-bottom:8px;font-size:14px;line-height:1.4}.wf-stat-lines{display:grid;gap:4px}.wf-stat-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;margin:0!important;font-size:inherit;line-height:1.5}.wf-stat-line span{min-width:0}.wf-stat-effect{color:#91cc7f}.wf-stat-unavailable{margin:0;color:#9da7b8;font-size:13px}.wf-quality-0{color:#9d9d9d}.wf-quality-1{color:#fff}.wf-quality-2{color:#65c651}.wf-quality-3{color:#63aaff}.wf-quality-4{color:#c08bf4}.wf-quality-5{color:#f5ad59}.wf-quality-6,.wf-quality-7{color:#edce91}.item-stats .wf-stat-lines{gap:9px;font-size:14px}.item-stats h2{margin-bottom:20px}.item-stats[data-state="waiting"] [data-stat-content]{min-height:120px}.quest-prose .quest-note,.quest-prose .quest-original,.quest-prose details:has(.source-list),.quest-prose>p:has(>a[href*="wowhead.com"]){display:none}
@media(max-width:520px){.wf-popover{gap:10px;padding:14px;font-size:12.5px}.wf-tip-title{font-size:13px}.item-stats .wf-stat-lines{font-size:13px}}

/* v1.4.3: interactive game terms are local tooltip buttons, not outbound links. */
.wf-term,.wf-bis-term{font:inherit;letter-spacing:inherit;line-height:inherit;appearance:none;border:0;padding:0;margin:0;background:transparent;color:inherit;text-align:inherit;display:inline;cursor:help;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;text-decoration-color:currentColor}
.prose .wf-term{color:#bfa16e;text-decoration-color:#bfa16e80}
.wf-term:hover,.wf-bis-term:hover,.wf-term:focus-visible,.wf-bis-term:focus-visible{color:#f0cf91;text-decoration-style:solid}
.wf-reference-wowhead{color:inherit;cursor:default;text-decoration:none}
.wf-term:focus-visible,.wf-bis-term:focus-visible{outline:2px solid #e3b774;outline-offset:3px;border-radius:3px}
.quest-prose>p:has(>.wf-reference-wowhead){display:none}
@media(pointer:coarse){.wf-popover{pointer-events:auto}}


/* v1.4.6: structured item tooltip consistent with WoW item qualities */
.wf-popover--item{box-sizing:border-box;position:fixed;isolation:isolate;width:390px;max-width:calc(100vw - 20px);min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:0 10px;padding:16px 16px 30px;border:1px solid #566c8b;border-radius:9px;background:linear-gradient(170deg,#080f1f 0%,#070b18 80%);box-shadow:0 13px 40px #000c, inset 0 0 0 1px #101a32;color:#f4f5f8;font:14px/1.38 Arial,Helvetica,sans-serif;overflow-y:auto;overflow-x:hidden;overflow-wrap:normal}
.wf-popover--item .wf-tip-icon{grid-column:1;width:36px;height:36px;margin:0;align-self:start;border:1px solid #475a7e;border-radius:5px;box-shadow:0 0 0 1px #05070d;object-fit:cover}
.wf-popover--item .wf-tip-content{grid-column:2;min-width:0;position:relative;z-index:1}
.wf-popover--item:not(:has(.wf-tip-icon)) .wf-tip-content{grid-column:1/-1}
.wf-popover--item .wf-tip-title{display:block;max-width:calc(100% - 54px);font-size:16px;line-height:1.25;font-weight:700;margin:0 0 2px;overflow-wrap:break-word}
.wf-popover--item .wf-stat-lines{display:block;margin:0;}
.wf-popover--item .wf-stat-line{display:block;font-size:14px;line-height:1.3;margin:0 0 3px!important;white-space:normal;overflow-wrap:break-word;color:#f2f4f8}
.wf-popover--item .wf-stat-line--slot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.wf-popover--item .wf-stat-line--level{color:#ffcc37;font-weight:700;margin-bottom:4px!important}
.wf-popover--item .wf-stat-line--binding{color:#f2f4f8}
.wf-popover--item .wf-stat-line--attribute{color:#fff}
.wf-popover--item .wf-stat-line--requirement{color:#eceef5}
.wf-popover--item .wf-stat-line--effect{color:#22ef41;line-height:1.42;margin:6px 0 4px!important}
.wf-popover--item .wf-stat-line--price{color:#c6cbd5;margin-top:6px!important}
.wf-popover--item .wf-stat-unavailable{color:#9ba7bf}
.wf-popover--item .wf-tip-brand{position:absolute;top:7px;right:8px;max-width:66px;width:66px;height:47px;object-fit:contain;object-position:center;opacity:.85;pointer-events:none;z-index:2;filter:drop-shadow(0 2px 5px #0009)}
.wf-popover--item .wf-tip-source{position:absolute;bottom:9px;right:13px;font:10px/1.2 Arial,Helvetica,sans-serif;color:#76849f}
.wf-popover--item .wf-quality-0{color:#9d9d9d!important}.wf-popover--item .wf-quality-1{color:#fff!important}.wf-popover--item .wf-quality-2{color:#1eff00!important}.wf-popover--item .wf-quality-3{color:#0070dd!important}.wf-popover--item .wf-quality-4{color:#a335ee!important}.wf-popover--item .wf-quality-5{color:#ff8000!important}.wf-popover--item .wf-quality-6,.wf-popover--item .wf-quality-7{color:#e6cc80!important}
.bis-item__title.wf-quality-0{color:#9d9d9d}.bis-item__title.wf-quality-1{color:#f1f2f5}.bis-item__title.wf-quality-2{color:#1eff00}.bis-item__title.wf-quality-3{color:#338ef5}.bis-item__title.wf-quality-4{color:#ba69f5}.bis-item__title.wf-quality-5{color:#ffa135}
@media(max-width:520px){.wf-popover--item{width:min(390px,calc(100vw - 16px));padding:12px 12px 27px;grid-template-columns:34px minmax(0,1fr);gap:0 8px}.wf-popover--item .wf-tip-icon{width:32px;height:32px}.wf-popover--item .wf-tip-title{font-size:14px;max-width:calc(100% - 48px)}.wf-popover--item .wf-stat-line{font-size:12.5px}.wf-popover--item .wf-tip-brand{top:5px;right:5px;width:49px;height:37px}}

.wf-popover--item{padding-bottom:15px;background:#121212;border-color:#444;box-shadow:0 15px 35px #0009}.wf-popover--item .wf-tip-title{max-width:none}.wf-popover--item .wf-tip-brand,.wf-popover--item .wf-tip-source{display:none!important}

/* WoW Forever 1.4.17: spell tooltips and inline terms */
.wf-game-linked-term{font-weight:600!important;letter-spacing:0;cursor:help}
.wf-game-linked-term .wf-term-icon{display:inline-block!important;vertical-align:-.19em;width:18px;height:18px;max-width:none;max-height:none;margin:0 6px 0 0;border:1px solid #625644;border-radius:4px;object-fit:cover;box-shadow:0 1px 3px #0008}
.prose .wf-game-linked-term{color:#d5b37c;font-weight:600!important}
.prose .wf-game-linked-term:hover{color:#f6d9a5}
.wf-popover--spell{width:420px;max-width:calc(100vw - 18px);background:#0c1019;border:1px solid #5d6673;border-radius:8px;padding:15px 17px;box-shadow:0 14px 40px #000c;line-height:1.45;color:#f4f4f5;gap:12px}
.wf-popover--spell .wf-tip-icon{width:41px;height:41px;flex-basis:41px;border:1px solid #82745b;border-radius:5px}
.wf-popover--spell .wf-tip-title{font-size:17px;margin:0 0 11px;font-weight:750;color:#fff}
.wf-spell-properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:6px;border-bottom:1px solid #ffffff16;padding-bottom:10px;margin-bottom:8px}
.wf-spell-property{font-size:13px;margin:0!important;color:#f1f1f2;line-height:1.4}
.wf-spell-requirements{display:grid;gap:4px;margin:6px 0}
.wf-spell-requirement{margin:0!important;font-size:13px;color:#dedfe3}
.wf-spell-description{margin-top:10px;color:#ffd133;font-size:13px;line-height:1.55}
.wf-spell-description p{margin:0 0 6px!important;color:#ffd133}.wf-spell-description p:last-child{margin-bottom:0!important}
@media(max-width:520px){.wf-popover--spell{padding:13px;font-size:12px}.wf-popover--spell .wf-tip-title{font-size:15px}.wf-spell-property,.wf-spell-requirement,.wf-spell-description{font-size:12px}}
