/* ==========================================================================
   Cookie Banner — CheftoChef
   ========================================================================== */

#ctc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: #fff;
  border-top: 1px solid rgba(20, 18, 17, 0.1);
  box-shadow: 0 -4px 24px rgba(20, 18, 17, 0.08);

  /* Slide-in transition */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.35s ease;
  opacity: 0;
}

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

#ctc-cookie-banner.ctc-cookie--hiding {
  transform: translateY(100%);
  opacity: 0;
}

.ctc-cookie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: min(92rem, calc(100vw - 3rem));
  margin: 0 auto;
}

.ctc-cookie__text {
  margin: 0;
  color: #5f6670;
  font-size: 0.875rem;
  line-height: 1.6;
}

.ctc-cookie__link {
  color: #8f184f;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.ctc-cookie__link:hover {
  color: #b01362;
}

.ctc-cookie__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ctc-cookie__btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45em 1.1em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.ctc-cookie__btn--reject {
  background: #5f6670;
  color: #fff;
  border: 1px solid transparent;
}

.ctc-cookie__btn--reject:hover {
  background: #4a5058;
  box-shadow: 0 2px 10px rgba(95, 102, 112, 0.3);
}

.ctc-cookie__btn--accept {
  background: #8f184f;
  color: #fff;
  border: 1px solid transparent;
}

.ctc-cookie__btn--accept:hover {
  background: #b01362;
  box-shadow: 0 2px 10px rgba(143, 24, 79, 0.3);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  .ctc-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ctc-cookie__actions {
    align-self: flex-end;
  }
}
