.cookie-open {
  border: 0;
  border-bottom: 1px solid #ccd7c440;
  padding: 7px 0;
  background: transparent;
  color: #e0e5ec;
  font-size: .78rem;
}

.cookie-panel[hidden] {
  display: none !important;
}

.cookie-panel {
  position: fixed;
  z-index: 1000;
  left: 24px;
  bottom: 24px;
  width: min(540px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  background: #0b1728;
  color: #f7f6f2;
  box-shadow: 0 18px 55px #0b172855;
}

.cookie-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.cookie-panel-heading h2 {
  font-family: var(--heading, Arial, sans-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.025em;
}

.cookie-panel p {
  margin: 12px 0 0;
  color: #e0e5ec;
  font-size: .88rem;
  line-height: 1.65;
}

.cookie-panel a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-panel code {
  font-size: .83em;
}

.cookie-close {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .motion-toggle {
    grid-row: 4;
    grid-column: 1;
  }

  .copyright {
    grid-row: 3;
    grid-column: 2;
    justify-self: end;
  }

  .cookie-open {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
  }

  .cookie-panel {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    overflow: auto;
    padding: 20px;
  }
}
