/* KoraStats public website consent panel
   Uses the corporate v2 ink / teal design tokens. */
#ks-cookie-panel[hidden],
#ks-cookie-customize[hidden],
#ks-cookie-save[hidden] { display: none !important; }

#ks-cookie-panel {
  position: fixed;
  z-index: 99999;
  right: clamp(12px, 3vw, 38px);
  bottom: clamp(14px, 3vw, 38px);
  left: auto;
  width: min(520px, calc(100vw - 24px));
  max-height: min(84vh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 2.3vw, 30px);
  color: #f5fbf9;
  background: linear-gradient(153deg, #142824 0%, #091512 62%, #07100e 100%);
  border: 1px solid rgba(170, 220, 211, .24);
  border-radius: 18px;
  box-shadow: 0 26px 75px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  font: 400 14px/1.65 Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: ksc-consent-reveal .28s ease-out both;
}
#ks-cookie-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: 0;
  right: 0;
  width: 210px;
  height: 185px;
  background: radial-gradient(circle at top right, rgba(56,169,179,.18), transparent 72%);
}
#ks-cookie-panel > * { position: relative; z-index: 1; }
#ks-cookie-panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 13px;
  color: #fff;
  font: 700 clamp(20px, 2vw, 24px)/1.25 Manrope, Inter, sans-serif;
  letter-spacing: -.035em;
}
#ks-cookie-panel h2::before {
  content: "";
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background-color: rgba(56,169,179,.13);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235bd5d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(56,169,179,.3);
  border-radius: 11px;
}
#ks-cookie-panel p {
  margin: 0;
  color: #bdcbc6;
  font-size: 13px;
  line-height: 1.85;
}
#ks-cookie-panel a {
  color: #7ce0df;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
#ks-cookie-panel a:hover { color: #c3ffff; }
.ks-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
#ks-cookie-panel .ks-cookie-actions button {
  min-height: 45px;
  padding: 10px 13px;
  border: 1px solid #38a9b3;
  border-radius: 9px;
  color: #061512;
  background: #38a9b3;
  font: 700 13px/1.3 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#ks-cookie-panel .ks-cookie-actions button:hover {
  background: #6bcdd2;
  border-color: #6bcdd2;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(56,169,179,.16);
}
#ks-cookie-panel .ks-cookie-actions button.ks-cookie-outline {
  background: rgba(255,255,255,.045);
  border-color: rgba(221,243,236,.22);
  color: #f1f7f4;
}
#ks-cookie-panel .ks-cookie-actions button.ks-cookie-outline:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(221,243,236,.45);
  box-shadow: none;
}
#ks-cookie-customize-button { grid-column: 1 / -1; }
#ks-cookie-save { grid-column: 1 / -1; }
.ks-cookie-preferences {
  display: grid;
  gap: 0;
  padding: 9px 15px;
  margin-top: 19px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
}
.ks-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  min-height: 50px;
  padding: 11px 0;
  color: #e8f2ee;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.ks-cookie-option + .ks-cookie-option { border-top: 1px solid rgba(255,255,255,.09); }
.ks-cookie-option strong {
  color: #80d7d1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.ks-cookie-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 40px;
  width: 40px;
  height: 23px;
  margin: 0;
  background: #4d6560;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background .16s ease;
}
.ks-cookie-option input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.24);
  transition: transform .16s ease;
}
.ks-cookie-option input[type="checkbox"]:checked {
  background: #38a9b3;
  border-color: #38a9b3;
}
.ks-cookie-option input[type="checkbox"]:checked::after { transform: translateX(17px); }
#ks-cookie-panel button:focus-visible,
#ks-cookie-panel a:focus-visible,
#ks-cookie-panel input:focus-visible,
.ks-cookie-settings:focus-visible {
  outline: 3px solid #8fe5df;
  outline-offset: 3px;
}
.ks-cookie-settings {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #eaf9f5;
  background: #132824;
  border: 1px solid rgba(56,169,179,.4);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,.13);
  font: 600 12px/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
}
.ks-cookie-settings:hover { color: #fff; background: #1c3b35; }
.ks-cookie-settings::before {
  content: "";
  width: 15px;
  height: 15px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235bd5d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4m0 4h.01'/%3E%3C/svg%3E");
}
@keyframes ksc-consent-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  #ks-cookie-panel {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    max-height: min(85dvh, 720px);
    border-radius: 15px;
    padding: 19px;
  }
  #ks-cookie-panel h2 { font-size: 20px; }
  #ks-cookie-panel h2::before { flex-basis: 36px; width: 36px; height: 36px; }
  .ks-cookie-settings { right: 10px; padding: 8px 11px; }
}
@media (max-width: 360px) {
  .ks-cookie-actions { grid-template-columns: 1fr; }
  #ks-cookie-customize-button, #ks-cookie-save { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #ks-cookie-panel { animation: none; }
  #ks-cookie-panel .ks-cookie-actions button, .ks-cookie-option input[type="checkbox"], .ks-cookie-option input[type="checkbox"]::after { transition: none; }
}
