/* Mesaup — aviso de cookies (RGPD) */
.mesaup-cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 10050;
  max-width: 520px;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.mesaup-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
html[data-theme="light"] .mesaup-cookie-banner {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
}
.mesaup-cookie-banner strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
}
html[data-theme="light"] .mesaup-cookie-banner strong {
  color: #0f172a;
}
.mesaup-cookie-banner p {
  margin: 0 0 14px;
}
.mesaup-cookie-banner a {
  color: #fb923c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mesaup-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mesaup-cookie-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.mesaup-cookie-btn:active {
  transform: scale(0.98);
}
.mesaup-cookie-btn--primary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
}
.mesaup-cookie-btn--primary:hover {
  filter: brightness(1.06);
}
.mesaup-cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
html[data-theme="light"] .mesaup-cookie-btn--ghost {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.mesaup-cookie-btn--ghost:hover {
  border-color: #f97316;
  color: #f97316;
}

/* Modal música ambiente */
.mesaup-music-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 15, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.mesaup-music-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.mesaup-music-dialog {
  width: min(100%, 400px);
  padding: 28px 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--dark2, #0d1117);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
}
html[data-theme="light"] .mesaup-music-dialog {
  background: #fff;
}
.mesaup-music-dialog-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 191, 36, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #f97316;
}
.mesaup-music-dialog h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white, #fff);
  margin-bottom: 8px;
}
.mesaup-music-dialog p {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
  margin-bottom: 20px;
}
.mesaup-music-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mesaup-music-dialog-actions button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.mesaup-music-yes {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
}
.mesaup-music-no {
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
}

body:has(.mesaup-cookie-banner.is-visible) .ambient-player {
  bottom: 120px;
}

@media (max-width: 768px) {
  .mesaup-cookie-banner {
    inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
    max-width: none;
    left: 0;
    right: 0;
    margin: 0 12px;
  }
}

@media (max-width: 480px) {
  .mesaup-cookie-banner {
    inset: auto 12px 12px 12px;
    max-width: none;
  }
  .mesaup-cookie-actions {
    flex-direction: column;
  }
  .mesaup-cookie-btn {
    width: 100%;
    text-align: center;
  }
}
