.logistx-consent-banner[hidden],
.logistx-consent-modal[hidden] {
  display: none !important;
}

.logistx-consent-banner,
.logistx-consent-modal {
  --logistx-consent-bg: #fff;
  --logistx-consent-text: #10213a;
  --logistx-consent-accent: #087fc3;
}

.logistx-consent-banner {
  position: fixed;
  z-index: 9998;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: var(--logistx-consent-text);
}

.logistx-consent-banner__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  width: min(1180px, 100%);
  margin: auto;
  padding: 24px;
  background: var(--logistx-consent-bg);
  border: 1px solid #dfe9f3;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 31, 70, .28);
}

.logistx-consent-banner--bottom-left,
.logistx-consent-banner--bottom-right {
  width: min(620px, calc(100% - 32px));
}

.logistx-consent-banner--bottom-left {
  right: auto;
}

.logistx-consent-banner--bottom-right {
  left: auto;
}

.logistx-consent-banner--bottom-left .logistx-consent-banner__inner,
.logistx-consent-banner--bottom-right .logistx-consent-banner__inner {
  grid-template-columns: auto minmax(0, 1fr);
}

.logistx-consent-banner--bottom-left .logistx-consent-actions,
.logistx-consent-banner--bottom-right .logistx-consent-actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logistx-consent-logo {
  width: 120px;
}

.logistx-consent-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.logistx-consent-copy {
  min-width: 0;
}

.logistx-consent-banner h2,
.logistx-consent-modal h2,
.logistx-consent-modal h3 {
  margin: 0 0 8px;
  color: #071f46;
  letter-spacing: 0;
}

.logistx-consent-banner p {
  margin: 6px 0;
}

.logistx-consent-banner a,
.logistx-consent-modal a {
  color: var(--logistx-consent-accent);
  text-decoration: underline;
}

.logistx-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.logistx-consent-kicker {
  margin: 0 0 6px !important;
  color: var(--logistx-consent-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logistx-consent-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.logistx-consent-button {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--logistx-consent-accent);
  border-radius: 7px;
  background: var(--logistx-consent-bg);
  color: #071f46;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.logistx-consent-button:hover,
.logistx-consent-button:focus-visible {
  background: #f0f8fd;
}

.logistx-consent-button:focus-visible,
.logistx-consent-close:focus-visible,
.logistx-consent-banner a:focus-visible {
  outline: 3px solid rgba(41, 169, 232, .55);
  outline-offset: 2px;
}

.logistx-consent-button--primary,
.logistx-consent-actions .logistx-consent-button--primary,
.logistx-consent-modal__actions .logistx-consent-button--primary {
  background: var(--logistx-consent-accent);
  color: #fff;
}

.logistx-consent-button--primary:hover,
.logistx-consent-button--primary:focus-visible {
  filter: brightness(.92);
}

.logistx-consent-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--logistx-consent-text);
}

.logistx-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 19, 39, .72);
}

.logistx-consent-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  background: var(--logistx-consent-bg);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  overscroll-behavior: contain;
}

.logistx-consent-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.logistx-consent-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe9f3;
  border-radius: 7px;
  background: var(--logistx-consent-bg);
  color: #071f46;
  font-size: 28px;
  cursor: pointer;
}

.logistx-consent-categories {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.logistx-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding: 18px;
  border: 1px solid #dfe9f3;
  border-radius: 8px;
}

.logistx-consent-category p {
  margin: 0;
  color: #61718a;
}

.logistx-consent-category details {
  grid-column: 1 / -1;
}

.logistx-consent-category summary {
  color: var(--logistx-consent-accent);
  font-weight: 700;
  cursor: pointer;
}

.logistx-consent-category li {
  margin: 8px 0;
}

.logistx-consent-switch input {
  position: absolute;
  opacity: 0;
}

.logistx-consent-switch > span {
  display: block;
  width: 48px;
  height: 28px;
  padding: 3px;
  border: 1px solid #b7c7d8;
  border-radius: 999px;
  background: #dfe9f3;
  cursor: pointer;
}

.logistx-consent-switch > span::before {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  content: "";
  transition: transform .2s;
}

.logistx-consent-switch input:checked + span {
  border-color: var(--logistx-consent-accent);
  background: var(--logistx-consent-accent);
}

.logistx-consent-switch input:checked + span::before {
  transform: translateX(20px);
}

.logistx-consent-switch input:focus-visible + span {
  outline: 3px solid rgba(41, 169, 232, .5);
  outline-offset: 2px;
}

.logistx-consent-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.logistx-consent-open {
  overflow: hidden;
}

.logistx-blocked-media {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 30px;
  border: 1px solid #dfe9f3;
  border-radius: 8px;
  background: #f7fafd;
  text-align: center;
}

.logistx-blocked-media p {
  color: #61718a;
}

@media (max-width: 900px) {
  .logistx-consent-banner__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .logistx-consent-logo {
    display: none;
  }
}

@media (max-width: 720px) {
  .logistx-consent-banner,
  .logistx-consent-banner--bottom-left,
  .logistx-consent-banner--bottom-right {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
  }

  .logistx-consent-banner__inner,
  .logistx-consent-banner--bottom-left .logistx-consent-banner__inner,
  .logistx-consent-banner--bottom-right .logistx-consent-banner__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: calc(100dvh - 16px);
    padding: 18px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .logistx-consent-banner--bottom-left .logistx-consent-actions,
  .logistx-consent-banner--bottom-right .logistx-consent-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .logistx-consent-modal {
    padding: 8px;
  }

  .logistx-consent-modal__panel {
    max-height: calc(100dvh - 16px);
    padding: 18px;
  }

  .logistx-consent-modal__actions {
    grid-template-columns: 1fr;
  }

  .logistx-consent-category {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px;
  }

  body.logistx-consent-banner-visible .mobile-sticky-bar,
  body.logistx-consent-banner-visible .floating-whatsapp {
    visibility: hidden;
    pointer-events: none;
  }
}
