:root {
  --bg1:#f7e9d8;
  --bg2:#e9d0b0;
  --accent:#5a3220;
  --muted:#7a5a49;
  --cta-bg:#b85a2b;
  --cta-text:#fff;
  --radius:12px;
  font-family: "Montserrat", "Lora", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* fixed mini banner */
.promo-banner-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg,var(--bg1),var(--bg2));
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 14px 20px 18px;
  max-width: 320px;
  animation: pop-in 0.5s ease-out forwards;
  transform-origin: bottom right;
}

/* close button */
.promo-banner-fixed .close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}
.promo-banner-fixed .close-btn:hover {
  color: var(--accent);
}

.promo-content {
  text-align: center;
  color: var(--accent);
}

.promo-content .top {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(-8px);
  animation: fade-in 0.5s ease-out 0.2s forwards, sway 4s ease-in-out 3s infinite;
}

.promo-content .headline {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(8px);
  animation: fade-in 0.6s ease-out 0.6s forwards;
}

.promo-content .price {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0;
  opacity: 0;
  transform: scale(0.9);
  animation: price-in 0.6s ease-out 1.2s forwards;
}
.promo-content .price span {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}
.promo-content .price.animated {
  animation: pulse-loop 2s ease-in-out infinite;
}

.promo-content .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(6px);
  animation: fade-in 0.5s ease-out 1.8s forwards;
}

.promo-content .cta {
  display: inline-block;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  animation: fade-in 0.5s ease-out 2.2s forwards;
  box-shadow: 0 4px 10px rgba(184,90,43,0.2);
}
.promo-content .cta.animated {
  animation: bounce-loop 3s ease-in-out infinite;
}

/* animations */
@keyframes fade-in {
  to { opacity: 1; transform: none; }
}
@keyframes price-in {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse-loop {
  0%, 100% { transform: scale(1); opacity:1; }
  50% { transform: scale(1.08); }
}
@keyframes bounce-loop {
  0%, 100% { transform: translateY(0); opacity:1; }
  50% { transform: translateY(-4px); }
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(2deg) translateY(-2px); }
  75% { transform: rotate(-2deg) translateY(-2px); }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .promo-banner-fixed, .promo-content * { 
    animation: none !important; 
    opacity: 1 !important; 
    transform: none !important; 
  }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1199px) {
  .promo-banner-fixed {
    max-width: 200px;      /* jeszcze mniejsze */
    padding: 7px 10px 9px;  /* mniejsze paddingi */
    bottom: 0px;           /* przyklejone do dołu */
    right: 0px;            /* przyklejone do prawej */
    border-radius: 10px 0 0 0;    /* trochę mniejszy radius */
  }

  .promo-content .headline {
    font-size: 14px;
  }
  .promo-content .price {
    font-size: 24px;
  }
  .promo-content .sub {
    font-size: 12px;
  }
  .promo-content .cta {
    font-size: 12px;
    padding: 5px 8px;
  }
}