.omni-consent-lock {
  overflow: hidden;
}

.omni-consent-bar {
  position: fixed;
  z-index: 10000;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: #17162b;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -16px 42px rgba(23, 22, 43, 0.22);
}

.omni-consent-bar[hidden],
.omni-consent-layer[hidden] {
  display: none;
}

.omni-consent-bar__inner {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 24px 0;
}

.omni-consent-bar h2,
.omni-consent-panel h2 {
  margin: 0;
  color: inherit;
  font: 800 20px/1.25 Poppins, sans-serif;
  letter-spacing: 0;
}

.omni-consent-bar p,
.omni-consent-panel p {
  margin: 8px 0 0;
  color: #c9c7db;
  font: 600 14px/1.55 "Nunito Sans", sans-serif;
}

.omni-consent-bar a,
.omni-consent-panel a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.omni-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.omni-consent-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 0 17px;
  color: #fff;
  background: transparent;
  font: 800 14px "Nunito Sans", sans-serif;
  cursor: pointer;
}

.omni-consent-button:hover {
  border-color: #fff;
}

.omni-consent-button.is-primary {
  color: #20134c;
  background: #fff;
  border-color: #fff;
}

.omni-consent-button:focus-visible,
.omni-consent-close:focus-visible,
.omni-consent-toggle input:focus-visible + span {
  outline: 3px solid #7aa0ff;
  outline-offset: 3px;
}

.omni-consent-layer {
  position: fixed;
  z-index: 10010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 22, 43, 0.7);
}

.omni-consent-panel {
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  color: #17162b;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(10, 8, 28, 0.34);
}

.omni-consent-panel__head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  background: #fff;
  border-bottom: 1px solid #e6e8f2;
}

.omni-consent-panel p {
  color: #5a6178;
}

.omni-consent-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #2f1c67;
  background: #f5f6fa;
  border: 1px solid #e1e4ef;
  border-radius: 8px;
  cursor: pointer;
}

.omni-consent-options {
  padding: 6px 28px;
}

.omni-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #eceef5;
}

.omni-consent-option:last-child {
  border-bottom: 0;
}

.omni-consent-option strong {
  display: block;
  color: #17162b;
  font: 800 15px Poppins, sans-serif;
}

.omni-consent-option p {
  margin-top: 5px;
  font-size: 13.5px;
}

.omni-consent-always {
  color: #5a6178;
  font: 800 12px "Nunito Sans", sans-serif;
  text-transform: uppercase;
}

.omni-consent-toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.omni-consent-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.omni-consent-toggle span {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #b7bbca;
  transition: background 0.16s ease;
}

.omni-consent-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 22, 43, 0.25);
  transition: transform 0.16s ease;
}

.omni-consent-toggle input:checked + span {
  background: #2f1c67;
}

.omni-consent-toggle input:checked + span::after {
  transform: translateX(20px);
}

.omni-consent-panel__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 28px 26px;
  background: #fff;
  border-top: 1px solid #e6e8f2;
}

.omni-consent-panel__actions .omni-consent-button {
  color: #2f1c67;
  border-color: #d8d1f4;
}

.omni-consent-panel__actions .omni-consent-button.is-primary {
  color: #fff;
  background: #2f1c67;
  border-color: #2f1c67;
}

.omni-consent-footer-button {
  appearance: none;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.omni-consent-footer-button:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .omni-consent-bar__inner {
    width: min(100% - 32px, 560px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
  }

  .omni-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .omni-consent-actions .is-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .omni-consent-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .omni-consent-layer {
    align-items: end;
    padding: 0;
  }

  .omni-consent-panel {
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .omni-consent-panel__head,
  .omni-consent-options,
  .omni-consent-panel__actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .omni-consent-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omni-consent-toggle span,
  .omni-consent-toggle span::after {
    transition: none;
  }
}
