.atf-cookie-banner[hidden],
.atf-cookie-modal[hidden],
.atf-cookie-reopen[hidden] {
  display: none !important;
}

.atf-cookie-banner {
  position: fixed;
  z-index: 100000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 24px;
  color: #fff;
  background: #111518;
  border-top: 1px solid #3b4147;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.34);
  font-family: Roboto, Arial, sans-serif;
}

.atf-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.atf-cookie-banner__copy {
  max-width: 720px;
}

.atf-cookie-banner h2,
.atf-cookie-modal h2,
.atf-cookie-modal h3 {
  color: #fff;
  letter-spacing: 0;
}

.atf-cookie-banner h2 {
  margin: 0 0 8px;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.25;
}

.atf-cookie-banner p,
.atf-cookie-modal p {
  margin: 0;
  color: #d5d9dd;
  font-size: 15px;
  line-height: 1.55;
}

.atf-cookie-banner a,
.atf-cookie-modal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.atf-cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  flex: 0 0 auto;
  gap: 10px;
}

.atf-consent-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d9dde1;
  border-radius: 6px;
  font: 700 14px/1.2 Roboto, Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.atf-consent-button--primary {
  color: #fff;
  background: #d71920;
  border-color: #d71920;
}

.atf-consent-button--primary:hover,
.atf-consent-button--primary:focus-visible {
  background: #f1262e;
  border-color: #f1262e;
}

.atf-consent-button--outline {
  color: #fff;
  background: transparent;
}

.atf-consent-button--outline:hover,
.atf-consent-button--outline:focus-visible {
  color: #111518;
  background: #fff;
}

.atf-cookie-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: Roboto, Arial, sans-serif;
}

.atf-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
}

.atf-cookie-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  color: #fff;
  background: #161a1d;
  border: 1px solid #3b4147;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.atf-cookie-modal__dialog > h2 {
  margin: 0 44px 10px 0;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
}

.atf-cookie-modal__intro {
  margin-bottom: 24px !important;
}

.atf-cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #22282d !important;
  border: 1px solid #596168;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
}

.atf-cookie-modal__close:hover,
.atf-cookie-modal__close:focus-visible {
  color: #fff;
  background: #d71920 !important;
  border-color: #d71920;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.atf-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #343a40;
}

.atf-cookie-category h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.3;
}

.atf-cookie-category p {
  font-size: 14px;
}

.atf-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
}

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

.atf-cookie-switch span {
  position: absolute;
  inset: 0;
  background: #555e66;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.atf-cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.atf-cookie-switch input:checked + span {
  background: #d71920;
}

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

.atf-cookie-switch input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.atf-cookie-switch input:disabled + span {
  opacity: 0.72;
  cursor: not-allowed;
}

.atf-cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid #343a40;
}

.atf-cookie-reopen {
  position: fixed;
  z-index: 99999;
  bottom: 18px;
  left: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: #161a1d;
  border: 1px solid #717a82;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font: 700 17px/1 Roboto, Arial, sans-serif;
  cursor: pointer;
}

.atf-cookie-reopen:hover,
.atf-cookie-reopen:focus-visible {
  background: #d71920;
  border-color: #d71920;
}

html.atf-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .atf-cookie-banner__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .atf-cookie-banner__actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .atf-cookie-banner {
    padding: 18px 16px;
  }

  .atf-cookie-banner h2 {
    font-size: 20px;
  }

  .atf-cookie-banner p {
    font-size: 14px;
  }

  .atf-cookie-banner__actions {
    grid-template-columns: 1fr 1fr;
  }

  .atf-cookie-banner__actions .atf-consent-button--primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .atf-cookie-modal {
    padding: 12px;
  }

  .atf-cookie-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
  }

  .atf-cookie-modal__dialog > h2 {
    max-width: calc(100% - 58px);
    margin-right: 0;
    font-size: 22px;
  }

  .atf-cookie-category {
    gap: 14px;
  }

  .atf-cookie-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .atf-cookie-modal__footer .atf-consent-button {
    width: 100%;
  }
}
