/* ========================================
   Consent Banner - Global Styles
   ======================================== */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #f5f5f5;

  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner__container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.consent-banner__text {
  flex: 1;
  min-width: 0;
}

.consent-banner__heading {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.consent-banner__description {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.consent-banner__link {
  color: #003399;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.consent-banner__link:hover {
  color: #002266;
}

.consent-banner__link:focus {
  outline: 2px solid #003399;
  outline-offset: 2px;
  border-radius: 2px;
}

.consent-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.consent-banner__button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  font-family: inherit;
}

.consent-banner__button:focus {
  outline: 2px solid #005a9c;
  outline-offset: 2px;
}

.consent-banner__button:active {
  transform: scale(0.98);
}

/* Reject Button */
.consent-banner__button--reject {
  background-color: #666666;
  color: #ffffff;
}

.consent-banner__button--reject:hover {
  background-color: #555555;
}

.consent-banner__button--reject:focus {
  background-color: #555555;
}

.consent-banner__button--reject:disabled {
  background-color: #999999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Accept Button */
.consent-banner__button--accept {
  background-color: #003399;
  color: #ffffff;
}

.consent-banner__button--accept:hover {
  background-color: #002266;
}

.consent-banner__button--accept:focus {
  background-color: #002266;
}

.consent-banner__button--accept:disabled {
  background-color: #667799;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ========================================
   Mobile / Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .consent-banner__container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .consent-banner__text {
    order: 1;
  }

  .consent-banner__actions {
    order: 2;
    flex-direction: column;
    gap: 10px;
  }

  .consent-banner__button {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .consent-banner {
    padding: 0;
    font-size: 13px;
  }

  .consent-banner__container {
    padding: 16px;
    gap: 12px;
  }

  .consent-banner__heading {
    font-size: 15px;
  }

  .consent-banner__description {
    font-size: 13px;
  }

  .consent-banner__button {
    padding: 11px 14px;
    font-size: 15px;
  }
}

/* ========================================
   Reduced Motion Support (A11y)
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .consent-banner__button,
  .consent-banner__link {
    transition: none;
  }

  .consent-banner__button:active {
    transform: none;
  }
}

/* ========================================
   High Contrast Mode Support (A11y)
   ======================================== */

@media (prefers-contrast: more) {
  .consent-banner {
    border-top-width: 3px;
  }

  .consent-banner__button {
    border: 2px solid currentColor;
  }

  .consent-banner__link {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
}

/* ========================================
   Dark Mode Support
   ======================================== */

@media (prefers-color-scheme: dark) {
  .consent-banner {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }

  .consent-banner__heading {
    color: #ffffff;
  }

  .consent-banner__description {
    color: #b0b0b0;
  }

  .consent-banner__link {
    color: #66b3ff;
  }

  .consent-banner__link:hover {
    color: #99ccff;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .consent-banner {
    display: none;
  }
}
