/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 3px solid #0057b8; /* Fingal SLSC blue */
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-banner__title {
  margin-top: 0;
  color: #0057b8;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cookie-banner__description {
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: #333;
}

.cookie-banner__preferences {
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 1rem;
  background: #f8fafc;
}

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

.cookie-preference:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-preference__header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-preference__label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
}

.cookie-preference__checkbox {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.cookie-preference__status {
  margin-left: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.cookie-preference__description {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cookie-banner__button {
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.cookie-banner__button--primary {
  background: #0057b8;
  color: white;
}

.cookie-banner__button--primary:hover {
  background: #004494;
}

.cookie-banner__button--secondary {
  background: white;
  color: #0057b8;
  border-color: #0057b8;
}

.cookie-banner__button--secondary:hover {
  background: #f1f5f9;
}

.cookie-banner__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__link {
  color: #0057b8;
  text-decoration: none;
  font-size: 0.875rem;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__link--manage {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
}

/* Modal Styles */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
}

.cookie-modal--visible .cookie-modal__overlay {
  opacity: 1;
}

.cookie-modal--visible .cookie-modal__content {
  transform: translateY(0);
  opacity: 1;
}

.cookie-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.cookie-modal__content {
  position: relative;
  background: white;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.cookie-modal__title {
  margin: 0;
  color: #0057b8;
  font-size: 1.5rem;
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__close:hover {
  color: #334155;
}

.cookie-modal__body {
  padding: 1.5rem;
}

.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.cookie-modal__button {
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.cookie-modal__button--primary {
  background: #0057b8;
  color: white;
}

.cookie-modal__button--primary:hover {
  background: #004494;
}

.cookie-modal__button--secondary {
  background: white;
  color: #0057b8;
  border-color: #0057b8;
}

.cookie-modal__button--secondary:hover {
  background: #f1f5f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-banner__container {
    padding: 1rem;
  }
  
  .cookie-banner__actions {
    flex-direction: column;
  }
  
  .cookie-banner__button {
    width: 100%;
  }
  
  .cookie-modal__content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
}
