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

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  padding: 22px 28px;
  color: #20251b;
  background: #f0f3e9;
  border-top: 1px solid #b9c4a4;
  box-shadow: 0 -5px 25px #00000014;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner h2,
.cookie-dialog h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.cookie-banner p,
.cookie-dialog p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button {
  min-height: 42px;
  margin: 0;
  padding: 10px 16px;
  color: #20251b;
  background: #ffffff;
  border: 1px solid #677953;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-actions button:hover {
  background: #e3ead6;
}

.cookie-actions button:focus-visible,
.cookie-footer-button:focus-visible {
  outline: 3px solid #657c2d;
  outline-offset: 3px;
}

.cookie-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 28px;
  color: #20251b;
  background: #fafbf7;
  border: 1px solid #b9c4a4;
  border-radius: 8px;
  overflow: auto;
}

.cookie-dialog::backdrop {
  background: #00000066;
}

.cookie-category {
  padding: 16px 0;
  border-top: 1px solid #d6ddcb;
}

.cookie-category label {
  font-weight: 700;
}

.cookie-footer-button {
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
}

.cookie-footer-button:hover {
  color: inherit;
  background: transparent;
}

.cookie-status {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #677953;
}

@media (max-width: 900px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner {
    max-height: 65vh;
    padding: 18px;
    overflow: auto;
  }
}
