@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/jost/jost-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/jost/jost-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/jost/jost-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

#nikba-consent-banner.nikba-consent {
  all: initial;
  box-sizing: border-box;
  position: fixed;
  z-index: 999999;
  right: 20px;
  bottom: 20px;
  left: auto;
  top: auto;
  width: min(400px, calc(100vw - 32px));
  max-height: min(85vh, 560px);
  overflow: auto;
  font-family: 'Jost', sans-serif;
  color: #1d3557;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  display: none;
}

#nikba-consent-banner.nikba-consent:not([hidden]) {
  display: block;
}

#nikba-consent-banner *,
#nikba-consent-banner *::before,
#nikba-consent-banner *::after {
  box-sizing: border-box;
  word-break: normal;
  overflow-wrap: anywhere;
  writing-mode: horizontal-tb;
}

.nikba-consent__card {
  background: #fff8f5;
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(29, 53, 87, 0.16);
  padding: 22px 22px 18px;
}

.nikba-consent__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #1d3557;
}

.nikba-consent__text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(29, 53, 87, 0.82);
}

.nikba-consent__text a {
  color: #1d3557;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nikba-consent__prefs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.nikba-consent__prefs[hidden] {
  display: none !important;
}

.nikba-consent__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: 10px;
  cursor: pointer;
}

.nikba-consent__copy {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.nikba-consent__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d3557;
  line-height: 1.3;
}

.nikba-consent__hint {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(29, 53, 87, 0.65);
}

.nikba-consent__switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5d8d2;
  cursor: pointer;
}

.nikba-consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 53, 87, 0.2);
  transition: transform 0.15s ease;
}

.nikba-consent__switch:checked {
  background: #1d3557;
}

.nikba-consent__switch:checked::after {
  transform: translateX(18px);
}

.nikba-consent__switch:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.nikba-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nikba-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.nikba-consent__btn--primary {
  background: #eeb79f;
  color: #1d3557;
}

.nikba-consent__btn--primary:hover {
  background: #1d3557;
  color: #fff;
}

.nikba-consent__btn--ghost {
  background: transparent;
  color: #1d3557;
  border-color: rgba(29, 53, 87, 0.28);
}

.nikba-consent__btn--ghost:hover {
  background: #fff;
}

.nikba-consent__settings {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: rgba(29, 53, 87, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: center;
}

.nikba-consent-check--light .box {
  color: #eceee7;
}

.nikba-consent-check--light .box a {
  color: #eceee7;
}

.nikba-consent-check--light .box:before {
  border-color: rgba(236, 238, 231, 0.75);
}

.nikba-consent-check--light input[type=checkbox]:checked + .box:after {
  border-color: #eceee7;
}

.nikba-consent-reopen {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

iframe[data-nikba-embed]:not([src]) {
  background: #f4f2ee;
}

@media (max-width: 575px) {
  #nikba-consent-banner.nikba-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .nikba-consent__actions {
    grid-template-columns: 1fr;
  }
}
