#cookie-side {
  position: fixed;
  right: 0;
  top: 80%;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* ICON (always visible, stuck to right edge) */
.cookie-tab {
  position: absolute;
  right: 0px;
  top: 0;
  width: 50px;
  height: 50px;
  background: transparent; /* you control it */
  cursor: pointer;
  z-index: 2;
}

.cookie-tab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PANEL (hidden to the right, slides LEFT) */
.cookie-panel {
  
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  position: relative;
  width: 220px;
  background: #333;
  color: #fff;
  border-radius: 8px 0 0 8px;

  /* START hidden (to the right) */
  transform: translateX(100%);
  transition: transform 0.35s ease 0.1s;
}

/* SHOW panel */
#cookie-side.open .cookie-panel {
  transform: translateX(0);
}

/* DESKTOP hover support */
@media (hover: hover) {
  #cookie-side:hover .cookie-panel {
    transform: translateX(0);
  }
 }

/* CONTENT */
.cookie-content {
  padding: 10px;
  padding-right: 60px; /* space for icon overlap */
}

.cookie-content p {
  font-size: 12px;
  margin: 0 0 8px;
  line-height: 1.4;
}

.cookie-content a {
  color: #ffd700;
  text-decoration: underline;
}

/* BUTTON */
#accept-cookie {
  background: #28a745;
  border: none;
  padding: 6px 10px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

#accept-cookie:hover {
  background: #218838;
}


/* PULSE ANIMATION */
@keyframes cookiePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* APPLY TO ICON */
.cookie-tab img {
  animation: cookiePulse 2s 5;
}