/* Muziplay — Cookie consent banner (CNIL / RGPD)
   Loaded via /assets/css/cookie-consent.css
   Companion script: /assets/js/cookie-consent.js
*/

#mzp-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  color: #1f2937;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12);
  padding: 18px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}

#mzp-cookie-banner.mzp-cc-open { transform: translateY(0); }

.mzp-cc-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mzp-cc-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.mzp-cc-message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
}

.mzp-cc-link {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 500;
}
.mzp-cc-link:hover { color: #4f46e5; }

.mzp-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mzp-cc-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-width: 130px;
  font-family: inherit;
}

.mzp-cc-primary {
  background: #6366f1;
  color: #ffffff;
}
.mzp-cc-primary:hover { background: #4f46e5; }

.mzp-cc-secondary {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #e5e7eb;
}
.mzp-cc-secondary:hover { background: #e5e7eb; }

.mzp-cc-custom {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mzp-cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}

.mzp-cc-row strong { font-size: 0.9375rem; color: #111827; }
.mzp-cc-row p {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
}

.mzp-cc-pill {
  background: #d1fae5;
  color: #065f46;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
}

.mzp-cc-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* iOS-style switch */
.mzp-cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.mzp-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.mzp-cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  transition: 0.2s;
  border-radius: 24px;
}
.mzp-cc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.mzp-cc-switch input:checked + .mzp-cc-slider { background-color: #6366f1; }
.mzp-cc-switch input:checked + .mzp-cc-slider:before { transform: translateX(20px); }

@media (min-width: 760px) {
  .mzp-cc-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .mzp-cc-text { flex: 1 1 360px; min-width: 280px; }
  .mzp-cc-actions { flex: 0 0 auto; }
  .mzp-cc-custom { width: 100%; }
}
