/* Cookie consent banner — aligned with partner-guide (.km-cookie-*) */

.km-cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding: 0;
}

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

.km-cookie-banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 47px 40px;
  background-color: rgba(23, 36, 47, 0.96);
  border: 0 solid rgba(20, 44, 51, 0.12);
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(20, 44, 51, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(23, 36, 47, 1);
  pointer-events: auto;
  transition: box-shadow 0.24s ease, transform 0.24s ease, outline-color 0.24s ease;
}

.km-cookie-banner-inner.is-highlighted {
  animation: km-cookie-banner-highlight 0.7s ease;
}

@keyframes km-cookie-banner-highlight {
  0% {
    transform: translateY(0);
    box-shadow: 0 20px 48px rgba(20, 44, 51, 0.14);
    outline: 0 solid rgba(22, 58, 112, 0);
  }

  30% {
    transform: translateY(-2px);
    box-shadow: 0 26px 58px rgba(20, 44, 51, 0.2), 0 0 0 4px rgba(22, 58, 112, 0.24);
    outline: 2px solid rgba(22, 58, 112, 0.38);
  }

  100% {
    transform: translateY(0);
    box-shadow: 0 20px 48px rgba(20, 44, 51, 0.14);
    outline: 0 solid rgba(22, 58, 112, 0);
  }
}

.km-cookie-copy {
  min-width: 0;
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}

.km-cookie-title {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.km-cookie-title-text {
  font-family: Alaska, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.km-cookie-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
}

.km-cookie-title-icon svg {
  display: block;
}

.km-cookie-text {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.km-cookie-text-copy {
  margin-right: 0.35rem;
}

.km-cookie-text a {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.km-cookie-text a:hover {
  color: rgba(255, 255, 255, 0.86);
}

.km-cookie-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.km-cookie-actions[hidden] {
  display: none !important;
}

.km-cookie-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.km-cookie-btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.km-cookie-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.km-cookie-btn-icon svg {
  display: block;
}

#kmCookieAccept {
  padding-left: 37px;
  padding-right: 37px;
}

.km-cookie-btn:hover {
  transform: translateY(-1px);
}

.km-cookie-btn:focus-visible {
  outline: 2px solid #27d068;
  outline-offset: 2px;
}

.km-cookie-btn-secondary {
  color: rgba(255, 255, 255, 0.6);
  background: #35414d;
}

.km-cookie-btn-secondary:hover {
  background-color: #3d4956;
}

.km-cookie-btn-ghost {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.km-cookie-btn-ghost:hover {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.km-cookie-btn-primary {
  color: #fff;
  background: #27d068;
  box-shadow: 0 12px 28px rgba(39, 179, 109, 0.28);
}

.km-cookie-btn-primary:hover {
  background: #27d068;
  box-shadow: 0 14px 30px rgba(39, 179, 109, 0.34);
}

.km-cookie-settings {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.km-cookie-settings[hidden] {
  display: none !important;
}

.km-cookie-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.km-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.km-cookie-category-copy {
  min-width: 0;
}

.km-cookie-category-title {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.km-cookie-category-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.km-cookie-category-status {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #27d068;
  white-space: nowrap;
}

.km-cookie-category-status--locked {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39, 208, 104, 0.14);
}

.km-cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.km-cookie-switch-state {
  min-width: 5.5rem;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.km-cookie-switch-state[hidden] {
  display: none !important;
}

.km-cookie-switch:has(input:checked) .km-cookie-switch-state[data-state-on] {
  color: #27d068;
}

.km-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.km-cookie-switch-ui {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #2a343d;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background-color 0.16s ease, border-color 0.16s ease;
  position: relative;
  flex-shrink: 0;
}

.km-cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease;
}

.km-cookie-switch input:checked + .km-cookie-switch-ui {
  background: #27d068;
  border-color: #27d068;
}

.km-cookie-switch input:checked + .km-cookie-switch-ui::after {
  transform: translateX(22px);
}

.km-cookie-switch input:focus-visible + .km-cookie-switch-ui {
  outline: 2px solid #27d068;
  outline-offset: 2px;
}

.km-cookie-switch:hover .km-cookie-switch-ui {
  border-color: rgba(255, 255, 255, 0.5);
}

.km-cookie-actions--settings {
  justify-content: flex-end;
}

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

.km-cookie-settings-link {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.km-cookie-settings-link:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .km-cookie-banner {
    padding: 0;
  }

  .km-cookie-banner-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 0;
  }

  .km-cookie-title {
    font-size: 17px;
  }

  .km-cookie-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .km-cookie-actions--settings {
    flex-direction: column-reverse;
  }

  .km-cookie-btn {
    width: 100%;
  }

  .km-cookie-category {
    align-items: flex-start;
  }
}
