/* Native Kiwi cookie consent banner and preferences launcher. */

.kiwi-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  padding: 18px 22px;
  background: #1b1b1b;
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
  font-family: system-ui, -apple-system, sans-serif;
}

.kiwi-cookie-banner.is-modal {
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .58);
}

.kiwi-cookie-banner.is-bottom {
  bottom: 0;
}

.kiwi-cookie-banner.is-top {
  top: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

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

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

.kiwi-cb-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.kiwi-cookie-banner.is-modal .kiwi-cb-inner {
  display: block;
  width: min(100%, 620px);
  padding: 28px 42px 28px 28px;
  border-radius: 8px;
  background: #1b1b1b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.kiwi-cookie-banner h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.kiwi-cookie-banner p {
  margin: 0;
  color: #dadada;
  font-size: .9rem;
  line-height: 1.45;
}

.kiwi-cb-text {
  flex: 1 1 320px;
  min-width: 0;
}

.kiwi-cb-actions,
.kiwi-cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kiwi-cb-actions {
  justify-content: flex-end;
}

.kiwi-cookie-banner.is-modal .kiwi-cb-actions {
  margin-top: 18px;
}

.kiwi-cm-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.kiwi-cb-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.kiwi-cb-btn-accept {
  background: var(--kiwi-accent, #e8891c);
  color: #fff;
}

.kiwi-cb-btn-reject {
  background: #444;
  color: #fff;
}

.kiwi-cb-btn-settings {
  border: 1px solid #777;
  background: transparent;
  color: #fff;
}

.kiwi-cookie-modal .kiwi-cb-btn-settings {
  border-color: #8b8b8b;
  color: #222;
}

.kiwi-cookie-banner a {
  color: var(--kiwi-accent, #e8891c);
  text-decoration: underline;
}

.kiwi-cb-close,
.kiwi-cm-close {
  z-index: 1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.kiwi-cb-close {
  position: static;
  order: 10;
  margin-left: auto;
  color: #fff;
}

.kiwi-cookie-banner.is-modal .kiwi-cb-close {
  position: absolute;
  top: 10px;
  right: 12px;
  margin-left: 0;
}

.kiwi-cm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #333;
}

.kiwi-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .6);
  font-family: system-ui, -apple-system, sans-serif;
}

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

.kiwi-cm-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  color: #222;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.kiwi-cookie-modal h3 {
  margin: 0 0 16px;
  color: #222;
  font-size: 1.25rem;
}

.kiwi-cm-intro {
  margin: 0 0 16px;
  color: #555;
  font-size: .93rem;
  line-height: 1.5;
}

.kiwi-cm-row {
  padding: 14px 0;
  border-top: 1px solid #eee;
}

.kiwi-cm-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.kiwi-cookie-modal label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #222;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}

.kiwi-cookie-modal label input {
  margin-top: 3px;
}

.kiwi-cookie-modal small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-weight: 400;
  line-height: 1.45;
}

.kiwi-cookie-preferences {
  position: fixed;
  right: 37px;
  bottom: 18px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 50%;
  background: #fff;
  color: #222;
  opacity: .82;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.kiwi-cookie-preferences.is-visible {
  display: inline-flex;
}

.kiwi-cookie-preferences:hover,
.kiwi-cookie-preferences:focus {
  opacity: 1;
  transform: translateY(-1px);
}

.kiwi-cookie-preferences i {
  display: block;
  line-height: 1;
}

@media (max-width: 640px) {
  .kiwi-cookie-banner {
    padding: 16px;
  }

  .kiwi-cookie-banner.is-modal .kiwi-cb-inner,
  .kiwi-cm-card {
    padding: 24px 18px 18px;
  }

  .kiwi-cb-actions,
  .kiwi-cm-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .kiwi-cb-close {
    position: absolute;
    top: 0;
    right: 0;
  }

  .kiwi-cb-inner {
    padding-top: 28px;
  }

  .kiwi-cb-btn {
    width: 100%;
  }

  .kiwi-cookie-preferences {
    right: 18px;
    bottom: 18px;
  }

  #scrollUp {
    right: 16px;
    bottom: 76px !important;
  }
}
