.mw-consent[hidden] { display: none; }
.mw-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border: none;
  border-top: 1px solid #dedbd2;
  box-shadow: 0 -4px 20px #0000000d;
  background: #faf8f3;
  color: #30372e;
  font-size: 14px;
  line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) {
  .mw-consent { animation: mw-consent-rise .45s ease-out; }
}
@keyframes mw-consent-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mw-consent > p:first-of-type { flex: 1 1 320px; margin: 0; }
.mw-consent a { white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mw-consent-actions { display: flex; align-items: center; gap: 4px 12px; margin-left: auto; }
.mw-consent-actions button[data-mw-consent=true] {
  flex: 0 0 auto;
  min-width: 200px;
  background: #354932;
  color: #fff;
  border: 1px solid #354932;
  padding: 12px 24px;
  border-radius: 6px;
  min-height: 48px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.mw-consent-actions button[data-mw-consent=false] {
  background: none;
  color: #30372e;
  border: none;
  padding: 8px 4px;
  min-height: 44px;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mw-consent button:focus-visible, .mw-consent a:focus-visible { outline: 2px solid #a87539; outline-offset: 3px; }
.mw-consent button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .mw-consent-actions { width: 100%; }
  .mw-consent-actions button[data-mw-consent=true] { flex: 1; }
}
#mw-consent-status { color: #8a382c; margin: 8px 0 0; }
#mw-consent-status:empty { display: none; }
