.nkz-cc-dialog,
.nkz-cc-launcher,
.nkz-cc-slot,
.nkz-cc-form-note,
.nkz-cc-noscript {
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.nkz-cc-dialog *,
.nkz-cc-dialog *::before,
.nkz-cc-dialog *::after,
.nkz-cc-launcher *,
.nkz-cc-slot *,
.nkz-cc-slot *::before,
.nkz-cc-slot *::after {
  box-sizing: border-box;
}

.nkz-cc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nkz-cc-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nkz-cc-launcher {
  position: fixed;
  z-index: 99990;
  left: 16px;
  bottom: 16px;
  width: 60px;
  height: 60px;
  padding: 8px;
  border: 3px solid #fab040;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(18, 18, 18, 0.16);
}

.nkz-cc-launcher img {
  display: block;
  width: 100%;
  height: 100%;
}

.nkz-cc-dialog {
  position: fixed;
  z-index: 99991;
  left: 16px;
  bottom: 16px;
  width: min(760px, calc(100vw - 32px));
  max-height: min(78dvh, 720px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  color: #121212;
  border: 1px solid #f3d7a2;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.nkz-cc-dialog[hidden] {
  display: none;
}

.nkz-cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nkz-cc-langs {
  display: flex;
  gap: 6px;
}

.nkz-cc-lang,
.nkz-cc-close,
.nkz-cc-back,
.nkz-cc-btn,
.nkz-cc-slot-btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #fab040;
  border-radius: 4px;
  background: #fff;
  color: #121212;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nkz-cc-lang {
  padding: 0 10px;
}

.nkz-cc-lang.is-current {
  background: #fab040;
  border-color: #e09a20;
}

.nkz-cc-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c4841a;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
}

.nkz-cc-back {
  padding: 8px 12px;
}

.nkz-cc-close-help,
.nkz-cc-docnote {
  margin: 8px 0 0;
  color: #121212;
  font-size: 0.92rem;
}

.nkz-cc-title {
  margin: 12px 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #121212;
}

.nkz-cc-intro,
.nkz-cc-cat-line,
.nkz-cc-infoline {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: #121212;
}

.nkz-cc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.nkz-cc-btn {
  width: 100%;
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
}

.nkz-cc-info {
  color: #8a5a00;
  font-weight: 700;
}

.nkz-cc-scroll {
  max-height: none;
}

.nkz-cc-cat {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.nkz-cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.nkz-cc-cat-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.nkz-cc-always {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
}

.nkz-cc-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.nkz-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 48px;
  height: 28px;
  margin: 0;
}

.nkz-cc-switch-ui {
  width: 52px;
  height: 28px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #ececec;
  position: relative;
  flex: 0 0 auto;
}

.nkz-cc-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8d8d8d;
}

.nkz-cc-switch input:checked + .nkz-cc-switch-ui {
  background: #fab040;
  border-color: #e09a20;
}

.nkz-cc-switch input:checked + .nkz-cc-switch-ui::after {
  left: 27px;
  background: #fff;
}

.nkz-cc-switch-state {
  min-width: 4.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #121212;
}

.nkz-cc-switch-state.is-on {
  color: #fab040;
}

.nkz-cc-switch input:focus-visible + .nkz-cc-switch-ui,
.nkz-cc-btn:focus-visible,
.nkz-cc-lang:focus-visible,
.nkz-cc-close:focus-visible,
.nkz-cc-back:focus-visible,
.nkz-cc-launcher:focus-visible,
.nkz-cc-info:focus-visible,
.nkz-cc-slot-btn:focus-visible {
  outline: 3px solid #fab040;
  outline-offset: 2px;
}

.nkz-cc-dialog:focus,
.nkz-cc-dialog:focus-visible {
  outline: none;
}

.nkz-cc-k {
  font-weight: 700;
}

.nkz-cc-slot {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #f3d7a2;
  background: #fff;
  color: #121212;
}

.nkz-cc-slot-text {
  margin: 0 0 12px;
}

.nkz-cc-slot-btn {
  padding: 10px 14px;
}

.nkz-cc-form-note,
.nkz-cc-noscript {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff6e8;
  color: #121212;
  border-left: 4px solid #fab040;
}

@media (min-width: 640px) {
  .nkz-cc-actions {
    flex-direction: row;
    align-items: stretch;
  }

  .nkz-cc-btn {
    flex: 1 1 auto;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nkz-cc-dialog,
  .nkz-cc-launcher,
  .nkz-cc-switch-ui::after {
    transition: none;
    animation: none;
  }
}
