/* Loaded after site.css so both optional-cookie choices fit at every viewport. */
.cookie-note {
  box-sizing: border-box;
  width: 440px;
  max-width: calc(100% - 44px);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
}

.cookie-note-copy {
  min-width: 0;
}

.cookie-note h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--olive-dark);
  overflow-wrap: anywhere;
}

.cookie-note p {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cookie-note-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.cookie-note .cookie-note-actions .button {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  gap: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.cookie-note [data-cookie-accept],
.cookie-note [data-cookie-reject] {
  border: 1px solid var(--olive-dark);
  color: var(--olive-dark);
  background: var(--paper);
}

.cookie-note [data-cookie-accept]:hover,
.cookie-note [data-cookie-reject]:hover {
  color: var(--paper);
  background: var(--olive-dark);
}

.cookie-note .button[aria-pressed="true"] {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 576px) {
  .cookie-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 18px;
    gap: 12px;
  }

  .cookie-note .cookie-note-actions .button {
    min-width: 0;
    font-size: 12px;
  }
}
