/* Cookie Consent Banner - Figma Design Implementation */

#cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: clamp(320px, 85vw, 1221px);
  height: clamp(80px, 6.4vw, 103px);
  z-index: 10000;
  background: rgba(189, 189, 250, 0.2);
  border-radius: clamp(25px, 3.1vw, 50px);
  padding: clamp(8px, 0.6vw, 10px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 0.6vw, 10px);
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.5s ease-out;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#cookie-consent:focus,
#cookie-consent:focus-visible,
#cookie-consent:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#cookie-consent.show {
  transform: translateX(-50%) translateY(0);
}

#cookie-consent__container {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: clamp(25px, 3.1vw, 50px);
  padding: clamp(8px, 0.6vw, 10px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 1.2vw, 20px);
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#cookie-consent__container:focus,
#cookie-consent__container:focus-visible,
#cookie-consent__container:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#cookie-consent__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 0.8vw, 16px);
  flex: 1;
}

#cookie-consent__icon {
  width: clamp(40px, 3.2vw, 54px);
  height: clamp(40px, 3.2vw, 54px);
  flex-shrink: 0;
}

#cookie-consent__icon svg {
  width: 100%;
  height: 100%;
}

#cookie-consent__text {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: clamp(20px, 1.5vw, 24px);
  color: #000000;
  text-align: left;
}

#cookie-consent__actions {
  display: flex;
  gap: clamp(8px, 0.6vw, 12px);
  flex-shrink: 0;
}

#cookie-consent__actions .btn--primary,
#cookie-consent__actions .btn--secondary {
  min-width: clamp(80px, 7vw, 116px);
  height: clamp(45px, 3.8vw, 63px);
  padding: 0 clamp(12px, 1vw, 20px);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 16px);
  line-height: clamp(18px, 1.7vw, 27px);
  letter-spacing: 0.48px;
  border-radius: clamp(25px, 3.1vw, 50px);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  outline: none !important;
  box-shadow: none !important;
}

#cookie-consent__actions .btn--primary:focus,
#cookie-consent__actions .btn--primary:focus-visible,
#cookie-consent__actions .btn--secondary:focus,
#cookie-consent__actions .btn--secondary:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#cookie-consent__actions .btn--primary {
  background-color: #1f1f1f;
  color: #ffffff;
  border: 1px solid #1f1f1f;
}

#cookie-consent__actions .btn--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

#cookie-consent__actions .btn--secondary {
  background-color: transparent;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
}

#cookie-consent__actions .btn--secondary:hover {
  background-color: #f5f5f5;
}

#cookie-consent__learn-more {
  color: #5E52F3;
  text-decoration: underline;
  font-size: clamp(12px, 1vw, 16px);
  margin-top: clamp(4px, 0.3vw, 8px);
  outline: none !important;
  box-shadow: none !important;
}

#cookie-consent__learn-more:focus,
#cookie-consent__learn-more:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#cookie-consent__learn-more:hover {
  color: #8EBBF3;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  #cookie-consent {
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    height: auto;
    min-height: clamp(80px, 12vw, 120px);
    border-radius: 0;
    padding: clamp(12px, 3vw, 20px);
  }

  #cookie-consent.show {
    transform: translateY(0);
  }

  #cookie-consent__container {
    flex-direction: column;
    gap: clamp(12px, 2vw, 16px);
    padding: clamp(12px, 3vw, 20px);
  }

  #cookie-consent__content {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.5vw, 12px);
  }

  #cookie-consent__text {
    text-align: left;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: clamp(20px, 4vw, 24px);
  }

  #cookie-consent__actions {
    width: 100%;
    justify-content: center;
    gap: clamp(12px, 3vw, 16px);
  }

  #cookie-consent__actions .btn--primary,
  #cookie-consent__actions .btn--secondary {
    flex: 1;
    min-width: auto;
    height: clamp(45px, 8vw, 60px);
    font-size: clamp(14px, 3.5vw, 16px);
  }
}

/* Light theme support */
@media (prefers-color-scheme: light) {
  #cookie-consent {
    background: rgba(189, 189, 250, 0.2);
  }

  #cookie-consent__container {
    background-color: #ffffff;
  }

  #cookie-consent__text {
    color: #000000;
  }

  #cookie-consent__actions .btn--primary {
    background-color: #1f1f1f;
    color: #ffffff;
    border-color: #1f1f1f;
  }

  #cookie-consent__actions .btn--secondary {
    background-color: transparent;
    color: #1f1f1f;
    border-color: #1f1f1f;
  }
}

/* Reduced motion: disable transitions if user prefers */
@media (prefers-reduced-motion: reduce) {
  #cookie-consent {
    transition: none;
  }
}