/* OmniLogic Consent Mode v2 Banner & Preferences Modal
 * Palette matches omnilogic.com.mx design tokens:
 * ink=#080c10, surface=#0f171e, steel=#243743, paper=#f5f2ea, mute=#8fa0aa, teal=#1d8a87, lift=#5fb3ae
 */
#omni-consent-root {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #f5f2ea;
  box-sizing: border-box;
}
#omni-consent-root *, #omni-consent-root *::before, #omni-consent-root *::after {
  box-sizing: border-box;
}
.omni-cb-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 99990;
  background: rgba(15, 23, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #243743;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.omni-cb-hidden {
  display: none !important;
}
.omni-cb-copy {
  flex: 1 1 380px;
  min-width: 240px;
}
.omni-cb-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5fb3ae;
  margin: 0 0 0.35rem 0;
}
.omni-cb-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #d6dfe5;
  margin: 0;
}
.omni-cb-text a {
  color: #5fb3ae;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.omni-cb-text a:hover {
  color: #f5f2ea;
}
.omni-cb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.omni-cb-btn {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.58rem 1.05rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.omni-cb-btn-primary {
  background: #1d8a87;
  border: 1px solid #1d8a87;
  color: #f5f2ea;
}
.omni-cb-btn-primary:hover {
  background: #16706d;
  border-color: #5fb3ae;
}
.omni-cb-btn-secondary {
  background: transparent;
  border: 1px solid #243743;
  color: #f5f2ea;
}
.omni-cb-btn-secondary:hover {
  border-color: #5fb3ae;
  color: #5fb3ae;
}
.omni-cb-btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: #8fa0aa;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.omni-cb-btn-ghost:hover {
  color: #f5f2ea;
}
/* Modal */
.omni-cb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(8, 12, 16, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.omni-cb-modal {
  width: 100%;
  max-width: 560px;
  background: #0f171e;
  border: 1px solid #243743;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.omni-cb-modal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f5f2ea;
  margin: 0.2rem 0 0.5rem 0;
}
.omni-cb-modal p.omni-cb-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #8fa0aa;
  margin: 0 0 1.15rem 0;
}
.omni-cb-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid #243743;
}
.omni-cb-row strong {
  display: block;
  font-size: 13.5px;
  color: #f5f2ea;
  margin-bottom: 0.2rem;
}
.omni-cb-row span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #8fa0aa;
}
.omni-cb-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  margin-top: 2px;
}
.omni-cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.omni-cb-slider {
  position: absolute;
  inset: 0;
  background: #243743;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.omni-cb-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #f5f2ea;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.omni-cb-toggle input:checked + .omni-cb-slider {
  background: #1d8a87;
}
.omni-cb-toggle input:checked + .omni-cb-slider::before {
  transform: translateX(18px);
}
.omni-cb-toggle input:disabled + .omni-cb-slider {
  opacity: 0.65;
  cursor: not-allowed;
}
.omni-cb-modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #243743;
}
.omni-footer-prefs-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: #8fa0aa;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.omni-footer-prefs-btn:hover {
  color: #f5f2ea;
}
@media (max-width: 640px) {
  .omni-cb-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 1rem;
  }
  .omni-cb-actions {
    width: 100%;
  }
  .omni-cb-actions .omni-cb-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
