/* ==========================================================================
   CTE Ads — Sticky Bottom Banner (CANONICAL v1)
   - Hidden on >=1300px
   - CLOSED by default; opens only with .is-open
   - Close button always clickable (above iframe)
   - Supports 728x90 (desktop/tablet) and 320x50 (mobile)
   ========================================================================== */

/* Hide completely on >=1300px */
@media (min-width:1300px){
  #cte-sticky-banner{ display:none !important; }
}

/* Base container (exists in DOM but is visually hidden until .is-open) */
#cte-sticky-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;

  z-index: 2147483000;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 18px rgba(0,0,0,.18);

  /* iOS safe area */
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));

  display: flex;
  align-items: center;
  justify-content: center;

  /* CLOSED by default */
  transform: translateY(110%);
  transition: transform .22s ease;
  will-change: transform;

  /* Let the close button remain clickable; banner body itself should not steal clicks */
  pointer-events: none;
}

/* Open state */
#cte-sticky-banner.is-open{
  transform: translateY(0);
}

/* The ad slot wrapper */
#cte-sticky-banner .ad-bottom-banner{
  display: block;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;

  /* Ad content must be clickable */
  pointer-events: auto;
}

/* If GPT renders iframe/img */
#cte-sticky-banner .ad-bottom-banner iframe,
#cte-sticky-banner .ad-bottom-banner img{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border: 0;
}

/* Mobile sizing matches your header breakpoint (<=780px) */
@media (max-width:780px){
  #cte-sticky-banner .ad-bottom-banner{
    max-width: 320px;
  }
}

/* Close button (must sit above iframe) */
#cte-banner-close{
  position: absolute;
top: 8px;
right: 10px;

width: 36px;
height: 36px;
line-height: 36px;

  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;

border: 1px solid rgba(255,255,255,0.14);
backdrop-filter: blur(8px);
box-shadow: 0 8px 18px rgba(0,0,0,0.35);
display: grid;
place-items: center;


background: rgba(15, 20, 30, 0.72);
  color: rgba(255, 255, 255, 0.92);

  font-size: 16px;
  text-align: center;

  cursor: pointer;
  transition: background .2s ease;

  /* Critical: above everything inside banner */
  z-index: 2147483646;
  pointer-events: auto;
}

#cte-banner-close:hover{
  background: rgba(240, 127, 42, 0.88);
  border-color: rgba(240, 127, 42, 0.55);
  color: rgba(255,255,255,0.96);
}

#cte-banner-close svg{
  width: 18px;
  height: 18px;
  display: block;
}

#cte-banner-close svg path{
  fill: currentColor !important;
}
