.comteo-cookie[hidden] {
  display: none !important;
}

html.comteo-cookie-open,
html.comteo-cookie-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

body.comteo-cookie-body-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  touch-action: none;
}

.comteo-cookie {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  align-items: end;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  font-family: "Inter", "Nunito", "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #101827;
}

.comteo-cookie__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .18);
  backdrop-filter: blur(3px);
}

.comteo-cookie__panel {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  padding: 22px;
  display: grid;
  gap: 16px;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.comteo-cookie__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.comteo-cookie__eyebrow {
  margin: 0 0 4px;
  color: #1411f0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comteo-cookie h2,
.comteo-cookie h3,
.comteo-cookie p {
  margin: 0;
}

.comteo-cookie h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
}

.comteo-cookie h3 {
  font-size: 15px;
  line-height: 1.25;
}

.comteo-cookie__intro,
.comteo-cookie__foot,
.comteo-cookie__choice p {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.comteo-cookie__close {
  width: 36px;
  height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.comteo-cookie__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.comteo-cookie__choice {
  min-height: 112px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.comteo-cookie__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.comteo-cookie__switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background .18s ease;
}

.comteo-cookie__switch::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .24);
  transition: transform .18s ease;
}

.comteo-cookie__choice input:checked + .comteo-cookie__switch {
  background: #04bf7b;
}

.comteo-cookie__choice input:checked + .comteo-cookie__switch::after {
  transform: translateX(20px);
}

.comteo-cookie__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 28px;
  border-radius: 999px;
  background: #e7f8f1;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.comteo-cookie__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.comteo-cookie__actions.is-custom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comteo-cookie__btn {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #cfd8e3;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.comteo-cookie__btn--light {
  background: #fff;
  color: #111827;
}

.comteo-cookie__btn--primary {
  background: #1411f0;
  border-color: #1411f0;
  color: #fff;
}

.comteo-cookie__foot a {
  color: #1411f0;
  font-weight: 900;
}

@media (max-width: 760px) {
  .comteo-cookie {
    padding: 12px;
  }

  .comteo-cookie__panel {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
  }

  .comteo-cookie__choices,
  .comteo-cookie__actions,
  .comteo-cookie__actions.is-custom {
    grid-template-columns: 1fr;
  }

  .comteo-cookie__choice {
    min-height: auto;
  }
}
