.sn-cookie[hidden],
.sn-cookie [hidden],
.sn-cookie-manage[hidden] {
  display: none !important;
}

.sn-cookie,
.sn-cookie button,
.sn-cookie-manage {
  font-family: inherit;
}

.sn-cookie__banner {
  position: fixed;
  z-index: 999999;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 1180px;
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 28px;
  color: #252525;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.24);
}

.sn-cookie__content {
  padding-right: 34px;
}

.sn-cookie h2,
.sn-cookie h3 {
  color: #1d1d1d;
  text-transform: none;
  letter-spacing: 0;
}

.sn-cookie h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.sn-cookie h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.sn-cookie p {
  margin: 0 0 10px;
  color: #353535;
  font-size: 0.95rem;
  line-height: 1.55;
}

.sn-cookie a {
  color: #1746b3;
  text-decoration: underline;
}

.sn-cookie__close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #222;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 400;
  line-height: 34px;
  cursor: pointer;
}

.sn-cookie__close:hover,
.sn-cookie__close:focus-visible {
  color: #fff;
  background: #222;
}

.sn-cookie__actions,
.sn-cookie__preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.sn-cookie__button {
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 2px solid #1746b3;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  cursor: pointer;
}

.sn-cookie__button--primary {
  color: #fff;
  background: #1746b3;
}

.sn-cookie__button--secondary {
  color: #1746b3;
  background: #fff;
}

.sn-cookie__button:hover,
.sn-cookie__button:focus-visible {
  color: #fff;
  background: #102f77;
  border-color: #102f77;
}

.sn-cookie__overlay {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.sn-cookie__preferences {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  color: #252525;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}

.sn-cookie__preferences-header {
  padding-right: 34px;
}

.sn-cookie__categories {
  margin-top: 20px;
  border-top: 1px solid #dedede;
}

.sn-cookie__category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #dedede;
}

.sn-cookie__category p {
  margin: 0;
  font-size: 0.9rem;
}

.sn-cookie__switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  margin-top: 2px;
}

.sn-cookie__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sn-cookie__switch span[aria-hidden="true"] {
  position: absolute;
  inset: 0;
  background: #626262;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sn-cookie__switch span[aria-hidden="true"]::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  content: '';
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.sn-cookie__switch input:checked + span[aria-hidden="true"] {
  background: #1746b3;
}

.sn-cookie__switch input:checked + span[aria-hidden="true"]::before {
  transform: translateX(22px);
}

.sn-cookie__switch input:focus-visible + span[aria-hidden="true"] {
  outline: 3px solid rgba(23, 70, 179, 0.35);
  outline-offset: 3px;
}

.sn-cookie__switch input:disabled + span[aria-hidden="true"] {
  background: #767676;
  cursor: not-allowed;
  opacity: 0.65;
}

.sn-cookie-manage {
  position: fixed;
  z-index: 99990;
  right: 14px;
  bottom: 14px;
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  color: #fff;
  background: #1746b3;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.sn-cookie-manage:hover,
.sn-cookie-manage:focus-visible {
  background: #102f77;
}

.sn-cookie-is-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .sn-cookie__banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: calc(100vh - 16px);
    padding: 22px 18px;
  }

  .sn-cookie__content {
    padding-right: 24px;
  }

  .sn-cookie__actions,
  .sn-cookie__preferences-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sn-cookie__button {
    width: 100%;
  }

  .sn-cookie__overlay {
    padding: 8px;
  }

  .sn-cookie__preferences {
    max-height: calc(100vh - 16px);
    padding: 22px 18px;
  }

  .sn-cookie__category {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sn-cookie *,
  .sn-cookie *::before,
  .sn-cookie *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
