/* TikSwipe Ad Bridge v0.4.4 — keep vendor creative sizes; Vertical VAST uses 9:16. */
.egtsa-slot {
  box-sizing:border-box;
  position:relative;
  width:min(100%,100vw);max-width:100vw;min-width:0;min-height:280px;
  height:min(100dvh,820px);
  margin:0 auto;
  padding:42px 12px 24px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(150deg,#16191f,#101116);
  color:#d7dce1;text-align:center;
}
.egtsa-ad-inner {display:flex; flex-direction:column; align-items:center; justify-content:center;width:100%;max-width:100%;min-width:0;}
.egtsa-ad-inner iframe,.egtsa-ad-inner video,.egtsa-ad-inner img{max-width:100%;}
.egtsa-ad-inner iframe{border:0;}
.egtsa-ad-inner ins{display:block;max-width:100%;margin-inline:auto;}
.egtsa-html-help{color:#b9c2cd;font:500 14px/1.5 system-ui,sans-serif;margin:12px 0;}
.egtsa-html-help[hidden]{display:none!important;}
.egtsa-html-next{margin:8px auto 0;padding:10px 18px;border:1px solid #8594a5;border-radius:25px;background:#f2f5f9;color:#111;font:600 14px system-ui,sans-serif;cursor:pointer;}
.egtsa-html-next[hidden]{display:none!important;}
.egtsa-label{position:absolute;z-index:6;top:10px;left:50%;transform:translateX(-50%);font:500 11px/1.2 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#bac4d1;pointer-events:none;text-shadow:0 1px 2px #000b;}
.egtsa-test{box-sizing:border-box;width:min(360px,100%);min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f7f7f7;color:#171717;border:2px dashed #29a57a;border-radius:12px;font:700 20px/1.4 system-ui,sans-serif;}
.egtsa-test small{color:#555;margin-top:12px;font:400 13px/1.5 system-ui,sans-serif;}
.egtsa-slot[data-egtsa-format="vast"]{padding:0;overflow:hidden;height:100dvh;max-height:none;min-height:0;max-width:100vw;margin-left:0;margin-right:0;background:radial-gradient(circle at center,#243444 0%,#12161e 65%,#0b0e14 100%);}
.egtsa-slot[data-egtsa-format="vast"]>.egtsa-html-help{color:#b9c2cd;font:500 14px/1.5 system-ui,sans-serif;margin:12px 0;}
.egtsa-html-help[hidden]{display:none!important;}
.egtsa-html-next{margin:8px auto 0;padding:10px 18px;border:1px solid #8594a5;border-radius:25px;background:#f2f5f9;color:#111;font:600 14px system-ui,sans-serif;cursor:pointer;}
.egtsa-html-next[hidden]{display:none!important;}
.egtsa-label{top:calc(12px + env(safe-area-inset-top,0px));}
.egtsa-vast-frame{position:relative;box-sizing:border-box;width:min(100%, calc(100dvh * 9 / 16));height:100%;max-height:100%;min-width:0;aspect-ratio:auto;flex:0 0 auto;overflow:hidden;background:#15191f;isolation:isolate;}
.egtsa-vast-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#15191f;}
.egtsa-vast-overlay{position:absolute;inset:0;z-index:2;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;}
/* Let Google IMA own the iframe dimensions and control hitboxes; size its container before requesting an ad. */
.egtsa-vast-overlay iframe{border:0;}
.egtsa-vast-message{position:absolute;left:12px;right:12px;top:50%;transform:translateY(-50%);z-index:3;pointer-events:none;color:#cfd8e4;font:500 14px/1.5 system-ui,sans-serif;text-align:center;text-shadow:0 1px 4px #000e;}
.egtsa-vast-action{position:absolute;left:50%;top:58%;transform:translateX(-50%);z-index:5;border:1px solid #728296;border-radius:100px;padding:12px 18px;min-width:130px;background:#f6f8fb;color:#151a23;font:600 14px/1.2 system-ui,sans-serif;cursor:pointer;}
.egtsa-vast-action[hidden]{display:none!important;}
.egtsa-debug-panel{position:fixed;right:8px;bottom:8px;z-index:2147483500;width:min(330px,calc(100vw - 16px));max-height:55vh;overflow:auto;padding:10px;border:1px solid #2bbd83;border-radius:8px;background:#111;color:#fff;font:12px/1.45 monospace;box-shadow:0 8px 24px #0008;text-align:left;}
.egtsa-debug-panel pre{margin:0 0 6px;white-space:pre-wrap;word-break:break-word;}
.egtsa-debug-panel button{color:#111;background:#e7e7e7;border:0;border-radius:4px;padding:5px 9px;margin-right:6px;cursor:pointer;}
@media(max-width:767px){
 .egtsa-slot{height:100dvh;padding:46px 8px 20px;}
 .egtsa-slot[data-egtsa-format="vast"]{padding:0;align-items:stretch;justify-content:center;}
 .egtsa-vast-frame{width:100%;height:100%;max-width:100%;aspect-ratio:auto;margin:0 auto;}
}

/* No-fill / unavailable creative: Arabic swipe cue with a gentle down-arrow. */
.egtsa-no-ad-hint {
  direction:rtl;
  text-align:center;
  font:600 clamp(16px,4.2vw,21px)/1.6 system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;
  color:#f5f7fb;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}
.egtsa-no-ad-hint::after {
  content:"\2193";
  display:block;
  width:max-content;
  margin:12px auto 0;
  color:#f5f7fb;
  font:400 48px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  animation:egtsa-arrow-down 1.4s ease-in-out infinite;
}
@keyframes egtsa-arrow-down {
  0%,100% { transform:translateY(0); opacity:.8; }
  50% { transform:translateY(9px); opacity:1; }
}
@media (prefers-reduced-motion: reduce) {
  .egtsa-no-ad-hint::after { animation:none; }
}
