.nextsay-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 2147483000;
  width: min(620px, calc(100% - 24px));
  transform: translateX(-50%);
  padding: 10px;
  border: 1px solid #c9d4ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  color: #0f172a;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.nextsay-cookie-banner__close {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #627087;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.nextsay-cookie-banner__close:hover {
  background: #eef3ff;
  color: #0f172a;
}

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

.nextsay-cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-right: 20px;
}

.nextsay-cookie-banner__title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.nextsay-cookie-banner__text {
  margin: 0;
  color: #627087;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.32;
}

.nextsay-cookie-banner__text a {
  color: #3857ff;
  font-weight: 700;
  text-decoration: none;
}

.nextsay-cookie-banner__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nextsay-cookie-banner__button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #c9d4ff;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #3857ff;
  background: #fff;
}

.nextsay-cookie-banner__button--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #3857ff, #09b8d8);
  box-shadow: 0 8px 16px rgba(56, 87, 255, 0.16);
}

.nextsay-cookie-banner__button--quiet {
  color: #627087;
  background: #f8faff;
}

.nextsay-cookie-banner__button:focus-visible {
  outline: 2px solid rgba(56, 87, 255, 0.26);
  outline-offset: 2px;
}

.nextsay-cookie-banner__close:focus-visible {
  outline: 2px solid rgba(56, 87, 255, 0.26);
  outline-offset: 1px;
}

.nextsay-cookie-banner__preferences {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dbe4ff;
}

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

.nextsay-cookie-banner__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  background: #f8faff;
}

.nextsay-cookie-banner__option + .nextsay-cookie-banner__option {
  margin-top: 6px;
}

.nextsay-cookie-banner__option--toggle {
  cursor: pointer;
}

.nextsay-cookie-banner__option-title {
  margin: 0 0 2px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.nextsay-cookie-banner__option-text {
  margin: 0;
  color: #627087;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.nextsay-cookie-banner__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #3857ff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.nextsay-cookie-banner__option input[type="checkbox"] {
  width: 34px;
  height: 18px;
  margin: 0;
  accent-color: #3857ff;
  cursor: pointer;
}

.nextsay-cookie-banner__preference-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .nextsay-cookie-banner {
    bottom: 10px;
    width: calc(100% - 18px);
    padding: 9px;
  }

  .nextsay-cookie-banner__inner {
    grid-template-columns: 1fr;
  }

  .nextsay-cookie-banner__actions {
    justify-content: stretch;
  }

  .nextsay-cookie-banner__button {
    flex: 1 1 108px;
  }

  .nextsay-cookie-banner__option {
    grid-template-columns: 1fr;
  }

  .nextsay-cookie-banner__badge,
  .nextsay-cookie-banner__option input[type="checkbox"] {
    justify-self: start;
  }

  .nextsay-cookie-banner__preference-actions {
    justify-content: stretch;
  }
}
