.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  width: calc(100% - 48px);
  max-width: 1000px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  border: 1px solid var(--gray--200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 40px #00000014;
  font-family: "Raleway", sans-serif;
  color: var(--black);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media screen and (max-width: 991px) {
  .cookie-banner {
    flex-flow: column;
    align-items: stretch;
    gap: 16px;
  }
}
@media screen and (max-width: 575px) {
  .cookie-banner {
    bottom: 15px;
    width: calc(100% - 30px);
    padding: 18px 16px;
  }
}
.cookie-banner__text {
  flex-grow: 1;
}
.cookie-banner__title {
  margin-bottom: 6px;
  font-size: var(--paragraph--regular-2);
  font-weight: 600;
}
.cookie-banner__desc {
  margin: 0;
  font-size: var(--paragraph--regular-4);
  line-height: 1.45;
  color: var(--gray--800);
}
.cookie-banner__desc a {
  color: var(--red--500);
  text-decoration: underline;
}
.cookie-banner__actions, .cookie-modal__actions {
  display: flex;
  flex-flow: wrap;
  gap: 8px;
}
.cookie-banner__actions {
  flex-shrink: 0;
}
@media screen and (max-width: 575px) {
  .cookie-banner__actions .cookie-btn {
    flex: 1 1 100%;
  }
}

.cookie-btn {
  padding: 12px 20px;
  border: 1px solid var(--gray--200);
  border-radius: 8px;
  background: var(--white);
  font-family: "Raleway", sans-serif;
  font-size: var(--paragraph--regular-4);
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cookie-btn:hover {
  border-color: var(--gray--400);
}
.cookie-btn-primary {
  border-color: var(--red--500);
  background: var(--red--500);
  color: var(--white);
}
.cookie-btn-primary:hover {
  border-color: var(--red--600);
  background: var(--red--600);
}
.cookie-btn-link {
  border-color: transparent;
  text-decoration: underline;
}
.cookie-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  font-family: "Raleway", sans-serif;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cookie-modal[hidden] {
  display: none;
}
.cookie-modal.is-open {
  opacity: 1;
}
.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cookie-modal__card {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 12px;
  background: var(--white);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-modal.is-open .cookie-modal__card {
  transform: none;
}
@media screen and (max-width: 575px) {
  .cookie-modal__card {
    padding: 20px 16px;
  }
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray--50);
  cursor: pointer;
}
.cookie-modal__close::before, .cookie-modal__close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  background: var(--black);
  transform: rotate(45deg);
}
.cookie-modal__close::after {
  transform: rotate(-45deg);
}
.cookie-modal__title {
  margin-bottom: 8px;
  padding-right: 40px;
  font-size: var(--headers---header-6);
  font-weight: 600;
}
.cookie-modal__desc {
  margin-bottom: 20px;
  font-size: var(--paragraph--regular-4);
  line-height: 1.45;
  color: var(--gray--800);
}
.cookie-modal__desc a {
  color: var(--red--500);
  text-decoration: underline;
}
.cookie-modal__list {
  display: flex;
  flex-flow: column;
  gap: 8px;
  margin-bottom: 24px;
}
.cookie-cat {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--gray--50);
}
.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.cookie-cat__name {
  font-weight: 600;
}
.cookie-cat__desc {
  margin: 0;
  font-size: var(--paragraph--regular-4);
  line-height: 1.45;
  color: var(--gray--800);
}
.cookie-cat__locked {
  font-size: var(--paragraph--regular-4);
  color: var(--gray--600);
  white-space: nowrap;
}
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--gray--300);
  transition: background-color 0.2s ease;
  pointer-events: none;
}
.cookie-switch span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-switch input:checked + span {
  background: var(--red--500);
}
.cookie-switch input:checked + span::after {
  transform: translateX(20px);
}
.cookie-switch input:focus-visible + span {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.cookie-locked, .cookie-locked body {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-modal, .cookie-modal__card, .cookie-switch span, .cookie-switch span::after {
    transition: none;
  }
}

.ifk-consent {
  position: relative;
  display: block;
  width: 100%;
  margin: 4px 0 16px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  text-align: left;
}
.ifk-consent input {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.ifk-consent span {
  position: relative;
  display: block;
  padding-left: 32px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray--800);
}
.ifk-consent span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gray--400);
  border-radius: 4px;
  background: var(--white);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ifk-consent span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  opacity: 0;
  box-sizing: border-box;
}
.ifk-consent input:checked + span::before {
  border-color: var(--red--500);
  background: var(--red--500);
}
.ifk-consent input:checked + span::after {
  opacity: 1;
}
.ifk-consent input:focus-visible + span::before {
  border-color: var(--black);
}
.ifk-consent a {
  color: var(--red--500);
  text-decoration: underline;
}
.ifk-consent-error {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--red--50);
  font-size: 14px;
  line-height: 1.4;
  color: var(--red--500);
}

.cookie-policy {
  max-width: 860px;
}
.cookie-policy .title-small {
  margin-top: 40px;
  padding-bottom: 14px;
}
.cookie-policy p {
  font-size: var(--paragraph--regular-2);
  line-height: 1.5;
}
.cookie-policy a:not(.btn) {
  color: var(--red--500);
  text-decoration: underline;
}
.cookie-policy table td:not(:first-child) {
  text-align: left;
}
.cookie-policy .btn {
  margin-top: 24px;
  cursor: pointer;
}
