.loterj-cookies,
.loterj-cookie-dialog {
  --cookie-primary: #0057b8;
  --cookie-ink: #112b43;
  --cookie-muted: #41576b;
  --cookie-line: #b5c6d8;
  --cookie-surface: #f3f8fe;
  box-sizing: border-box;
  color: var(--cookie-ink);
  font: 400 .9rem/1.5 Montserrat, Arial, sans-serif;
}
#loterj-cookies[hidden] { display: none; }
.loterj-cookies {
  position: fixed;
  z-index: 1200;
  inset: auto 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: 1030px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 1.1rem clamp(1rem, 2.5vw, 1.55rem);
  border: 1px solid #d9e6f3;
  border-radius: 24px;
  background: var(--cookie-surface);
  box-shadow: 0 14px 44px rgba(6, 41, 68, .24);
}
.loterj-cookies h2,
.loterj-cookie-dialog h2 {
  margin: 0;
  color: var(--cookie-ink);
  font-size: 1.22rem;
  font-weight: 650;
}
.loterj-cookies p,
.loterj-cookie-dialog p { margin: .3rem 0 0; color: var(--cookie-muted); }
.loterj-cookies a,
.loterj-cookie-dialog a { color: var(--cookie-primary); text-decoration: underline; text-underline-offset: .18em; }
.loterj-cookies-actions,
.loterj-cookie-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem; }
.loterj-cookie-button {
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--cookie-primary);
  background: transparent;
  font: 600 .86rem/1.35 Montserrat, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.loterj-cookie-outlined { border-color: var(--cookie-line); background: #fff; }
.loterj-cookie-button:hover { background: #e2efff; }
.loterj-cookie-filled { background: var(--cookie-primary); color: #fff; }
.loterj-cookie-filled:hover { background: #004690; }
.loterj-cookies :is(button, a):focus-visible,
.loterj-cookie-dialog :is(button, a):focus-visible,
.loterj-cookie-switch input:focus-visible + span {
  outline: 2px solid var(--cookie-primary);
  outline-offset: 3px;
}
.loterj-cookie-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: var(--cookie-surface);
  box-shadow: 0 20px 70px rgba(8, 30, 58, .32);
}
.loterj-cookie-dialog::backdrop { background: rgba(12, 31, 55, .56); }
html:has(.loterj-cookie-dialog[open]) { overflow: hidden; }
.loterj-cookie-dialog-header { position: relative; padding: 1.5rem 4.25rem 1.15rem 1.5rem; }
.loterj-cookie-dialog h2 { font-size: clamp(1.2rem, 4vw, 1.52rem); line-height: 1.24; }
.loterj-cookie-close {
  position: absolute;
  top: .85rem;
  right: .9rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cookie-muted);
  font: 400 1.75rem/1 Arial, sans-serif;
  cursor: pointer;
}
.loterj-cookie-close:hover { background: #e2efff; }
.loterj-cookie-categories { display: grid; gap: .65rem; padding: 0 1.5rem 1.2rem; }
.loterj-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem 1rem;
  padding: 1rem;
  border: 1px solid #dce8f3;
  border-radius: 17px;
  background: #fff;
}
.loterj-cookie-category h3 { margin: 0; color: var(--cookie-ink); font-size: 1rem; font-weight: 650; }
.loterj-cookie-category p { line-height: 1.45; }
.loterj-cookie-status {
  padding: .32rem .58rem;
  border-radius: 999px;
  background: #e3efff;
  color: #174e86;
  font-size: .74rem;
  white-space: nowrap;
}
.loterj-cookie-learn { justify-self: start; padding: .25rem 0; }
.loterj-cookie-switch {
  position: relative;
  display: grid;
  align-items: center;
  width: 52px;
  min-height: 44px;
  cursor: pointer;
}
.loterj-cookie-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.loterj-cookie-switch span {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 30px;
  padding: 0 4px;
  border: 2px solid #6e8499;
  border-radius: 999px;
  background: #e2ebf4;
  pointer-events: none;
}
.loterj-cookie-switch span::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #586d84; transition: transform .17s ease; }
.loterj-cookie-switch input:checked + span { background: var(--cookie-primary); border-color: var(--cookie-primary); }
.loterj-cookie-switch input:checked + span::before { transform: translateX(23px); background: #fff; }
.loterj-cookie-dialog-actions {
  padding: .9rem 1.5rem 1.25rem;
  border-top: 1px solid #dce8f3;
}
@media (max-width: 820px) {
  .loterj-cookies { flex-direction: column; align-items: stretch; gap: .65rem; }
}
@media (max-width: 540px) {
  .loterj-cookies { padding: .9rem 1rem; }
  .loterj-cookies-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .loterj-cookies-actions .loterj-cookie-text { grid-column: 1 / -1; grid-row: 2; }
  .loterj-cookie-button { padding-inline: .48rem; white-space: normal; font-size: .83rem; }
  .loterj-cookie-dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 26px 26px 0 0;
  }
  .loterj-cookie-dialog-header { padding-left: 1rem; }
  .loterj-cookie-categories { padding-inline: 1rem; }
  .loterj-cookie-category { padding: .8rem; }
  .loterj-cookie-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .loterj-cookie-switch span::before { transition: none; }
}
