/* Supertree Pop-ups: three designs, chosen per pop-up in wp-admin.
     .stpop--card    white corner card
     .stpop--purple  bold purple card, brace + coral highlight underline
     .stpop--bar     slim strip along the bottom
     .stpop--blackfriday  black card like the Black Friday landing hero
   .stpop--phone is set by popup.js on screens up to 600px (and by the
   wp-admin preview's Phone switch), so there is one set of phone rules.
   Non-blocking on purpose: no page overlay. Colours from the brandbook. */
.stpop {
  --stpop-purple: #855ce8;
  --stpop-purple-hover: #7449dc;
  --stpop-text: #1f1f2b;
  --stpop-soft: #55556a;
  --stpop-coral: #ff6666;

  position: fixed;
  z-index: 9990;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
  color: var(--stpop-text);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.stpop.is-open {
  opacity: 1;
  transform: none;
}
.stpop *,
.stpop *::before,
.stpop *::after {
  box-sizing: border-box;
}
.stpop p {
  margin: 0;
}

/* ---------- shared parts ---------- */
.stpop__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--stpop-soft);
  cursor: pointer;
}
.stpop__close:hover,
.stpop__close:focus-visible {
  background: rgba(31, 31, 43, 0.06);
  color: var(--stpop-text);
}
.stpop .stpop__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 50px;
  background: var(--stpop-purple);
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.stpop .stpop__btn:hover,
.stpop .stpop__btn:focus-visible {
  background: var(--stpop-purple-hover);
}

/* ---------- card + purple (same layout) ---------- */
.stpop--card,
.stpop--purple {
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 28px 28px 24px;
  border-radius: 20px;
  overflow: hidden;
}
.stpop--card .stpop__close,
.stpop--purple .stpop__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}
.stpop--card .stpop__eyebrow,
.stpop--purple .stpop__eyebrow {
  margin-bottom: 8px;
  padding-right: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.stpop--card .stpop__title,
.stpop--purple .stpop__title {
  margin-bottom: 10px;
  padding-right: 24px;
  font-size: 22px;
  line-height: 1.25;
  text-wrap: balance;
}
.stpop--card .stpop__body,
.stpop--purple .stpop__body {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}
.stpop--card .stpop__btn,
.stpop--purple .stpop__btn {
  width: 100%;
}
.stpop--card .stpop__note,
.stpop--purple .stpop__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* Option 1: white card */
.stpop--card {
  background: #fff;
  border-top: 4px solid #a678ff;
  box-shadow: 0 18px 50px rgba(31, 31, 43, 0.18), 0 2px 8px rgba(31, 31, 43, 0.06);
}
.stpop--card .stpop__eyebrow { color: var(--stpop-purple); }
.stpop--card .stpop__title { font-weight: 600; }
.stpop--card .stpop__body,
.stpop--card .stpop__note { color: var(--stpop-soft); }

/* Option 2: bold purple */
.stpop--purple {
  background: var(--stpop-purple);
  color: #fff;
  box-shadow: 0 18px 50px rgba(85, 52, 190, 0.35);
}
.stpop--purple > :not(.stpop__brace):not(.stpop__close) {
  position: relative;
}
.stpop--purple .stpop__brace {
  position: absolute;
  top: 4px;
  right: 54px;
  font-size: 120px;
  font-weight: 200;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.stpop--purple .stpop__close { color: #fff; }
.stpop--purple .stpop__close:hover,
.stpop--purple .stpop__close:focus-visible { background: rgba(255, 255, 255, 0.16); color: #fff; }
.stpop--purple .stpop__eyebrow { color: #efe6ff; }
.stpop--purple .stpop__title { font-size: 26px; font-weight: 300; color: #fff; }
.stpop--purple .stpop__hl {
  font-weight: 600;
  border-bottom: 3px solid var(--stpop-coral);
  padding-bottom: 2px;
}
.stpop--purple .stpop__body,
.stpop--purple .stpop__note { color: #f3edff; }
.stpop--purple .stpop__btn,
.stpop--purple .stpop__btn:hover,
.stpop--purple .stpop__btn:focus-visible {
  background: #fff;
  color: #5b36c4 !important;
  font-weight: 600;
}
.stpop--purple .stpop__btn:hover,
.stpop--purple .stpop__btn:focus-visible { background: #f1ebff; }

/* Option 3: slim bar */
.stpop--bar {
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px 20px 12px 32px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e4e1ee;
  box-shadow: 0 -8px 24px rgba(31, 31, 43, 0.1);
}
.stpop--bar .stpop__eyebrow {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff0f0;
  color: #b8323a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.stpop--bar .stpop__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--stpop-soft);
}
.stpop--bar .stpop__title strong {
  font-weight: 600;
  color: var(--stpop-text);
}
.stpop--bar .stpop__btn {
  flex-shrink: 0;
  padding: 12px 26px;
  font-size: 15px;
}
.stpop--bar .stpop__close { flex-shrink: 0; }

/* Option 4: Black Friday (matches the /black-friday-coworking-bucharest/ hero) */
.stpop--blackfriday {
  right: 24px;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 30px 28px 78px;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0f;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.stpop--blackfriday .stpop__wall {
  position: absolute;
  inset: -20px -60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-4deg);
  pointer-events: none;
}
.stpop--blackfriday .stpop__wall span {
  white-space: nowrap;
  color: #0a0a0f;
  -webkit-text-stroke: 1.5px #24242c;
  paint-order: stroke fill;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  animation: stpop-drift 40s linear infinite alternate;
}
.stpop--blackfriday .stpop__wall span:nth-child(even) { margin-left: -90px; animation-direction: alternate-reverse; }
.stpop--blackfriday > :not(.stpop__wall):not(.stpop__close):not(.stpop__tape) { position: relative; }
.stpop--blackfriday .stpop__close { position: absolute; top: 10px; right: 10px; z-index: 2; color: #fff; }
.stpop--blackfriday .stpop__close:hover,
.stpop--blackfriday .stpop__close:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; }
.stpop--blackfriday .stpop__lock {
  font-size: 70px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
}
.stpop--blackfriday .stpop__lock span { display: block; }
.stpop--blackfriday .stpop__outline {
  color: #0a0a0f;
  -webkit-text-stroke: 2.5px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}
.stpop--blackfriday .stpop__flk { font-style: normal; animation: stpop-flicker 5.3s linear infinite; }
.stpop--blackfriday .stpop__flk--a { animation-duration: 7.9s; animation-delay: -2.4s; }
.stpop--blackfriday .stpop__flk--k { animation-duration: 11.3s; animation-delay: -6s; }
.stpop--blackfriday .stpop__sticker {
  display: inline-block;
  margin: -10px 0 0 70px;
  padding: 5px 16px 7px;
  border-radius: 40px;
  background: var(--stpop-coral);
  color: #0a0a0f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transform: rotate(-5deg);
}
.stpop--blackfriday .stpop__title {
  margin: 18px 0 18px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.stpop--blackfriday .stpop__body { margin: -8px 0 18px; color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 1.5; }
.stpop--blackfriday .stpop__btn { width: 100%; background: #a678ff; font-weight: 600; }
.stpop--blackfriday .stpop__btn:hover,
.stpop--blackfriday .stpop__btn:focus-visible { background: #9566f5; }
.stpop--blackfriday .stpop__tape {
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 18px;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #a678ff;
  color: #0a0a0f;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.stpop--blackfriday .stpop__track { display: flex; flex: none; animation: stpop-run 30s linear infinite; }
.stpop--blackfriday .stpop__track span,
.stpop--blackfriday .stpop__track i { padding-right: 14px; font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: 0.08em; }
@keyframes stpop-run { to { transform: translateX(-50%); } }
@keyframes stpop-drift { to { transform: translateX(-20%); } }
@keyframes stpop-flicker {
  0%, 41.9%, 43.1%, 44.4%, 46.1%, 87.9%, 88.6%, 100% { opacity: 1; }
  42%, 43%, 44.5%, 46%, 88%, 88.5% { opacity: 0.08; }
}

/* ---------- phone ---------- */
.stpop--phone.stpop--card,
.stpop--phone.stpop--purple {
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  max-width: none;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
}
.stpop--phone.stpop--purple .stpop__brace { top: 2px; right: 52px; font-size: 104px; }
.stpop--phone .stpop__title { font-size: 20px; }
/* Bold purple on phones: all text centred (Sergey, 17 Nov 2026). Equal side
   padding on the label and headline so the close button does not pull the
   centre off. */
.stpop--phone.stpop--purple { text-align: center; }
.stpop--phone.stpop--purple .stpop__eyebrow,
.stpop--phone.stpop--purple .stpop__title {
  padding-right: 40px;
  padding-left: 40px;
}
.stpop--phone.stpop--purple .stpop__title { font-size: 23px; }

.stpop--phone.stpop--bar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%);
}
.stpop--phone.stpop--bar .stpop__eyebrow {
  align-self: flex-start;
  font-size: 11px;
}
.stpop--phone.stpop--bar .stpop__title {
  font-size: 15px;
}
.stpop--phone.stpop--bar .stpop__close {
  position: absolute;
  top: 6px;
  right: 6px;
}
.stpop.stpop--phone.is-open { transform: none; }

/* Black Friday on phones: bottom sheet, same parts a bit smaller. */
.stpop--phone.stpop--blackfriday {
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  max-width: none;
  padding: 26px 20px calc(74px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
}
.stpop--phone.stpop--blackfriday .stpop__lock { font-size: 60px; }
.stpop--phone.stpop--blackfriday .stpop__tape { bottom: calc(16px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  .stpop--blackfriday .stpop__wall span,
  .stpop--blackfriday .stpop__flk,
  .stpop--blackfriday .stpop__track { animation: none; }
  .stpop,
  .stpop.stpop--phone {
    transition: opacity 0.01s;
    transform: none;
  }
}

@media print {
  .stpop { display: none !important; }
}

/* ---------- Offer strip in the page: [supertree_offer id="..."] ----------
   The whole strip is one link: badge + offer text + arrow. */
.stoffer {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  box-sizing: border-box;
  align-self: flex-start;
  width: fit-content;
  margin: 4px 0 24px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e4e1ee;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(31, 31, 43, 0.06);
  font-family: "Manrope", sans-serif;
  line-height: 1.35;
  color: #1f1f2b !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.stoffer:hover,
.stoffer:focus-visible {
  border-color: #c9b6fb;
  box-shadow: 0 8px 22px rgba(133, 92, 232, 0.16);
}
.stoffer__badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0f0;
  color: #b8323a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stoffer__text {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f2b;
  text-wrap: balance;
}
.stoffer__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #855ce8;
  color: #fff;
  transition: transform 0.2s ease;
}
.stoffer:hover .stoffer__arrow,
.stoffer:focus-visible .stoffer__arrow {
  transform: translateX(2px);
}
/* Phone: "Soft coral" card (picked 11 Nov 2026). Small coral label above
   the offer text, arrow on the right, light coral background. */
@media (max-width: 600px) {
  .stoffer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    width: 100%;
    padding: 12px 12px 12px 16px;
    border-radius: 16px;
    background: #fff3f2;
    border: 1px solid #ffd9d6;
    box-shadow: none;
  }
  .stoffer:hover,
  .stoffer:focus-visible {
    border-color: #ffb8b2;
    box-shadow: none;
  }
  .stoffer__badge {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding: 0;
    background: none;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .stoffer__text {
    grid-column: 1;
    grid-row: 2;
    line-height: 1.35;
  }
  .stoffer__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
  }
}
