/* Greens: site palette, closest org palette "Morphous Oak Leaf" (primary #1f3d2e). */
.supply-consent {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 620px; max-height: 70dvh; overflow: auto; margin: 0 auto;
  padding: 18px; background: #fff; color: #252525; border: 1px solid #c8c3b8;
  border-radius: 12px; box-shadow: 0 4px 24px #0002; font: 14px/1.6 system-ui, sans-serif;
}
.supply-consent[hidden] { display: none; }
.supply-consent p { margin: 8px 0; }
.supply-consent p[hidden] { display: none; }
.supply-consent a { color: #34533b; text-decoration: underline; }
.supply-consent-title {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: #263e2c; font-size: 16px; font-weight: 700; line-height: 1.4;
}
/* Programmatic focus target only; it is not in the tab order. */
.supply-consent-title:focus { outline: none; }
.supply-consent-icon { display: inline-flex; flex: none; }
.supply-consent-title svg { width: 20px; height: 20px; }
.supply-consent-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px;
}
.supply-consent-links a, .supply-consent-more {
  display: inline-flex; align-items: center; min-height: 44px;
}
.supply-consent-more {
  padding: 0 4px; border: 0; background: none; color: #34533b;
  font: inherit; text-decoration: underline; cursor: pointer;
}
.supply-consent-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 12px;
}
.supply-consent-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 168px; padding: 10px 20px; border: 2px solid #263e2c;
  border-radius: 6px; font: 600 16px/1.2 system-ui, sans-serif; cursor: pointer;
}
.supply-consent-actions [data-consent="denied"] { background: #fff; color: #263e2c; font-weight: 600; }
.supply-consent-actions [data-consent="denied"]:hover { background: #eef3ee; }
.supply-consent-actions [data-consent="granted"] { background: #263e2c; color: #fff; font-weight: 700; }
.supply-consent-actions [data-consent="granted"]:hover { background: #1f3d2e; border-color: #1f3d2e; }
.supply-consent-actions [data-consent="granted"] svg { width: 18px; height: 18px; }
.supply-consent-actions button:focus-visible, .supply-consent-more:focus-visible,
.supply-consent-settings:focus-visible {
  outline: 3px solid #467d57; outline-offset: 3px;
}
.supply-consent-settings {
  display: block; min-height: 44px; margin: 12px auto; padding: 10px 16px;
  border: 1px solid #5e7062; border-radius: 6px; background: #fff; color: #263e2c;
  font: inherit; font-size: 13px; cursor: pointer;
}
@media (max-width: 479px) {
  .supply-consent { padding: 16px; }
  /* Keeps the link row on one line at 375px. */
  .supply-consent-links { font-size: 13px; }
  .supply-consent-actions { flex-wrap: nowrap; }
  .supply-consent-actions button { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
}
/* 320px: keep the panel low enough not to cover the search controls. */
@media (max-width: 359px) {
  .supply-consent { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  .supply-consent > p:not(.supply-consent-links) { font-size: 13px; line-height: 1.5; }
  .supply-consent-links { font-size: 12px; }
}
