/**
 * Cookie Banner Styles
 */

/* Cookie Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Below marketing popup (999999) */
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

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

.cookie-banner-container {
  background: #fffce1;
  border-radius: 20px;
  padding: 0 30px;
  max-width: 688px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  box-sizing: border-box;
}

/* Cookie Character */
.cookie-character {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  position: relative;
}

.cookie-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Cookie Content */
.cookie-content {
  flex: 1;
  max-width: 255px;
}

.cookie-title {
  font-size: 30px;
  font-weight: 600;
  color: #2a402f;
  margin: 0 0 10px 0;
}

.cookie-description {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

/* Accept Button Wrapper */
.cookie-accept-wrapper {
  margin-bottom: 10px;
}

/* CTA Button Overrides for Cookie Banner */
.cookie-banner .cta-button {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
}

.cookie-banner .cta-button:focus-visible {
  outline: 0;
}

.cookie-banner .cta-button .cta-button-label {
  color: #ffffff;
  font-size: 18px;
}

/* Cookie Policy Link */
.cookie-policy-link {
  display: inline-block;
  color: #2a402f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.cookie-policy-link span {
  font-weight: 700;
  text-decoration: underline;
}

.cookie-policy-link:hover {
  opacity: 0.8;
}

/* Close Button */
.cookie-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #c0c0c0;
  transition: color 0.2s ease;
}

.cookie-close-btn:hover {
  color: #666666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 10px;
  }

  .cookie-banner-container {
    flex-direction: column;
    padding: 30px 20px;
    max-width: 400px;
  }

  .cookie-character {
    width: 180px;
    height: 180px;
  }

  .cookie-title {
    font-size: 25px;
  }

  .cookie-description {
    font-size: 13px;
  }

  .cookie-banner .cta-button {
    width: 100%;
  }

  .cookie-banner .cta-button .cta-button-label {
    font-size: 16px;
  }

  .cookie-close-btn {
    top: 23px;
    right: 23px;
  }

  .cookie-close-btn svg {
    width: 33px;
    height: 33px;
  }
}

/* Animation for cookie character */
@keyframes cookie-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.cookie-banner.is-visible .cookie-character {
  animation: cookie-bounce 2s ease-in-out infinite;
}
