/* Güldal Kampanya Litebox - isolated styles (blue theme) */
#gklb-overlay.gklb-overlay {
  position: fixed;
  inset: 0;
  /* Always stay above theme headers/menus (Enfold + others) */
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,var(--gklb-overlay,0.72));
  font-family: var(--gklb-font, inherit);
}

#gklb-overlay.gklb-open { display: flex; }

#gklb-overlay .gklb-modal {
  width: 100%;
  max-width: 560px;
  /* Mobile/iOS safe: do not overflow viewport; allow internal scroll */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 20px;
  background:
    radial-gradient(1000px 520px at 10% 0%, rgba(255,255,255,1) 0%, rgba(245,250,255,1) 45%, rgba(236,246,255,1) 100%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 22px 60px rgba(0,0,0,0.26);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

#gklb-overlay.gklb-open .gklb-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#gklb-overlay .gklb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(13,35,55,0.92);
  z-index: 5;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
#gklb-overlay .gklb-close:hover { transform: scale(1.05); }
#gklb-overlay .gklb-close span { font-size: 24px; line-height: 1; font-weight: 800; }

/* Prevent background scroll when popup is open (JS also fixes body for iOS) */
html.gklb-noscroll,
body.gklb-noscroll {
  overflow: hidden !important;
}

#gklb-overlay .gklb-head {
  padding: 18px 64px 18px 16px; /* right padding to avoid close overlap */
  background: linear-gradient(90deg, var(--gklb-accent,#0b5ed7) 0%, var(--gklb-accent2,#00b4ff) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

#gklb-overlay .gklb-head:before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 140px;
  height: 140px;
  border-radius: 40px;
  background: rgba(255,255,255,0.14);
  transform: rotate(18deg);
}
#gklb-overlay .gklb-head:after {
  content: "";
  position: absolute;
  left: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 44px;
  background: rgba(255,255,255,0.10);
  transform: rotate(-12deg);
}

#gklb-overlay .gklb-head-left { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
#gklb-overlay .gklb-icon {
  width: 46px; height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  font-size: 22px;
}

#gklb-overlay .gklb-headline { font-size: 14px; letter-spacing: .6px; opacity: .99; font-weight: 980; text-transform: uppercase; text-shadow: 0 3px 14px rgba(0,0,0,0.22); }
#gklb-overlay .gklb-brand { font-size: 17px; font-weight: 980; line-height: 1.2; }

@keyframes gklbPulse {
  0% { transform: translateY(0) scale(1); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
  60% { transform: translateY(-1px) scale(1.04); box-shadow: 0 16px 30px rgba(0,0,0,0.22); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
}

#gklb-overlay .gklb-badge {
  position: relative; z-index: 1;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  border: 1px solid rgba(255,255,255,0.34);
  font-size: 13px;
  font-weight: 980;
  letter-spacing: .45px;
  white-space: nowrap;
  animation: gklbPulse 2.1s ease-in-out infinite;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

#gklb-overlay .gklb-body {
  padding: 16px 16px 18px 16px;
  color: #0d2337;
  /* iOS/Android: allow scrolling within modal when content is tall */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}
#gklb-overlay .gklb-title {
  margin: 8px 0 10px 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 980;
  color: #0d2337;
}
#gklb-overlay .gklb-title:after{
  content:'';
  display:block;
  width: 52px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gklb-accent,#0b5ed7) 0%, var(--gklb-accent2,#00b4ff) 100%);
  opacity: .9;
}
#gklb-overlay .gklb-desc {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(13,35,55,0.78);
}

#gklb-overlay .gklb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#gklb-overlay .gklb-actions[data-cta-count="0"],
#gklb-overlay .gklb-actions[data-cta-count="1"] { grid-template-columns: 1fr; }
#gklb-overlay .gklb-actions[data-cta-count="3"] { grid-template-columns: 1fr 1fr 1fr; }
#gklb-overlay .gklb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border-radius: 16px;
  padding: 14px 14px;
  font-weight: 950;
  font-size: 14px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  user-select: none;
  min-height: 50px;
}

#gklb-overlay .gklb-btn-icon{margin-right:8px;font-size:16px;line-height:1}
#gklb-overlay .gklb-btn-text{line-height:1.1}

#gklb-overlay .gklb-btn-primary {
  background: linear-gradient(90deg, var(--gklb-accent,#0b5ed7) 0%, var(--gklb-accent2,#00b4ff) 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(11,94,215,0.24);
}
#gklb-overlay .gklb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(11,94,215,0.28); }

#gklb-overlay .gklb-btn-secondary {
  background: rgba(255,255,255,0.92);
  color: #0d2337;
  border-color: rgba(11,94,215,0.22);
}
#gklb-overlay .gklb-btn-secondary:hover { transform: translateY(-1px); border-color: rgba(11,94,215,0.35); }

#gklb-overlay .gklb-btn-ghost {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.72);
  color: rgba(13,35,55,0.90);
  border-color: rgba(0,0,0,0.06);
}
#gklb-overlay .gklb-btn-ghost:hover { transform: translateY(-1px); background: rgba(255,255,255,0.84); }

#gklb-overlay .gklb-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(13,35,55,0.62);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile */
@media (max-width: 560px) {
  #gklb-overlay.gklb-overlay {
    /* "Litebox en üstte" hissi + iOS safe areas */
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    /* Use safe-area insets when supported */
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
  }
  #gklb-overlay .gklb-modal { max-width: 520px; margin-left:auto; margin-right:auto; }
  /* On mobile, keep the layout airy but avoid endless vertical stacking */
  #gklb-overlay .gklb-actions { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  #gklb-overlay .gklb-title { font-size: 19px; }
  #gklb-overlay .gklb-close { width: 42px; height: 42px; border-radius: 16px; }

  /* Service buttons: more compact, still tappable */
  #gklb-overlay .gklb-btn{ padding: 12px 10px; min-height: 46px; font-size: 13px; border-radius: 14px; }
}



/* Contact row (Call + WhatsApp) */
#gklb-overlay .gklb-contact{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
#gklb-overlay .gklb-contact[data-count="1"]{ grid-template-columns: 1fr; }
#gklb-overlay .gklb-contact-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none !important;
  border-radius: 18px;
  padding: 14px 14px;
  min-height: 64px;
  font-weight: 950;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
#gklb-overlay .gklb-contact-btn:hover{ transform: translateY(-1px); box-shadow: 0 18px 34px rgba(0,0,0,0.18); }
#gklb-overlay .gklb-contact-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.96);
}
#gklb-overlay .gklb-contact-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 4px;
}
#gklb-overlay .gklb-contact-label{ font-size: 15px; font-weight: 990; }
#gklb-overlay .gklb-contact-sub{ font-size: 12px; font-weight: 900; opacity: .92; }

#gklb-overlay .gklb-contact-call{
  color:#fff;
  background: linear-gradient(90deg, var(--gklb-accent,#0b5ed7) 0%, var(--gklb-accent2,#00b4ff) 100%);
  border-color: rgba(255,255,255,0.18);
  animation: gklbCallPulse 1.8s ease-in-out infinite;
}

#gklb-overlay .gklb-contact-call .gklb-contact-icon{ background: rgba(255,255,255,0.18); }

#gklb-overlay .gklb-contact-wa{
  color:#fff;
  background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
  border-color: rgba(255,255,255,0.18);
}

#gklb-overlay .gklb-contact-wa .gklb-contact-icon{ background: rgba(255,255,255,0.18); }

@media (max-width: 560px){
  /* Prefer 2-up contact buttons on modern phones */
  #gklb-overlay .gklb-contact{ grid-template-columns: 1fr 1fr; }
  #gklb-overlay .gklb-contact-btn{ justify-content:center; min-height: 60px; padding: 12px 12px; }
  #gklb-overlay .gklb-contact-icon{ width: 40px; height: 40px; border-radius: 13px; }
  #gklb-overlay .gklb-contact-label{ font-size: 14px; }
}

@media (max-width: 380px){
  /* Very small phones: stack to avoid cramped text */
  #gklb-overlay .gklb-contact{ grid-template-columns: 1fr; }
  #gklb-overlay .gklb-contact-btn{ justify-content:flex-start; }
}
#gklb-overlay .gklb-trust{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(11,94,215,0.06);
  border: 1px solid rgba(11,94,215,0.12);
  color: rgba(13,35,55,0.78);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

#gklb-overlay .gklb-highlight{
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,180,255,0.10);
  border: 1px dashed rgba(11,94,215,0.28);
  color: rgba(13,35,55,0.88);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

/* ADIM-3/4: Mobile banner (conversion-friendly) */
#gklb-banner.gklb-banner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  /* Use safe-area insets when supported */
  left: calc(12px + env(safe-area-inset-left));
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 2147483646;
  display: none;
  font-family: var(--gklb-font, inherit);
}
#gklb-banner.gklb-open{ display: block; }
#gklb-banner .gklb-banner-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 42px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}
#gklb-banner .gklb-banner-title{
  font-weight: 950;
  font-size: 13px;
  color: #0d2337;
  line-height: 1.2;
}
#gklb-banner .gklb-banner-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(13,35,55,0.72);
  line-height: 1.2;
}
#gklb-banner .gklb-banner-actions{display:flex;align-items:center;gap:8px}
#gklb-banner .gklb-banner-open{
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 950;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--gklb-accent,#0b5ed7) 0%, var(--gklb-accent2,#00b4ff) 100%);
  box-shadow: 0 12px 22px rgba(11,94,215,0.22);
}
#gklb-banner .gklb-banner-open:active{transform:translateY(1px)}
#gklb-banner .gklb-banner-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.10);
  cursor: pointer;
}
#gklb-banner .gklb-banner-close span{font-size:22px;font-weight:900;line-height:1}
@media (min-width: 769px){
  #gklb-banner.gklb-banner{ display:none !important; }
}


@keyframes gklbCallPulse {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  55% { transform: translateY(-1px) scale(1.03); filter: brightness(1.07); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}
