/* ========================================
   COOKIE CONSENT BANNER & MODAL STYLES
   Privacy Act 2020 Compliant
   ======================================== */

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a365d;
  color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent-banner.show {
  display: block;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.cookie-consent-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent-text p {
  margin: 0 0 0.5rem 0;
}

.cookie-consent-text a {
  color: #90cdf4;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #bee3f8;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-consent-btn-accept {
  background: #48bb78;
  color: #ffffff;
}

.cookie-consent-btn-accept:hover {
  background: #38a169;
}

.cookie-consent-btn-decline {
  background: #e53e3e;
  color: #ffffff;
}

.cookie-consent-btn-decline:hover {
  background: #c53030;
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cookie-consent-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cookie-settings-header {
  background: #1a365d;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
}

.cookie-settings-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cookie-settings-body {
  padding: 1.5rem;
  color: #333;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #1a365d;
}

.cookie-category p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a5568;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-toggle label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-toggle input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-settings-footer {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-settings-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-settings-btn-save {
  background: #48bb78;
  color: #ffffff;
}

.cookie-settings-btn-save:hover {
  background: #38a169;
}

.cookie-settings-btn-close {
  background: #cbd5e0;
  color: #2d3748;
}

.cookie-settings-btn-close:hover {
  background: #a0aec0;
}

/* Manage Cookies Link (Optional - for footer) */
.manage-cookies-link {
  color: #4299e1;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.manage-cookies-link:hover {
  color: #2b6cb0;
}
