/**
 * Cookie Consent Banner Styles
 */

/* Banner */
#gh-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

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

.gh-cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.gh-cookie-banner__text {
  flex: 1;
  min-width: 280px;
}

.gh-cookie-banner__text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #284392;
}

.gh-cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.gh-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.gh-cookie-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.gh-cookie-btn--primary {
  background: #284392;
  color: #fff;
}

.gh-cookie-btn--primary:hover {
  background: #1e3270;
}

.gh-cookie-btn--secondary {
  background: #f0f0f0;
  color: #333;
}

.gh-cookie-btn--secondary:hover {
  background: #e0e0e0;
}

.gh-cookie-btn--link {
  background: transparent;
  color: #284392;
  padding: 0.75rem 1rem;
  text-decoration: underline;
}

.gh-cookie-btn--link:hover {
  color: #db9e16;
}

/* Modal */
#gh-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gh-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.gh-cookie-modal__content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gh-cookie-modal__content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #284392;
}

.gh-cookie-modal__content > p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* Cookie Options */
.gh-cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.gh-cookie-option:last-of-type {
  border-bottom: none;
}

.gh-cookie-option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.gh-cookie-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #284392;
  cursor: pointer;
}

.gh-cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.gh-cookie-option__label {
  font-weight: 500;
  color: #333;
}

.gh-cookie-option__desc {
  margin: 0.5rem 0 0 2rem;
  font-size: 0.85rem;
  color: #666;
}

.gh-cookie-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Footer link */
.gh-footer__separator {
  margin: 0 0.5rem;
  color: #999;
}

.gh-footer__link {
  color: #284392;
  text-decoration: underline;
  cursor: pointer;
}

.gh-footer__link:hover {
  color: #db9e16;
}

/* Responsive */
@media (max-width: 640px) {
  #gh-cookie-banner {
    padding: 1rem;
  }

  .gh-cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-cookie-banner__actions {
    justify-content: center;
  }

  .gh-cookie-btn {
    flex: 1;
    text-align: center;
  }

  .gh-cookie-btn--link {
    flex: none;
    width: 100%;
  }

  .gh-cookie-modal__content {
    padding: 1.5rem;
  }

  .gh-cookie-modal__actions {
    flex-direction: column;
  }
}
