/* --- Slideout container --- */
#giveaway-slideout {
  position: fixed;
  top: 135px;
  left: 0;
  z-index: 9999;
  max-width: 320px;
  font-family: inherit;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateX(-280px);
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

/* Initial animation */
@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- Collapsed: stays hidden */
#giveaway-slideout.collapsed {
  transform: translateX(0); /* remains in view once loaded */
}

/* --- Banner --- */
.giveaway-banner {
  background: #b30000;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  min-width: 260px;
  border-radius: 0 6px 0 0;
}

/* Layout */
.giveaway-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.giveaway-text {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
  flex: 1;
}

.arrow {
  font-size: 20px;
  transition: transform 0.2s ease-in-out;
  color:#fff;
}

#giveaway-slideout.expanded .arrow {
  transform: rotate(90deg);
}

/* --- Form animation container --- */
.giveaway-form {
  background: #111;
  overflow: hidden;
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.4s ease;
}

/* --- Slide in when expanded --- */
#giveaway-slideout.expanded .giveaway-form {
  max-height: 500px; /* adjust if needed */
  padding: 16px;
  opacity: 1;
  transform: translateX(0);
}

/* Form fields */
.giveaway-form input {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 14px;
  border-radius: 4px;
}

.giveaway-form button {
  background: #e60000;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s ease-in-out;
}

.giveaway-form button:hover {
  background: #cc0000;
}

.giveaway-note {
  font-size: 13px;
  margin-top: 8px;
  color: #ccc;
  text-align: center;
}
