.cookie-consent[hidden],
.cookie-settings[hidden],
.cookie-consent__close[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  z-index: 1200;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin-inline: auto;
  padding: 18px 24px;
  box-sizing: border-box;
  border: 1px solid #b6a578;
  border-radius: 4px;
  background: #f6f3ed;
  color: #34363b;
  box-shadow: 0 5px 30px #0002;
  font: 18px/1.35 Sofia, "Sofia Sans Condensed", sans-serif;
  text-align: left;
}

.cookie-consent__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.cookie-consent h2 {
  margin: 0 0 5px;
  color: inherit;
  font: 600 20px/1.2 Sofia, "Sofia Sans Condensed", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.cookie-consent p {
  margin: 0;
  font: inherit;
  color: inherit;
}

.cookie-consent p a {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  flex: 0 1 400px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cookie-consent__actions button {
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #8c7e61;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.cookie-consent__actions button:hover {
  background: #e8e1d4;
}

.cookie-consent__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 24px/1 sans-serif;
  cursor: pointer;
}

.cookie-settings {
  display: inline-block;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cookie-settings-row {
  padding: 12px 24px 24px;
  text-align: center;
}

.cookie-consent :focus-visible,
.cookie-settings:focus-visible {
  outline: 2px solid #a38235;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .cookie-consent {
    inset: auto 10px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    font-size: 17px;
  }

  .cookie-consent__copy,
  .cookie-consent__actions {
    flex: none;
  }

  .cookie-consent__actions button {
    padding: 10px 8px;
  }
}
