/* ====================================================================
   MAUSAM Meteorological Platform — Cookie & Local Storage Consent Styling
   Compliant with Government & National Open Data Accessibility Standards
   ==================================================================== */

#mausam-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #0d1e33;
  border-top: 1px solid #1e3a5f;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 16px 20px;
  animation: mausamSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mausamSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mausam-consent-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .mausam-consent-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.mausam-consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  flex: 1;
}

.mausam-consent-text strong {
  color: #ffffff;
  font-weight: 600;
}

.mausam-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  shrink: 0;
}

.mausam-consent-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.mausam-consent-btn-primary {
  background-color: #0b72b9;
  color: #ffffff;
  border-color: #38bdf8;
}

.mausam-consent-btn-primary:hover {
  background-color: #095991;
}

.mausam-consent-btn-secondary {
  background-color: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

.mausam-consent-btn-secondary:hover {
  background-color: #334155;
  color: #ffffff;
}

.mausam-consent-btn-text {
  background-color: transparent;
  color: #38bdf8;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mausam-consent-btn-text:hover {
  color: #7dd3fc;
}

.mausam-consent-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* Preferences Modal */
#mausam-consent-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(3, 10, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.mausam-consent-modal {
  background-color: #0d1e33;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 24px;
  color: #e2e8f0;
}

.mausam-consent-modal h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.mausam-consent-modal p.desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.mausam-consent-pref-card {
  background-color: #132438;
  border: 1px solid #233e61;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.mausam-consent-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mausam-consent-pref-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.mausam-consent-badge-required {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mausam-consent-pref-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.mausam-consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #1e3a5f;
}
