/* Global Button */
.kvkk-btn {
  background: #fff;
  color: #083C74;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;       /* bumped up on desktop */
  font-weight: 700;      /* a little bolder */
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
}
.kvkk-btn:hover {
  background: #eaeaea;
  transform: translateY(-1px);
}

/* 1) Remove hard line-breaks */
#kvkk-banner br {
  display: none;
}

/* 2) Make the banner a flex container */
#kvkk-banner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;   /* top/bottom 8px, left/right 12px */
  min-height: 48px;                /* forces a consistent height */
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

/* 3) Enlarge and vertically center the logo */
#kvkk-banner img.kvkk-logo--banner {
  height: 16px;    /* big enough to fill the banner */
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* 4) Vertically center links and buttons */
#kvkk-banner a,
#kvkk-banner .kvkk-btn {
  vertical-align: middle;
}

/* 5) Tighter button spacing */
#kvkk-banner .kvkk-btn {
  margin: 0 6px;
  padding: 6px 10px;
  font-size: 13px;
}


/* Modal Overlay & Content */
#kvkk-modal { position: fixed; inset:0; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center; z-index:99998;
}
#kvkk-modal-content {
  background: #083C74; color: #fff;
  position: relative;
  padding: 20px 16px 56px;
  border-radius: 8px; max-width:460px; width:90%;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  max-height: 90vh; overflow-y: auto;
}
#kvkk-modal-content h3 {
  margin: 0 0 16px;
  font-size: 22px;        
  font-weight: 700;
  line-height: 1.2;
}

/* Close Button */
#kvkk-close-settings {
  position: absolute; top:8px; right:8px;
  background: transparent; border:none;
  font-size: 20px; color:#fff; cursor:pointer;
}
#kvkk-close-settings:hover { color: #eaeaea; }

/* Accordion Group */
.accordion-group {
  background: rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  transition: background 0.3s;
}
.accordion-group.open {
  background: rgba(255,255,255,0.08);
}

/* Toggle Row */
.toggle-label {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.toggle-label span {
  font-size: 15px;       
  font-weight: 500;
}
.toggle-label span small {
  font-size: 13px;
  opacity: 0.8; margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative; width:44px; height:24px; flex-shrink:0;
}
.toggle-switch input { display:none; }
.toggle-switch-background {
  position:absolute; inset:0;
  background:#ccc; border-radius:24px;
  transition: background 0.3s;
}
.toggle-switch-handle {
  position:absolute; top:2px; left:2px;
  width:20px; height:20px;
  background:#fff; border-radius:50%;
  transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-switch-background {
  background:#05c46b;
}
.toggle-switch input:checked + .toggle-switch-background 
  .toggle-switch-handle {
    transform:translateX(20px);
}

/* Accordion Content */
.accordion-content {
  max-height: 180px; opacity:1; overflow:hidden;
  background:#083C74; color:#fff;
  font-size: 14px;       
  line-height:1.5;
  padding: 8px 12px; margin-top:10px;
  border-radius:4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Modal Footer */
.kvkk-modal-footer {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:20px; padding-top:8px;
  border-top:1px solid rgba(255,255,255,0.2);
}
.kvkk-logo--modal-footer {
  height:56px;         
  opacity: 0.85;
}
.kvkk-modal-footer .kvkk-btn {
  margin:0; padding:8px 16px; font-size:14px;  
}

/* Mobile Overrides */
@media (max-width:480px) {
  #kvkk-modal-content {
    padding:16px 12px 48px;
  }
  #kvkk-modal-content h3 {
    font-size:18px; margin-bottom:12px;
  }
  .accordion-group {
    padding:8px 12px; margin-bottom:12px;
  }
  .toggle-label span { font-size:14px; }
  .toggle-label span small { font-size:12px; }
  .toggle-switch { width:36px; height:20px; }
  .toggle-switch-handle {
    width:16px; height:16px; top:2px; left:2px;
  }
  .toggle-switch input:checked + .toggle-switch-background 
    .toggle-switch-handle {
      transform:translateX(16px);
  }
  .accordion-content {
    font-size:13px; padding:6px 10px; margin-top:8px;
    max-height:140px;
  }
  .kvkk-btn {
    padding:6px 12px; font-size:12px;
  }
  #kvkk-banner {
    padding:6px 10px 16px; /* added bottom padding on mobile */
    font-size:12px;
  }
  #kvkk-banner img.kvkk-logo--banner {
    height:40px;         /* double on mobile too */
    margin-right:4px;
  }
  #kvkk-banner .kvkk-btn {
    padding:4px 8px; font-size:11px; margin:2px 2px;
  }
}
