.kos-cookie-popup[hidden] {
  display: none !important;
}

.kos-cookie-popup {
  position: fixed;
  inset: auto 0 0;
  z-index: 10000;
  color: #000000;
  font-family: inherit;
  pointer-events: none;
}

@keyframes kos-cookie-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kos-cookie-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes kos-cookie-slide-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.kos-cookie-popup__backdrop[hidden],
.kos-cookie-popup__banner[hidden],
.kos-cookie-popup__modal[hidden],
.kos-cookie-popup__preferences-link[hidden] {
  display: none !important;
}

.kos-cookie-popup__banner,
.kos-cookie-popup__modal,
.kos-cookie-popup__close,
.kos-cookie-popup__button,
.kos-cookie-popup__item-trigger,
.kos-cookie-popup__switch {
  pointer-events: auto;
}

.kos-cookie-popup__preferences-link {
  appearance: none;
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9999;
  min-height: 0;
  padding: 9px 14px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background-color: #ffffff;
  color: #000000;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  aspect-ratio: 1 / 1;
}

.kos-cookie-popup__preferences-link:hover {
  border-color: #000000;
  background-color: #000000;
  color: #ffffff;
}

.kos-cookie-popup__preferences-link .kos-cookie-popup__gear {
  position: relative;
  margin: auto;
  position: relative;
  margin: auto;
  top: auto;
  right: auto;
}

.kos-cookie-popup:not([hidden]) .kos-cookie-popup__banner {
  animation: kos-cookie-fade-up 0.26s ease-out;
}

.kos-cookie-popup__backdrop:not([hidden]) {
  animation: kos-cookie-fade 0.2s ease-out;
}

.kos-cookie-popup__modal:not([hidden]) .kos-cookie-popup__modal-panel {
  animation: kos-cookie-slide-in 0.24s ease-out;
}

.kos-cookie-popup__banner,
.kos-cookie-popup__modal-panel {
  background-color: #ffffff;
}

.kos-cookie-popup__banner {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100vw - 24px));
  margin: 0 0 12px 12px;
  padding: 24px 16px 16px 26px;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
}

.kos-cookie-popup__banner-copy,
.kos-cookie-popup__modal-copy {
  width: 100%;
}

.kos-cookie-popup__banner-title,
.kos-cookie-popup__modal-title,
.kos-cookie-popup__preferences-title,
.kos-cookie-popup__item-title,
.kos-cookie-popup__item-description h1,
.kos-cookie-popup__item-description h2,
.kos-cookie-popup__item-description h3,
.kos-cookie-popup__item-description h4,
.kos-cookie-popup__item-description h5,
.kos-cookie-popup__item-description h6,
.kos-cookie-popup__item-description b,
.kos-cookie-popup__item-description strong {
  margin: 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  font-optical-sizing: auto;
  font-style: normal;
}

.kos-cookie-popup__banner-title {
  margin-bottom: 24px;
}

.kos-cookie-popup__banner-description,
.kos-cookie-popup__modal-description,
.kos-cookie-popup__item-description {
  margin: 0;
}

.kos-cookie-popup__banner-description > *,
.kos-cookie-popup__modal-description > * {
  margin: 0 0 10px;
}

.kos-cookie-popup__banner-description > *:last-child,
.kos-cookie-popup__modal-description > *:last-child {
  margin-bottom: 0;
}

.kos-cookie-popup__banner-link,
.kos-cookie-popup__item-description a {
  color: #7f9bb6;
  text-decoration: underline;
}

.kos-cookie-popup__banner-link:hover,
.kos-cookie-popup__item-description a:hover {
  color: #000000;
  text-decoration: none;
}

.kos-cookie-popup__banner-policy {
  margin-left: 0.25em;
}

.kos-cookie-popup__banner-actions,
.kos-cookie-popup__modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.kos-cookie-popup__banner-actions {
  width: 100%;
  margin-top: 16px;
}

.kos-cookie-popup__modal-actions {
  margin-top: 24px;
}

.kos-cookie-popup__button {
  appearance: none;
  min-height: 0;
  padding: 12px;
  border: 1px solid #000000;
  border-radius: 2px;
  background-color: #000000;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.kos-cookie-popup__button:hover {
  background-color: transparent;
  color: #000000;
}

.kos-cookie-popup__button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.kos-cookie-popup__button--primary {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff;
}

.kos-cookie-popup__button--secondary,
.kos-cookie-popup__button--ghost {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}

.kos-cookie-popup__button--secondary:hover,
.kos-cookie-popup__button--ghost:hover {
  border-color: #000000;
}

.kos-cookie-popup__banner-actions .kos-cookie-popup__button {
  flex: 1 1 0;
  width: 100%;
  max-width: 100%;
}

.kos-cookie-popup__modal-actions .kos-cookie-popup__button {
  flex: 1 1 160px;
  width: 100%;
  max-width: 100%;
}

.kos-cookie-popup__gear {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  right: 14px;
  margin-top: -12px;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.kos-cookie-popup__gear svg {
  width: 24px;
  height: 24px;
  display: block;
}

.kos-cookie-popup__gear path {
  fill: currentColor;
}

.kos-cookie-popup__button--secondary:hover .kos-cookie-popup__gear {
  transform: rotate(180deg);
}

.kos-cookie-popup__backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.kos-cookie-popup__modal {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.kos-cookie-popup__modal-panel {
  position: relative;
  width: min(635px, 100dvw);
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  padding: 60px;
  border-radius: 0;
  box-shadow: none;
}

.kos-cookie-popup__close {
  appearance: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background-color: #ffffff;
  position: fixed;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 4;
}

.mode-login .kos-cookie-popup__close {
  top: 60px;
}

.kos-cookie-popup__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1px;
  background-color: #000000;
  transform-origin: center;
}

.kos-cookie-popup__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.kos-cookie-popup__close span:last-child {
  transform: translate(-50%, -50%) rotate(135deg);
}

.kos-cookie-popup__modal-title {
  margin-bottom: 24px;
}

.kos-cookie-popup__modal-description + .kos-cookie-popup__modal-description {
  margin-top: 10px;
}

.kos-cookie-popup__preferences {
  margin-top: 24px;
}

.kos-cookie-popup__preferences-title {
  margin-bottom: 12px;
}

.kos-cookie-popup__list {
  border-top: 0;
}

.kos-cookie-popup__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.kos-cookie-popup__item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.kos-cookie-popup__item-trigger {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  padding: 12px 0 12px 48px;
  border: 0;
  margin: 0;
  background-color: transparent;
  color: #000000;
  text-align: left;
  cursor: pointer;
}

.kos-cookie-popup__item-icon {
  position: absolute;
  left: 12px;
  top: 17px;
  width: 15px;
  height: 15px;
}

.kos-cookie-popup__item-icon::before,
.kos-cookie-popup__item-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 1px;
  background-color: #000000;
  transition: all 0.3s ease;
}

.kos-cookie-popup__item-icon::before {
  transform: rotate(90deg);
}

.kos-cookie-popup__item-icon::after {
  transform: rotate(0deg);
}

.kos-cookie-popup__item-trigger[aria-expanded="true"] .kos-cookie-popup__item-icon::before {
  transform: rotate(225deg);
}

.kos-cookie-popup__item-trigger[aria-expanded="true"] .kos-cookie-popup__item-icon::after {
  transform: rotate(135deg);
}

.kos-cookie-popup__item-title {
  font-size: 14px;
  line-height: 1.4;
}

.kos-cookie-popup__item-state,
.kos-cookie-popup__switch {
  flex: 1 1 0;
  width: 100%;
  max-width: 120px;
  padding: 18px 0 12px;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.kos-cookie-popup__item-state {
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
}

.kos-cookie-popup__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kos-cookie-popup__switch-track {
  width: 32px;
  height: 18px;
  padding: 0;
  border: 1px solid #000000;
  border-radius: 999px;
  background-color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.kos-cookie-popup__switch-thumb {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #000000;
  transition: all 0.3s ease;
}

.kos-cookie-popup__switch input:checked + .kos-cookie-popup__switch-track {
  background-color: #000000;
}

.kos-cookie-popup__switch input:checked + .kos-cookie-popup__switch-track .kos-cookie-popup__switch-thumb {
  left: 17px;
  background-color: #ffffff;
}

.kos-cookie-popup__item-body {
  padding: 12px 0 24px 48px;
}

.kos-cookie-popup__item-description,
.kos-cookie-popup__item-description > * {
  font-size: 14px;
}

.kos-cookie-popup__item-description h1,
.kos-cookie-popup__item-description h2,
.kos-cookie-popup__item-description h3,
.kos-cookie-popup__item-description h4,
.kos-cookie-popup__item-description h5,
.kos-cookie-popup__item-description h6 {
  margin: 0 0 10px;
}

.kos-cookie-popup__item-description p,
.kos-cookie-popup__item-description ol,
.kos-cookie-popup__item-description ul {
  margin: 0 0 10px;
}

.kos-cookie-popup__item-description > *:last-child {
  margin-bottom: 0;
}

.kos-cookie-popup__error {
  margin: 16px 0 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.5;
}

.kos-cookie-popup.is-modal-open .kos-cookie-popup__banner {
  pointer-events: none;
}

@media (max-width: 767px) {
  .kos-cookie-popup {
    inset: auto 0 48px;
  }

  .no-fixbar .kos-cookie-popup {
    inset: auto 0 0;
  }

  .kos-cookie-popup__preferences-link {
    bottom: 58px;
    left: 10px;
  }

  .no-fixbar .kos-cookie-popup__preferences-link {
    bottom: 10px;
  }

  .kos-cookie-popup__banner {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .kos-cookie-popup__banner-copy {
    width: 100%;
    max-width: 100%;
    flex: 1 0 0;
  }

  .kos-cookie-popup__banner-title {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 16px;
  }

  .kos-cookie-popup__banner-description,
  .kos-cookie-popup__banner-link {
    color: #ffffff;
    font-size: 14px;
  }

  .kos-cookie-popup__banner-link:hover {
    color: #e79743;
  }

  .kos-cookie-popup__banner-actions {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 0 0;
    justify-content: flex-end;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--secondary {
    flex: 0 0 40px;
    max-width: 40px;
    min-width: 40px;
    padding: 0;
    border-color: #ffffff;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--secondary > span:first-child {
    display: none;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--secondary .kos-cookie-popup__gear {
    position: static;
    margin: 0;
    color: #ffffff;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
    flex: 0 1 auto;
    width: auto;
    max-width: none;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--primary:hover {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--ghost {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    border-color: #ffffff;
    color: #ffffff;
  }

  .kos-cookie-popup__banner-actions .kos-cookie-popup__button--ghost:hover {
    border-color: #ffffff;
    background-color: transparent;
    color: #ffffff;
  }

  .kos-cookie-popup__modal-panel {
    width: 100%;
    padding: 46px 32px;
  }

  .kos-cookie-popup__close {
    top: 18px;
    right: 18px;
  }

  .mode-login .kos-cookie-popup__close {
    top: 64px;
  }
}

@media (max-width: 567px) {
  .kos-cookie-popup__banner-copy,
  .kos-cookie-popup__banner-actions {
    max-width: 100%;
    flex: initial;
  }

  .kos-cookie-popup__banner-actions {
    margin-top: 8px;
  }

  .kos-cookie-popup__modal-panel {
    padding: 32px 20px;
  }
}
