/* ==========================================================================
   COOKIE CONSENT SIDE POPUP (SLIDE FROM RIGHT WITH PARTICLE BURST)
   ========================================================================== */

.cookie-consent-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 48px);
  max-width: 420px;
  z-index: 9999;
  transform: translateX(130%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
  pointer-events: none;
}

.cookie-consent-container.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-container.disintegrating {
  pointer-events: none;
  animation: cookieDisintegrateInPlace 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cookie-consent-container.disintegrating .cookie-card {
  box-shadow: 0 0 35px rgba(217, 157, 38, 0.65), 0 0 60px rgba(62, 116, 75, 0.35);
  border-color: rgba(217, 157, 38, 0.8);
}

@keyframes cookieDisintegrateInPlace {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0px) brightness(1);
  }
  25% {
    transform: translateX(0) scale(1.02);
    opacity: 0.95;
    filter: blur(1.5px) brightness(1.2);
  }
  60% {
    transform: translateX(0) scale(0.98);
    opacity: 0.35;
    filter: blur(6px) brightness(1.35);
  }
  100% {
    transform: translateX(0) scale(0.92);
    opacity: 0;
    filter: blur(14px) brightness(1.5);
    visibility: hidden;
  }
}

.cookie-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(62, 116, 75, 0.25);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 16px 40px -10px rgba(64, 51, 38, 0.22),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  position: relative;
  overflow: hidden;
}

.cookie-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3E744B 0%, #D99D26 50%, #F08B42 100%);
}

.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cookie-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cookie-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cookie-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #403326; /* SOLID NO GRADIENT */
}

.cookie-close-btn {
  color: #6B5E51;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.2rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cookie-close-btn:hover {
  color: #403326;
  background: #F2EEE3;
}

.cookie-text {
  font-size: 0.875rem;
  color: #5A4736;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cookie-text a {
  color: #3E744B;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #2D5336;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cookie-actions-row {
  display: flex;
  gap: 0.65rem;
}

.cookie-btn {
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cookie-btn-primary {
  background: #3E744B;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(62, 116, 75, 0.3);
  width: 100%;
}

.cookie-btn-primary:hover {
  background: #509560;
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: #F2EEE3;
  color: #403326;
  flex: 1;
}

.cookie-btn-secondary:hover {
  background: #E6DFCB;
}

.cookie-btn-minimal {
  background: transparent;
  color: #6B5E51;
  font-size: 0.8rem;
  padding: 0.35rem;
  text-decoration: underline;
}

.cookie-btn-minimal:hover {
  color: #403326;
}

/* Particle Canvas Overlay */
#cookie-particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

