.n1-cookie-banner,
.n1-cookie-panel {
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}

.n1-cookie-banner {
  position: fixed;
  z-index: 9998;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: none;
  margin: 0 auto;
  max-width: 960px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.18);
}

.n1-cookie-banner.is-visible {
  display: block;
}

.n1-cookie-banner__inner {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.n1-cookie-banner__eyebrow,
.n1-cookie-panel__eyebrow {
  margin: 0;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.n1-cookie-banner__title,
.n1-cookie-panel__title {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.n1-cookie-banner__copy,
.n1-cookie-panel__copy,
.n1-cookie-option__copy {
  margin: 8px 0 0;
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.55;
}

.n1-cookie-banner__actions,
.n1-cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.n1-cookie-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.n1-cookie-button:hover {
  transform: translateY(-1px);
}

.n1-cookie-button--primary {
  background: #dcfb00;
  color: #111;
}

.n1-cookie-button--dark {
  background: #111;
  color: #fff;
}

.n1-cookie-button--light {
  background: #fff;
  color: #111;
}

.n1-cookie-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.46);
}

.n1-cookie-modal.is-visible {
  display: flex;
}

.n1-cookie-panel {
  width: min(100%, 620px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.n1-cookie-panel__header,
.n1-cookie-panel__body,
.n1-cookie-panel__footer {
  padding: 22px;
}

.n1-cookie-panel__header {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.n1-cookie-panel__footer {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.n1-cookie-panel__top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.n1-cookie-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 24px;
  line-height: 1;
}

.n1-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.n1-cookie-option:last-child {
  border-bottom: 0;
}

.n1-cookie-option__title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.n1-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
}

.n1-cookie-switch input {
  position: absolute;
  opacity: 0;
}

.n1-cookie-switch span {
  position: absolute;
  inset: 0;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.n1-cookie-switch span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111;
  content: "";
  transition: transform 0.18s ease;
}

.n1-cookie-switch input:checked + span {
  background: #dcfb00;
}

.n1-cookie-switch input:checked + span::before {
  transform: translateX(26px);
}

.n1-cookie-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.64;
}

.cookie-preferences-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

@media (min-width: 940px) {
  .n1-cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .n1-cookie-banner__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .n1-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .n1-cookie-banner__actions,
  .n1-cookie-panel__actions {
    flex-direction: column;
  }

  .n1-cookie-button {
    width: 100%;
  }

  .n1-cookie-option {
    grid-template-columns: 1fr;
  }
}
