:root{
  --pink:#FE9AFC;
  --pinkSoft:#FDE4FB;
  --ink:#1A1A1A;
  --ink50:rgba(26,26,26,.5);
  --line:rgba(26,26,26,.08);
  --card:#FFFFFF;
}

.wyj-sp{
  position:fixed; left:24px; bottom:24px;
  z-index:999999; max-width:calc(100vw - 48px);
  opacity:0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events:none;
}
.wyj-sp--hidden{ display:none; }
.wyj-sp--visible{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

/* Variant 01: Toast — z avatarem (z `wygląd.html`) */
.wyj-sp-toast{
  width:352px;
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:0 12px 32px rgba(26,26,26,.10), 0 2px 6px rgba(26,26,26,.05);
  color:var(--ink);
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wyj-sp-avatar{ position:relative; width:44px; height:44px; }
.wyj-sp-avatar__circle{
  width:44px; height:44px; border-radius:999px;
  display:grid; place-items:center;
  font-family:'Fraunces', Georgia, serif;
  font-size:16px; font-weight:600; color:var(--ink);
  background:var(--pinkSoft); border:1px solid rgba(254,154,252,.33);
}
.wyj-sp-avatar__dot{
  position:absolute; right:-1px; bottom:-1px;
  width:12px; height:12px; border-radius:99px;
  background:var(--pink); border:2px solid #fff;
}

.wyj-sp-eyebrow{
  font-size:10px; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink50); margin-bottom:2px;
}
.wyj-sp-body{
  font-size:13px; line-height:1.25; color:var(--ink);
  display: grid;
  gap: 2px;
}
.wyj-sp-body strong{ font-weight:700; }
.wyj-sp-l1,
.wyj-sp-l2{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.wyj-sp-meta{
  font-size:11px; color:var(--ink50); margin-top:4px;
  display:inline-flex; align-items:center; gap:5px;
}
.wyj-sp-toast .icon{ display:inline-block; vertical-align:middle; }

.wyj-sp-add{
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.wyj-sp-add:hover{ color: rgba(26,26,26,.85); }

/* Nie pozwól, żeby style .button z elementora/YITH zmieniły wygląd linku */
.wyj-sp a.yith-wcqv-button.button.wyj-sp-add{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  line-height: inherit !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  text-transform: none !important;
  letter-spacing: inherit !important;
}
.wyj-sp a.yith-wcqv-button.button.wyj-sp-add span{ display:inline; }

.wyj-sp-dismiss{
  align-self:start;
  margin-top:2px;
  width:24px;
  height:24px;
  border-radius:99px;
  background:rgba(26,26,26,.04);
  border:1px solid rgba(26,26,26,.08);
  cursor:pointer;
  color:rgba(26,26,26,.55);
  display:grid;
  place-items:center;
  font-family:inherit;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.wyj-sp-dismiss:hover{
  background:rgba(26,26,26,.06);
  border-color:rgba(26,26,26,.12);
  color:rgba(26,26,26,.7);
}
.wyj-sp-dismiss:active{ transform: scale(.96); }
.wyj-sp-dismiss svg{ display:block; }

/* Mobile: mniejsze + wyżej (żeby nie zasłaniać CTA) */
@media (max-width: 520px){
  .wyj-sp{
    left: 50%;
    bottom: 55px; /* 4px do góry */
    max-width: calc(100vw - 32px);
    width: max-content;
    transform: translate(-50%, 10px);
  }
  .wyj-sp--visible{
    transform: translate(-50%, 0);
  }
  .wyj-sp-toast{
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    gap: 0;
    border-radius: 10px;
    grid-template-columns: 1fr auto;
  }
  .wyj-sp-avatar{ display:none; }
  .wyj-sp-eyebrow{ display:none; }
  .wyj-sp-meta{ display:none; }
  .wyj-sp-body{
    font-size: 13px;
    line-height: 1.15;
    display: grid;
    gap: 2px;
    text-align: center;
    max-width: calc(100vw - 32px - 16px - 16px - 28px); /* viewport - margins - padding - X */
  }
  .wyj-sp-m1,
  .wyj-sp-m2{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-self: center;
    max-width: 100%;
  }
  .wyj-sp-m1{ color: rgba(26,26,26,.75); font-weight: 600; }
  .wyj-sp-m2{ color: rgba(26,26,26,.6); font-weight: 500; }
  .wyj-sp-m2 a.wyj-sp-add{
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wyj-sp-dismiss{
    display: none !important;
  }
}

/* Hard override vs Elementor kit button styling */
.wyj-sp .wyj-sp-dismiss{
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: rgba(26,26,26,.04) !important;
  color: rgba(26,26,26,.55) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(26,26,26,.08) !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

