.cookie-panel[hidden],
.cookie-settings[hidden],
.cookie-close[hidden] {
  display: none;
}

.cookie-panel {
  position: fixed;
  z-index: 200;
  inset: auto 20px 20px;
  max-width: 1140px;
  margin-inline: auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: center;
  background: #f3f3f3;
  color: #20382e;
  border: 1px solid #c2d1ce;
  border-top: 3px solid #7AADE2;
  box-shadow: 0 6px 30px #20382e26;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.cookie-panel h2 {
  font: 500 20px/1.35 Manrope,sans-serif;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}

.cookie-panel p {
  font: 400 14px/1.65 Manrope,sans-serif;
  margin: 0;
  color: #526259;
  max-width: none;
}

.cookie-panel a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 280px;
}

.cookie-actions button {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid #6c8789;
  border-radius: 30px;
  color: #20382e;
  font: 500 13px/1.5 Manrope,sans-serif;
  cursor: pointer;
}

.cookie-actions button:hover {
  background: #eaf0ed;
  border-color: #20382e;
}

.cookie-actions .cookie-close {
  min-height: 40px;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings {
  display: inline-flex;
  align-items: flex-start;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
  text-align: left;
  text-decoration: none;
}

.footer-legal .cookie-settings:hover {
  text-decoration: none;
}

.cookie-panel :focus-visible,
.cookie-settings:focus-visible {
  outline: 2px solid #7AADE2;
  outline-offset: 4px;
}

@media(max-width:700px) {
  .cookie-panel {
    inset: auto 12px 12px;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: calc(100dvh - 24px);
  }

  .cookie-actions {
    max-width: none;
  }

  .cookie-actions button {
    flex: 1 1 210px;
  }

  .cookie-panel h2 {
    font-size: 18px;
  }
}

@media print {
  .cookie-panel,
  .cookie-settings {
    display: none!important;
  }
}
