/* Cookie consent banner & modal – Pixellum */

/* Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 24px;
  background-color: #000;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

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

.cookie-consent-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cookie-consent-banner__text {
  flex: 1 1 280px;
}

.cookie-consent-banner__text a {
  color: #4bfc60;
  text-decoration: underline;
}

.cookie-consent-banner__text a:hover,
.cookie-consent-banner__text a:focus {
  text-decoration: none;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cookie-consent-banner__btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-consent-banner__btn--primary {
  background-color: #4bfc60;
  color: #000;
}

.cookie-consent-banner__btn--primary:hover,
.cookie-consent-banner__btn--primary:focus {
  background-color: #3ce052;
  outline: none;
}

.cookie-consent-banner__btn--secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-consent-banner__btn--secondary:hover,
.cookie-consent-banner__btn--secondary:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* Overlay */
.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.cookie-consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  background-color: #fff;
  color: #000;
  padding: 32px;
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-consent-modal.is-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.cookie-consent-modal__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.cookie-consent-modal__intro {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-consent-modal__intro a {
  color: #000;
  text-decoration: underline;
}

.cookie-consent-modal__intro a:hover,
.cookie-consent-modal__intro a:focus {
  text-decoration: none;
}

.cookie-consent-modal__group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-consent-modal__group:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.cookie-consent-modal__group-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.cookie-consent-modal__group-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.cookie-consent-modal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.cookie-consent-modal__toggle input {
  width: 44px;
  height: 24px;
  margin: 0;
  accent-color: #4bfc60;
  cursor: pointer;
}

.cookie-consent-modal__toggle input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-consent-modal__btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-consent-modal__btn--primary {
  background-color: #4bfc60;
  color: #000;
}

.cookie-consent-modal__btn--primary:hover,
.cookie-consent-modal__btn--primary:focus {
  background-color: #3ce052;
  outline: none;
}

.cookie-consent-modal__btn--secondary {
  background-color: #000;
  color: #fff;
}

.cookie-consent-modal__btn--secondary:hover,
.cookie-consent-modal__btn--secondary:focus {
  background-color: #333;
  outline: none;
}
