/* Kobicart KVKK Gizlilik Notu — compact, mobile-first */
.kc-kvkk {
  --kc-kvkk-accent: #0F3D3E;
  --kc-kvkk-ink: #1a2423;
  --kc-kvkk-paper: #f6f3ee;
  --kc-kvkk-line: rgba(26, 36, 35, 0.12);
  --kc-kvkk-shadow: 0 10px 28px rgba(15, 61, 62, 0.18);
  font-family: "Segoe UI", system-ui, sans-serif;
  z-index: 99980;
  color: var(--kc-kvkk-ink);
}

.kc-kvkk[hidden] { display: none !important; }

.kc-kvkk__bar {
  position: fixed;
  left: max(0.5rem, env(safe-area-inset-left));
  right: max(0.5rem, env(safe-area-inset-right));
  bottom: max(0.5rem, env(safe-area-inset-bottom));
  z-index: 99981;
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: var(--kc-kvkk-paper);
  border: 1px solid var(--kc-kvkk-line);
  border-radius: 14px;
  box-shadow: var(--kc-kvkk-shadow);
  animation: kc-kvkk-up 0.2s ease;
}

@keyframes kc-kvkk-up {
  from { transform: translateY(10px); opacity: 0.35; }
  to { transform: translateY(0); opacity: 1; }
}

.kc-kvkk__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.kc-kvkk__eyebrow {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kc-kvkk-accent);
}

.kc-kvkk__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 750;
}

.kc-kvkk__msg {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.82;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kc-kvkk__policy {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--kc-kvkk-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.kc-kvkk__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.kc-kvkk__actions .kc-kvkk__btn--solid {
  grid-column: 1 / -1;
}

.kc-kvkk__btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.kc-kvkk__btn--solid {
  background: var(--kc-kvkk-accent);
  color: #fff;
}

.kc-kvkk__btn--soft {
  background: rgba(15, 61, 62, 0.08);
  color: var(--kc-kvkk-ink);
  border-color: var(--kc-kvkk-line);
}

.kc-kvkk__btn--ghost {
  background: transparent;
  color: var(--kc-kvkk-ink);
  border-color: var(--kc-kvkk-line);
}

.kc-kvkk__btn--block {
  width: 100%;
}

.kc-kvkk__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 18, 0.4);
  z-index: 99982;
}

.kc-kvkk__backdrop[hidden],
.kc-kvkk__sheet[hidden] {
  display: none !important;
}

.kc-kvkk__sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99983;
  max-height: min(78vh, 480px);
  padding: 0.55rem 0.85rem max(0.85rem, env(safe-area-inset-bottom));
  background: var(--kc-kvkk-paper);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--kc-kvkk-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: kc-kvkk-up 0.2s ease;
}

.kc-kvkk__handle {
  width: 36px;
  height: 3px;
  border-radius: 99px;
  background: var(--kc-kvkk-line);
  margin: 0.05rem auto 0.1rem;
}

.kc-kvkk__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kc-kvkk__sheet-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
}

.kc-kvkk__x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(26, 36, 35, 0.06);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.kc-kvkk__rows {
  display: grid;
  gap: 0.4rem;
  overflow: auto;
}

.kc-kvkk__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--kc-kvkk-line);
  border-radius: 10px;
}

.kc-kvkk__row-title {
  font-weight: 700;
  font-size: 0.84rem;
}

.kc-kvkk__row-desc {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.72;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kc-kvkk__switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.kc-kvkk__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kc-kvkk__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(26, 36, 35, 0.18);
  transition: 0.15s ease;
  cursor: pointer;
}

.kc-kvkk__switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.kc-kvkk__switch input:checked + span {
  background: var(--kc-kvkk-accent);
}

.kc-kvkk__switch input:checked + span::after {
  transform: translateX(18px);
}

.kc-kvkk__switch.is-locked span {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .kc-kvkk__bar {
    left: 50%;
    right: auto;
    bottom: 0.85rem;
    width: min(760px, calc(100vw - 1.5rem));
    transform: translateX(-50%);
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
  }

  .kc-kvkk__msg {
    -webkit-line-clamp: 1;
  }

  .kc-kvkk__actions {
    grid-template-columns: auto auto auto;
    justify-content: end;
  }

  .kc-kvkk__actions .kc-kvkk__btn--solid {
    grid-column: auto;
  }

  .kc-kvkk__btn {
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
  }

  .kc-kvkk__sheet {
    left: auto;
    right: 0.85rem;
    bottom: 0.85rem;
    width: min(360px, calc(100vw - 1.5rem));
    border-radius: 14px;
    max-height: min(70vh, 420px);
  }

  .kc-kvkk__handle { display: none; }
}
