#krest-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483646;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 13, 22, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* ensure visible above chat widgets */
  transform: translateZ(0);
}
#krest-cookie-banner.krest-cookie-hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.krest-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.krest-cookie-text {
  flex: 1;
  min-width: 200px;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.krest-cookie-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #f9fafb;
}
.krest-cookie-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}
.krest-cookie-text a {
  color: #38bdf8;
  text-decoration: underline;
}
.krest-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.krest-cookie-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px; /* touch target */
  transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.krest-cookie-btn:hover { transform: translateY(-1px); }
.krest-cookie-btn-primary {
  background: linear-gradient(135deg, #0052cc, #0084ff);
  color: #fff;
}
.krest-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) {
  #krest-cookie-banner {
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 12px));
  }
  .krest-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .krest-cookie-actions {
    width: 100%;
    flex-direction: column-reverse;
  }
  .krest-cookie-btn {
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 14px 16px;
  }
}
