/* KVKK / çerez bildirimi */
.kvkk-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}

.kvkk-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.kvkk-bar.is-hiding {
  transform: translateY(110%);
  opacity: 0;
}

.kvkk-bar__inner {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  box-shadow:
    0 10px 40px rgba(15, 23, 42, .12),
    0 2px 8px rgba(15, 23, 42, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kvkk-bar__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.kvkk-bar__text a {
  color: #f4822e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 130, 46, .35);
}

.kvkk-bar__text a:hover {
  color: #d96a1a;
  border-bottom-color: #d96a1a;
}

.kvkk-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kvkk-bar__btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease, color .15s ease;
}

.kvkk-bar__btn--accept,
.kvkk-bar__btn--save {
  background: linear-gradient(135deg, #f4822e 0%, #e86f18 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(244, 130, 46, .28);
}

.kvkk-bar__btn--accept:hover,
.kvkk-bar__btn--save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244, 130, 46, .38);
}

.kvkk-bar__btn--reject,
.kvkk-bar__btn--settings {
  background: #fff;
  color: #f4822e;
  border: 1.5px solid #f4822e;
}

.kvkk-bar__btn--reject:hover,
.kvkk-bar__btn--settings:hover {
  background: #fff7ed;
}

.kvkk-bar__settings {
  display: none;
}

.kvkk-bar.is-settings .kvkk-bar__main {
  display: none;
}

.kvkk-bar.is-settings .kvkk-bar__settings {
  display: block;
}

.kvkk-bar__settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.kvkk-bar__settings-head strong {
  font-size: 15px;
  color: #0f172a;
}

.kvkk-bar__back {
  border: none;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.kvkk-bar__category {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fafafa;
}

.kvkk-bar__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.kvkk-bar__category-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.kvkk-bar__always {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Toggle switch */
.kvkk-bar__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.kvkk-bar__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kvkk-bar__switch span {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}

.kvkk-bar__switch span:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.kvkk-bar__switch input:checked + span {
  background: #f4822e;
}

.kvkk-bar__switch input:checked + span:before {
  transform: translateX(20px);
}

.kvkk-bar__switch input:focus-visible + span {
  outline: 2px solid rgba(244, 130, 46, .45);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .kvkk-bar {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .kvkk-bar__inner {
    padding: 14px;
    border-radius: 12px;
  }

  .kvkk-bar__text {
    font-size: 13px;
  }

  .kvkk-bar__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kvkk-bar__btn {
    width: 100%;
    padding: 12px 16px;
  }
}
