.cookie-notice {
  position: fixed;
  z-index: 90;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  isolation: isolate;
  width: min(26rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid rgb(23 59 70 / 18%);
  border-radius: 20px;
  background: linear-gradient(145deg, #faf7ef, #eee6d5);
  color: var(--navy);
  box-shadow: 0 16px 44px rgb(16 43 49 / 24%), 0 2px 8px rgb(16 43 49 / 12%);
}

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

.cookie-notice::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 12rem;
  height: 8rem;
  background: url("sea-chart.svg") right center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}

.cookie-notice h2 {
  margin: 0 0 .6rem;
  font-size: 1.75rem;
  line-height: 1.16;
}

.cookie-notice p {
  margin: 0 0 .8rem;
  font-size: .9rem;
  line-height: 1.55;
}

.cookie-notice-details {
  align-self: center;
  font-size: .82rem;
}

.cookie-notice-details summary {
  cursor: pointer;
  font-weight: 700;
}

.cookie-notice-details p {
  margin: .6rem 0 .3rem;
  font-size: inherit;
}

.cookie-notice-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgb(23 59 70 / 15%);
}

.cookie-notice-actions .button {
  min-height: 44px;
  padding: .6rem 1.15rem;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .cookie-notice {
    padding: 1rem 1.15rem;
    border-radius: 17px;
  }

  .cookie-notice h2 {
    font-size: 1.5rem;
  }
}

@media print {
  .cookie-notice {
    display: none;
  }
}
