/* 2026-12-02: één tooltip voor alle winkels, zoals het elementenboek ("Kruimelpad, pagina's en tooltip").
   Markup:
     <span class="ps-tip">
       <button type="button" class="ps-tip__btn" aria-label="Uitleg" aria-describedby="x"></button>
       <span class="ps-tip__pop" id="x" role="tooltip">Tekst (mag ook <strong> en <ul> bevatten)</span>
     </span>
   catalog/view/javascript/tip.js toont de inhoud van .ps-tip__pop in één zwevend ballonnetje (.ps-tip-float) aan de body,
   zodat het nooit wordt afgeknipt (tabellen, kaarten met overflow) en op iPad/telefoon met een tik werkt.
   Geladen in common/header.tpl voor alle winkels; kleuren vallen terug op vaste waarden als de --ps-tokens ontbreken. */

.ps-tip{position:relative;display:inline-flex;vertical-align:middle;line-height:1}
.ps-tip__btn{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:22px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;
  background:var(--ps-blue-bg2,hsl(216 80% 91%));color:var(--ps-primary,hsl(216 70% 42%));cursor:pointer;box-shadow:none;font-size:0;line-height:0;
  transition:background .15s ease,color .15s ease}
.ps-tip__btn::before{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20a10 10 0 1 1 0-20zM10.8 11a1.2 1.2 0 0 1 2.4 0v6a1.2 1.2 0 0 1 -2.4 0zM10.7 7.5a1.3 1.3 0 1 0 2.6 0a1.3 1.3 0 1 0 -2.6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20a10 10 0 1 1 0-20zM10.8 11a1.2 1.2 0 0 1 2.4 0v6a1.2 1.2 0 0 1 -2.4 0zM10.7 7.5a1.3 1.3 0 1 0 2.6 0a1.3 1.3 0 1 0 -2.6 0z'/%3E%3C/svg%3E") center/contain no-repeat}
.ps-tip__btn > *{display:none}
.ps-tip__btn:hover,.ps-tip__btn:focus-visible,.ps-tip.is-open .ps-tip__btn{background:var(--ps-primary,hsl(216 70% 42%));color:#fff;outline:0}

/* Inhoudsbron: verborgen; tip.js toont hem in het zwevende ballonnetje. Zonder JS: tonen bij aanwijzen/focus (boven het knopje). */
.ps-tip__pop{position:absolute;z-index:50;left:50%;bottom:calc(100% + 10px);width:min(280px,80vw);padding:12px 14px;border-radius:12px;
  background:var(--ps-ink,#14213d);color:#fff;font-size:15px;font-weight:400;line-height:1.45;text-align:left;white-space:normal;
  opacity:0;visibility:hidden;transform:translate(-50%,4px);pointer-events:none}
html:not(.ps-tip-js) .ps-tip:hover .ps-tip__pop,html:not(.ps-tip-js) .ps-tip:focus-within .ps-tip__pop{opacity:1;visibility:visible;transform:translate(-50%,0)}
html.ps-tip-js .ps-tip__pop{display:none}

/* Het zwevende ballonnetje */
.ps-tip-float{position:fixed;z-index:2147483000;left:0;top:0;width:max-content;max-width:min(280px,calc(100vw - 24px));padding:12px 14px;border-radius:12px;
  background:var(--ps-ink,#14213d);color:#fff;font-family:inherit;font-size:15px;font-weight:400;line-height:1.45;text-align:left;
  box-shadow:0 12px 32px rgba(20,33,61,.22);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}
.ps-tip-float.is-wide{max-width:min(340px,calc(100vw - 24px))}
.ps-tip-float.is-visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.ps-tip-float.is-below{transform:translateY(-4px)}
.ps-tip-float.is-below.is-visible{transform:none}
.ps-tip-float::after{content:"";position:absolute;left:var(--tip-arrow,50%);top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:var(--ps-ink,#14213d)}
.ps-tip-float.is-below::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:var(--ps-ink,#14213d)}
.ps-tip-float strong,.ps-tip-float b{color:#fff;font-weight:700}
.ps-tip-float strong:first-child:not(:only-child){display:block;margin-bottom:6px}
.ps-tip-float ul{margin:0;padding-left:18px}
.ps-tip-float li + li{margin-top:4px}
.ps-tip-float a{color:#fff;text-decoration:underline}
.ps-tip-float p{margin:0}
.ps-tip-float p + p{margin-top:6px}
