.fff-consent[hidden] {
  display: none;
}

.fff-consent {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: clamp(14px, 3vw, 34px);
  z-index: 1000;
  color: var(--fff-text, #344454);
}

.fff-consent__panel {
  max-width: 740px;
  margin-left: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(29, 45, 62, .18);
  border-radius: 18px;
  background: rgba(255, 252, 243, .98);
  box-shadow: 0 16px 46px rgba(29, 45, 62, .24);
}

.fff-consent__intro h2 {
  margin: 0 0 8px;
  color: var(--fff-ink, #1d2d3e);
  font-size: 1.15rem;
}

.fff-consent__intro p {
  max-width: 66ch;
  margin: 0;
  line-height: 1.55;
}

.fff-consent__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  font-size: .88rem;
}

.fff-consent__legal-links a {
  color: inherit;
  text-underline-offset: 3px;
}

.fff-consent__actions,
.fff-consent__settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.fff-consent__button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--fff-blue, #24415f);
  border-radius: 999px;
  background: transparent;
  color: var(--fff-blue-dark, #182d42);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.fff-consent__button:hover,
.fff-consent__button:focus-visible {
  outline: 3px solid rgba(216, 155, 58, .48);
  outline-offset: 2px;
}

.fff-consent__button--primary {
  background: var(--fff-blue, #24415f);
  color: #fff;
}

.fff-consent__button--secondary {
  border-color: var(--fff-rust, #b9653b);
  color: var(--fff-rust-dark, #9f4f2e);
}

.fff-consent__button--ghost {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fff-consent__settings {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--fff-border, rgba(29, 45, 62, .14));
}

.fff-consent__settings[hidden] {
  display: none;
}

.fff-consent__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.fff-consent__choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--fff-blue, #24415f);
}

.fff-consent__manage[hidden] {
  display: none;
}

.fff-consent__manage {
  position: fixed;
  left: clamp(14px, 3vw, 34px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(29, 45, 62, .26);
  border-radius: 999px;
  background: rgba(255, 252, 243, .95);
  color: var(--fff-blue-dark, #182d42);
  box-shadow: 0 6px 18px rgba(29, 45, 62, .14);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.fff-consent__manage:focus-visible {
  outline: 3px solid rgba(216, 155, 58, .48);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .fff-consent {
    right: 10px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 10px;
  }

  .fff-consent__panel {
    max-width: 420px;
    max-height: calc(100vh - 20px);
    max-height: calc(100svh - 20px);
    margin-right: auto;
    padding: 14px 16px 12px;
    overflow-y: auto;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .fff-consent__intro h2 {
    margin-bottom: 5px;
    font-size: 1rem;
  }

  .fff-consent__intro p {
    font-size: .9rem;
    line-height: 1.4;
  }

  .fff-consent__legal-links {
    gap: 3px;
    margin-top: 7px;
    font-size: .8rem;
  }

  .fff-consent__actions,
  .fff-consent__settings-actions {
    gap: 7px;
    margin-top: 12px;
  }

  .fff-consent__button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: .88rem;
  }

  .fff-consent__settings {
    gap: 9px;
    padding-top: 12px;
    margin-top: 12px;
  }

  .fff-consent__choice {
    gap: 8px;
    font-size: .9rem;
  }

  .fff-consent__choice input {
    width: 16px;
    height: 16px;
  }

  .fff-consent__actions > .fff-consent__button--primary {
    width: 100%;
  }

  .fff-consent__manage {
    left: 10px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    min-height: 34px;
    padding: 7px 11px;
    font-size: .78rem;
  }
}
