.mostro-site-preferences {
  position: relative;
  z-index: 2147483647;
  pointer-events: none;
}

.mostro-site-preferences__banner[hidden],
.mostro-site-preferences__overlay[hidden],
.mostro-site-preferences__modal[hidden] {
  display: none;
}

.mostro-site-preferences__banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: min(35rem, calc(100vw - 2rem));
  z-index: 1;
}

.mostro-site-preferences__panel,
.mostro-site-preferences__modal-inner {
  pointer-events: auto;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.66);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mostro-site-preferences__panel {
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 1.2rem;
}

.mostro-site-preferences__modal-inner {
  max-width: 42rem;
  padding: 1.5rem;
}

.mostro-site-preferences__title,
.mostro-site-preferences__row-title {
  margin: 0;
  color: #f0efed;
  font-family: 'DM Sans', serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mostro-site-preferences__text,
.mostro-site-preferences__row-text {
  margin: 0.7rem 0 0;
  color: rgba(240, 239, 237, 0.82);
  font-family: 'DM Sans', serif;
  font-size: 0.92rem;
  line-height: 1.45;
  text-transform: none;
}

.mostro-site-preferences__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.mostro-site-preferences__links a {
  color: #f0efed;
  font-family: 'DM Sans', serif;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-transform: uppercase;
}

.mostro-site-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin-top: 1rem;
}

.mostro-site-preferences__button,
.footer-privacy-settings,
.mostro-site-preferences__icon-button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f0efed;
  font-family: 'DM Sans', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.mostro-site-preferences__button {
  min-height: 2.6rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.mostro-site-preferences__button--ghost {
  background: transparent;
  color: #f0efed;
}

.mostro-site-preferences__button--ghost:hover,
.mostro-site-preferences__button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.mostro-site-preferences__button--secondary {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.mostro-site-preferences__button:not(
  .mostro-site-preferences__button--secondary
) {
  background: rgba(255, 255, 255, 0.92);
  color: #000;
}

.mostro-site-preferences__button:not(
    .mostro-site-preferences__button--secondary
  ):hover,
.mostro-site-preferences__button:not(
    .mostro-site-preferences__button--secondary
  ):focus-visible {
  background: #fff;
}

.mostro-site-preferences__overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.42);
}

.mostro-site-preferences__modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 3;
  pointer-events: auto;
}

.mostro-site-preferences__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mostro-site-preferences__icon-button {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mostro-site-preferences__icon-button svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.mostro-site-preferences__form {
  margin-top: 1.4rem;
}

.mostro-site-preferences__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mostro-site-preferences__row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mostro-site-preferences__toggle-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.mostro-site-preferences__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mostro-site-preferences__toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mostro-site-preferences__toggle-ui {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 3.35rem;
  height: 1.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.mostro-site-preferences__toggle-ui::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #f0efed;
  transition: transform 0.2s ease;
}

.mostro-site-preferences__toggle
  input:checked
  + .mostro-site-preferences__toggle-ui {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

.mostro-site-preferences__toggle
  input:checked
  + .mostro-site-preferences__toggle-ui::after {
  transform: translateX(1.38rem);
  background: #000;
}

.mostro-site-preferences__toggle
  input:disabled
  + .mostro-site-preferences__toggle-ui {
  cursor: not-allowed;
  opacity: 0.58;
}

.mostro-site-preferences__toggle
  input:disabled:checked
  + .mostro-site-preferences__toggle-ui {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

.mostro-site-preferences__toggle
  input:disabled:checked
  + .mostro-site-preferences__toggle-ui::after {
  background: rgba(0, 0, 0, 0.72);
}

.mostro-site-preferences__toggle
  input:focus-visible
  + .mostro-site-preferences__toggle-ui {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.footer-privacy-settings {
  display: inline-block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-family: 'DM Sans', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: 0.08em;
  white-space: normal;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: flex-end;
}

.footer-legal-links li {
  margin: 30px 0 0;
}

.footer-legal-links a,
.footer-legal-links .footer-privacy-settings {
  display: inline-flex;
  text-align: left;
}

.footer--copyright {
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.site-preferences-modal-open {
  overflow: hidden !important;
}

@media screen and (max-width: 1024px) {
  .footer--copyright {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-language-links,
  .footer-legal-links {
    width: 100%;
  }

  .footer-language-links {
    align-items: center;
    gap: 0.875rem;
    justify-content: flex-start;
  }

  .footer-legal-links {
    align-items: flex-start;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 0;
  }

  .footer-legal-links li {
    margin: 0;
  }

  .footer-legal-links a,
  .footer-legal-links .footer-privacy-settings {
    font-size: 16px;
    line-height: 1.3;
  }
}

@media screen and (max-width: 768px) {
  .footer--copyright {
    gap: 1rem;
  }

  .footer-language-links {
    gap: 0.75rem;
  }

  .footer-legal-links {
    gap: 0.875rem;
  }

  .mostro-site-preferences__banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  .mostro-site-preferences__panel,
  .mostro-site-preferences__modal-inner {
    padding: 1rem;
  }

  .mostro-site-preferences__row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mostro-site-preferences__toggle-wrap {
    margin-left: 0;
  }

  .footer-privacy-settings {
    font-size: 14px;
  }
}
