.stallon-consent,
.stallon-consent * {
  box-sizing: border-box;
}

.stallon-consent [hidden] {
  display: none !important;
}

.stallon-consent {
  --sc-navy: #071f33;
  --sc-blue: #155eef;
  --sc-blue-dark: #0d4ed8;
  --sc-text: #102a43;
  --sc-muted: #526b7f;
  --sc-line: #d5e1ec;
  --sc-soft: #f2f7fc;
  --sc-white: #ffffff;
  color: var(--sc-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.stallon-consent__banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--sc-white);
  background: linear-gradient(125deg, #071f33 0%, #0a3151 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(1, 18, 32, .32);
}

.stallon-consent__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #80bfff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.stallon-consent__banner h2,
.stallon-consent__panel h2,
.stallon-consent__category h3 {
  padding: 0;
  color: inherit;
  font-family: inherit;
  text-transform: none;
}

.stallon-consent__banner h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.stallon-consent__banner p {
  max-width: 760px;
  margin: 0;
  color: #dceaf5;
  font-size: 14px;
}

.stallon-consent__links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px !important;
}

.stallon-consent a {
  color: #9fd2ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stallon-consent a:hover {
  color: #fff;
}

.stallon-consent__banner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 9px;
  min-width: 370px;
}

.stallon-consent__banner-actions .stallon-consent__button--text {
  grid-column: 1 / -1;
}

.stallon-consent__button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.stallon-consent__button:hover {
  transform: translateY(-1px);
}

.stallon-consent__button:focus-visible,
.stallon-consent__close:focus-visible,
.stallon-consent__persistent-link:focus-visible,
.stallon-consent__category--toggle:focus-within {
  outline: 3px solid #82c3ff;
  outline-offset: 3px;
}

.stallon-consent__button--primary {
  color: #fff;
  background: var(--sc-blue);
  border-color: var(--sc-blue);
}

.stallon-consent__button--primary:hover {
  background: var(--sc-blue-dark);
  border-color: var(--sc-blue-dark);
}

.stallon-consent__button--outline {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .58);
}

.stallon-consent__button--outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.stallon-consent__button--text {
  min-height: 38px;
  padding: 7px 12px;
  color: #bcdaf3;
  background: transparent;
  border-color: transparent;
}

.stallon-consent__button--text:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.stallon-consent__modal {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.stallon-consent__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(1, 17, 31, .66);
  border: 0;
  cursor: default;
}

.stallon-consent__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  color: var(--sc-text);
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(1, 18, 32, .35);
}

.stallon-consent__panel-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.stallon-consent__panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.stallon-consent__close {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  color: #29485f;
  background: var(--sc-soft);
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.stallon-consent__intro {
  margin: 14px 0 18px;
  color: var(--sc-muted);
  font-size: 14px;
}

.stallon-consent__category {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 17px 18px;
  background: var(--sc-soft);
  border: 1px solid var(--sc-line);
  border-radius: 13px;
}

.stallon-consent__category h3 {
  margin: 0 0 3px;
  font-size: 17px;
  line-height: 1.3;
}

.stallon-consent__category p {
  margin: 0;
  color: var(--sc-muted);
  font-size: 13px;
}

.stallon-consent__always {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #14724c;
  background: #e4f6ed;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.stallon-consent__category--toggle {
  cursor: pointer;
}

.stallon-consent__switch {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 30px;
}

.stallon-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.stallon-consent__switch span {
  position: absolute;
  inset: 0;
  background: #9aabba;
  border-radius: 999px;
  transition: background-color .18s ease;
}

.stallon-consent__switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  content: '';
  transition: transform .18s ease;
}

.stallon-consent__switch input:checked + span {
  background: var(--sc-blue);
}

.stallon-consent__switch input:checked + span::after {
  transform: translateX(22px);
}

.stallon-consent__panel-links {
  margin: 15px 0 0;
  font-size: 13px;
}

.stallon-consent__panel-links a {
  color: var(--sc-blue-dark);
}

.stallon-consent__panel-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.stallon-consent__panel .stallon-consent__button--outline {
  color: var(--sc-text);
  border-color: #a9bdcd;
}

.stallon-consent__panel .stallon-consent__button--outline:hover {
  background: var(--sc-soft);
  border-color: #7891a4;
}

.stallon-consent__persistent-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: .86;
}

.stallon-consent__persistent-link:hover {
  color: #fff;
  opacity: 1;
}

.stallon-consent__persistent-link--app {
  margin-left: auto;
  color: #a9bdcc;
  font-size: 9px;
  white-space: nowrap;
}

.stallon-consent__persistent-link--floating {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 2147482000;
  padding: 7px 10px;
  color: #29485f;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #c9d8e4;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(7, 31, 51, .12);
  font-size: 11px;
}

@media (max-width: 860px) {
  .stallon-consent__banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .stallon-consent__banner-actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .stallon-consent__banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto;
    padding: 16px;
    border-radius: 15px;
  }

  .stallon-consent__banner h2 {
    font-size: 20px;
  }

  .stallon-consent__banner p {
    font-size: 13px;
  }

  .stallon-consent__links {
    flex-wrap: wrap;
  }

  .stallon-consent__banner-actions {
    grid-template-columns: 1fr;
  }

  .stallon-consent__banner-actions .stallon-consent__button--text {
    grid-column: auto;
  }

  .stallon-consent__button {
    width: 100%;
  }

  .stallon-consent__modal {
    align-items: end;
    padding: 8px;
  }

  .stallon-consent__panel {
    max-height: calc(100vh - 16px);
    padding: 19px 16px;
    border-radius: 15px;
  }

  .stallon-consent__panel h2 {
    font-size: 23px;
  }

  .stallon-consent__category {
    align-items: flex-start;
    padding: 14px;
  }

  .stallon-consent__always {
    max-width: 98px;
    white-space: normal;
  }

  .stallon-consent__panel-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stallon-consent *,
  .stallon-consent *::before,
  .stallon-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
