/* =====================================================
   COOKIE CONSENT BANNER – Simon's Chocolate
   Premium design, matches the existing design system.
   ===================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #FFFFFF;
  border-top: 1px solid #E8E0D8;
  box-shadow: 0 -8px 40px rgba(46, 40, 36, 0.10);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: 'Inter', sans-serif;

  /* Entrance animation */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.4s ease;
}

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

/* Subtle warm accent line at top */
#cookie-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #966c57, #c4956a, #966c57);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Text area */
.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.8rem;
  color: #6B625C;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: #966c57;
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 108, 87, 0.35);
  transition: border-color 0.2s ease;
}

.cookie-banner__text a:hover {
  border-color: #966c57;
}

/* Buttons */
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Primary: Accept all – matches .btn-premium */
#cookie-accept-all {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background-color: #966c57;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #966c57;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#cookie-accept-all:hover {
  background-color: #a77f66;
  transform: translateY(-1px);
}

/* Secondary: Essential only – subtle link style */
#cookie-accept-essential {
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #A09D9A;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

#cookie-accept-essential:hover {
  color: #6B625C;
  text-decoration: underline;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  #cookie-accept-all {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  #cookie-accept-essential {
    text-align: center;
    margin-top: 0.25rem;
  }
}
