/* Base styles */
.promo-pill {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  max-width: 95vw;
  font-family: sans-serif;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.promo-pill.collapsed {
  transform: translateX(120%);
  opacity: 0;
}

.promo-pill.expanded {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}

.promo-pill-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  position: relative;
}

.promo-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.3;
}

.promo-brand {
  font-weight: bold;
  font-size: 13px;
  color: #aaa;
}

.promo-message {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.promo-link {
  background: #fff;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.promo-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  top: -14px;   /* move above pill */
  right: -14px; /* offset to the right corner */
  z-index: 10000;
  background: rgba(0,0,0,0.7); /* subtle dark circle behind */
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Desktop tweaks */
@media (min-width: 769px) {
  .promo-pill {
    font-size: 16px;
    padding: 12px 18px;
    max-width: 420px;
  }
  .promo-message {
    font-size: 16px;
  }
  .promo-link {
    font-size: 15px;
    padding: 6px 14px;
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .promo-pill {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(26,26,26,0.85); /* semi-transparent */
    padding: 12px;
    max-width: 90vw;
  }
  .promo-text {
    margin-bottom: 8px;
  }
  .promo-link {
    width: 100%;
    text-align: center;
    margin-top: 4px;
    padding: 8px;
  }
  .promo-close {
    top: 6px;
    right: 6px;
    font-size: 20px;
  }
}
