.cgv-cookie-banner[hidden] {
  display: none;
}

.cgv-cookie-banner {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 1100;
  box-sizing: border-box;
  max-width: 31rem;
  max-height: calc(100vh - 2rem);
  margin: 0 0 0 auto;
  overflow: auto;
  padding: 1.1rem;
  border: 1px solid #bcbcbc;
  border-radius: 1rem;
  background: #fff;
  color: #0d0d0d;
  box-shadow: 0 8px 28px rgb(0 0 0 / 14%);
  font: normal 0.94rem/1.5 Manrope, Arial, sans-serif;
}

.cgv-cookie-banner h2 {
  margin: 0 0 0.35rem;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1.3;
}

.cgv-cookie-banner p {
  margin: 0 0 0.8rem;
  color: inherit;
}

.cgv-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.cgv-cookie-actions button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  background: #fff;
  color: #0d0d0d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cgv-cookie-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
  font-size: 0.75rem;
  white-space: nowrap;
}

.cgv-footer__inner:has(> .cgv-cookie-links) > p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cgv-cookie-links + .cgv-back-to-top {
  flex-shrink: 0;
}

.cgv-cookie-actions a,
.cgv-cookie-links a,
.cgv-cookie-links button {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cgv-cookie-links a,
.cgv-cookie-links button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.cgv-cookie-links button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cgv-cookie-banner :focus-visible,
.cgv-cookie-links :focus-visible {
  outline: 2px solid #202020;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .cgv-footer__inner:has(> .cgv-cookie-links) {
    column-gap: 0.35rem;
  }

  .cgv-cookie-links {
    gap: 0.45rem;
  }
}
