.ledgely-consent[hidden] { display: none !important; }
.ledgely-consent {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 680px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(246, 212, 129, .3);
  border-radius: 16px;
  color: #f1eee2;
  background: #171a15;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .52);
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ledgely-consent h2 {
  margin: 0 0 7px;
  color: #f1eee2;
  font-size: 1.2rem;
  line-height: 1.25;
}
.ledgely-consent p { margin: 0 0 14px; color: #d6d1c2; }
.ledgely-consent__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.ledgely-consent__button,
.ledgely-consent__footer-trigger {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #55594d;
  border-radius: 9px;
  color: #f1eee2;
  background: #24271f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ledgely-consent__button:hover,
.ledgely-consent__footer-trigger:hover { border-color: #4ac07b; background: #2a3027; }
.ledgely-consent__button--primary { border-color: #228450; color: #08170d; background: #63d18e; }
.ledgely-consent__button--primary:hover { border-color: #8be4ae; color: #08170d; background: #8be4ae; }
.ledgely-consent__button:focus-visible,
.ledgely-consent__footer-trigger:focus-visible,
.ledgely-consent__privacy-link:focus-visible { outline: 3px solid #f6d481; outline-offset: 3px; }
.ledgely-consent__footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid #3a3c33; }
.ledgely-consent__privacy-link { color: #bfe9cb; text-decoration: underline; text-underline-offset: 3px; }
.ledgely-consent__toggle { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px; border: 1px solid #42463c; border-radius: 11px; background: #20231e; cursor: pointer; }
.ledgely-consent__toggle input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #4ac07b; }
.ledgely-consent__toggle strong,
.ledgely-consent__toggle span span { display: block; }
.ledgely-consent__toggle span span { margin-top: 2px; color: #c4c2b7; font-size: .9rem; }
.ledgely-consent__ad-note { padding: 12px 14px; border-left: 3px solid #e7ad22; background: rgba(231, 173, 34, .07); font-size: .9rem; }
.ledgely-consent__footer-trigger { margin-top: 8px; padding: 5px 10px; min-height: 34px; font-size: .85rem; }
@media (max-width: 560px) {
  .ledgely-consent { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: 86vh; padding: 17px; }
  .ledgely-consent__actions { display: grid; grid-template-columns: 1fr; }
  .ledgely-consent__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ledgely-consent *, .ledgely-consent *::before, .ledgely-consent *::after { scroll-behavior: auto !important; }
}
