.ft-cookie-banner[hidden] {
  display: none !important;
}

.ft-cookie-banner {
  position: fixed;
  left: 44px;
  bottom: 44px;
  z-index: 9999;
  width: min(560px, calc(100vw - 88px));
  box-sizing: border-box;
}

.ft-cookie-banner__surface {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  column-gap: 18px;
  row-gap: 20px;
  align-items: start;
  padding: 16px 20px;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0px 0px 20px 0px #0A001233;
}

.ft-cookie-banner__icon {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #F7E7DE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ft-cookie-banner__icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.ft-cookie-banner__body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.ft-cookie-banner__title {
  margin: 0;
  color: #181D27;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.ft-cookie-banner__text {
  margin: 8px 0 0;
  color: #535862;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.ft-cookie-banner__actions {
  grid-column: 1 / 4;
  grid-row: 2;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ft-cookie-banner__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 81px;
  min-height: 50px;
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: #0830CE;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.ft-cookie-banner__accept:hover,
.ft-cookie-banner__accept:focus-visible {
  background: #1236D8;
  outline: none;
}

.ft-cookie-banner__accept:active {
  transform: translateY(1px);
}

.ft-cookie-banner__close {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  justify-self: end;
  align-self: start;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8B8B8B;
  cursor: pointer;
}

.ft-cookie-banner__close::before,
.ft-cookie-banner__close::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 5px;
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
}

.ft-cookie-banner__close::before {
  transform: rotate(45deg);
}

.ft-cookie-banner__close::after {
  transform: rotate(-45deg);
}

.ft-cookie-banner__close:hover,
.ft-cookie-banner__close:focus-visible {
  color: #212121;
  outline: none;
}

@media (max-width: 767px) {
  .ft-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .ft-cookie-banner__surface {
    grid-template-columns: 41px minmax(0, 1fr) 0px;
    column-gap: 14px;
    row-gap: 20px;
    padding: 16px 20px;
    border-radius: 20px;
  }

  .ft-cookie-banner__icon {
    width: 44px;
    height: 44px;
  }

  .ft-cookie-banner__icon img {
    width: 44px;
    height: 44px;
  }

  .ft-cookie-banner__title {
    font-size: 18px;
    line-height: 1.2;
  }

  .ft-cookie-banner__text {
    font-size: 14px;
    line-height: 1.4;
  }

  .ft-cookie-banner__actions {
    grid-column: 1 / 4;
    grid-row: 2;
    margin-top: 0;
  }

  .ft-cookie-banner__accept {
    min-width: 81px;
    min-height: 50px;
    font-size: 16px;
  }

  .ft-cookie-banner__close {
    width: 22px;
    height: 22px;
  }

  .ft-cookie-banner__close::before,
  .ft-cookie-banner__close::after {
    top: 10px;
    left: 4px;
    width: 14px;
  }
}