html {
  overflow-x: hidden;
}

body.moscca-landing-page {
  overflow-x: hidden;
}

.moscca-cookie-consent {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1080;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1080px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(52vh, 420px);
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 15, 28, .96), rgba(6, 12, 22, .98)),
    rgba(8, 15, 28, .98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
  color: #f3f7fa;
  opacity: 0;
  transform: translate3d(-50%, 12px, 0);
  transition: opacity .2s ease, transform .2s ease;
  overscroll-behavior: contain;
}

@supports (width: 100dvw) {
  .moscca-cookie-consent {
    width: min(1080px, calc(100dvw - 32px));
    max-width: calc(100dvw - 32px);
    max-height: min(52dvh, 420px);
  }
}

.moscca-cookie-consent[hidden] {
  display: none;
}

.moscca-cookie-consent.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.moscca-cookie-consent-text {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.moscca-cookie-consent-text strong {
  color: #f3f7fa;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.moscca-cookie-consent-text p {
  max-width: 780px;
  margin: 0;
  color: rgba(243, 247, 250, .76);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.moscca-cookie-consent-text a {
  width: fit-content;
  color: #00c389;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.moscca-cookie-consent-text a:hover {
  color: #00c389;
  text-decoration: underline;
}

.moscca-cookie-consent-actions {
  display: flex;
  min-width: 0;
  gap: 10px;
  justify-content: flex-end;
}

.moscca-cookie-btn {
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.moscca-cookie-btn:hover {
  transform: translateY(-1px);
}

.moscca-cookie-btn:focus-visible {
  outline: 3px solid rgba(0, 195, 137, .26);
  outline-offset: 2px;
}

.moscca-cookie-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: rgba(243, 247, 250, .86);
}

.moscca-cookie-btn-ghost:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #f3f7fa;
}

.moscca-cookie-btn-primary {
  border: 1px solid rgba(0, 195, 137, .44);
  background: linear-gradient(135deg, rgba(0, 195, 137, .96), rgba(31, 93, 153, .96));
  color: #061018;
}

.moscca-cookie-btn-primary:hover {
  color: #061018;
  filter: brightness(1.05);
}

@media (max-width: 767.98px) {
  .moscca-cookie-consent {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    grid-template-columns: 1fr;
    gap: 12px;
    width: auto;
    max-width: none;
    max-height: min(48vh, 360px);
    padding: 14px;
    border-radius: 16px;
    transform: translate3d(0, 12px, 0);
  }

  @supports (width: 100dvw) {
    .moscca-cookie-consent {
      max-height: min(48dvh, 360px);
    }
  }

  .moscca-cookie-consent.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .moscca-cookie-consent-text p {
    font-size: 12px;
    line-height: 1.45;
  }

  .moscca-cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moscca-cookie-btn {
    width: 100%;
  }
}

@media (max-width: 379.98px) {
  .moscca-cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}
