/////////////////////////////
// BlocsTools Tooltip Pro //
////////////////////////////

.ap-tooltip{ display:block; width:100%; }

.tp-editor-preview{ box-sizing:border-box; }
.tp-editor-preview .tp-editor-preview-inner{ display:inline-flex; align-items:center; gap:8px; }
.tp-editor-preview .tp-editor-preview-text{ display:inline-block; }


.tp-bubble{
  position:fixed;
  z-index:999999;
  box-sizing:border-box;
  background:var(--tp-bg,#111);
  color:var(--tp-color,#fff);
  border-radius:var(--tp-radius,8px);
  border:var(--tp-border,none);
  font-family:var(--tp-font-family,inherit);
  max-width:420px;
  width:max-content;
  box-shadow:0 6px 20px rgba(0,0,0,.20);
  opacity:0;
  transition:opacity .12s ease;
}
.tp-bubble[aria-hidden="false"]{ opacity:1; }

.tp-bubble .tp-inner{
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1.35;
  font-size:.95rem;
  overflow-wrap:anywhere;
  padding:10px 12px;
}

.tp-bubble.tp-icon-right .tp-inner{
  flex-direction:row-reverse;
}

.tp-bubble .tp-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  flex:0 0 auto;
}
.tp-bubble .tp-icon svg{
  width:2.2em;
  height:2.2em;
  vertical-align:middle;
}
.tp-bubble .tp-text{ display:inline-block; }

.tp-bubble .tp-arrow-border,
.tp-bubble .tp-arrow-fill{
  position:absolute;
  width:0; height:0;
  border-style:solid;
  pointer-events:none;
}
.tp-bubble .tp-arrow-border{ z-index:-1; }

span.tp-active{ text-decoration:none; }

@media (max-width:480px){
  .tp-bubble{ max-width:90vw; }
  .tp-bubble .tp-inner{ padding:9px 10px; }
}

.tp-bubble .tp-img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 0 8px 0;
  border-radius:4px;
  object-fit:contain;
  flex:0 0 100%;
}

.tp-bubble .tp-img,
.tp-bubble .tp-img-wrap,
.tp-bubble .tp-img-bg{
  border-radius: var(--tp-img-radius, var(--tp-radius,0px)) !important;
  overflow: hidden !important;
  -webkit-clip-path: inset(0 round var(--tp-img-radius, var(--tp-radius,0px))) !important;
  clip-path: inset(0 round var(--tp-img-radius, var(--tp-radius,0px))) !important;
}

.tp-bubble .tp-video-wrap{
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  margin: 0 0 8px 0;
  overflow: hidden;
}

.tp-bubble .tp-video-wrap::before{
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.tp-bubble .tp-video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: var(--tp-img-radius, var(--tp-radius,0px));
}

.tp-bubble .tp-linkcard{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  flex:0 0 100%;
  cursor:pointer;
  text-decoration:none;
  border-radius:calc(var(--tp-radius,8px) - 2px);
  overflow:hidden;
  background-color:rgba(0,0,0,.18);
  margin:0 0 8px 0;
}

.tp-bubble .tp-linkcard-thumb{
  width:100%;
  flex:0 0 auto;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:rgba(0,0,0,.25);
}

.tp-bubble .tp-linkcard-body{
  flex:1 1 auto;
  padding:8px 10px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.tp-bubble .tp-linkcard-title{
  font-weight:600;
  font-size:0.95em;
}

.tp-bubble .tp-linkcard-text{
  font-size:0.85em;
  line-height:1.3;
  opacity:.9;
}

.tp-bubble .tp-linkcard-domain{
  font-size:0.8em;
  opacity:.8;
  margin-top:auto;
}
