#bpm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,10,15,0.7);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#bpm-overlay.bpm-show { display: flex; }
#bpm-overlay.bpm-pos-top { align-items: flex-start; padding-top: 40px; }
#bpm-overlay.bpm-pos-bottom { align-items: flex-end; padding-bottom: 40px; }

#bpm-popup {
  background: var(--bpm-bg, #151a23);
  color: var(--bpm-text, #ffffff);
  border-radius: 22px;
  padding: 44px 34px 28px;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  animation: bpm-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-sizing: border-box;
}
#bpm-popup * { box-sizing: border-box; }

/* Apsauga nuo temos stilių (suspaustas raidžių tarpas, eilučių aukštis) */
#bpm-popup, #bpm-popup *, #bpm-bar, #bpm-bar * {
  letter-spacing: normal !important;
  word-spacing: normal !important;
}
#bpm-popup p, #bpm-popup h2 { margin-left: 0; margin-right: 0; }
/* WordPress emoji paveikslėliai: laikyti eilutėje kartu su tekstu */
#bpm-popup img.emoji, #bpm-bar img.emoji {
  display: inline !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.25em 0 0 !important;
  vertical-align: -0.12em !important;
}
#bpm-popup .bpm-badge { letter-spacing: 0.08em !important; }
#bpm-popup .bpm-unit label { letter-spacing: 0.08em !important; }
#bpm-popup #bpm-title { letter-spacing: 0.02em !important; word-spacing: 0.15em !important; }
.bpm-icon img.emoji { height: 1em !important; width: 1em !important; margin: 0 !important; }
@keyframes bpm-in {
  from { opacity:0; transform: scale(0.88) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

#bpm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--bpm-text, #fff);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  padding: 0;
}
#bpm-close:hover { background: rgba(255,255,255,0.25); }

.bpm-icon { font-size: 50px; line-height: 1; margin-bottom: 10px; display: block; animation: bpm-float 2s ease-in-out infinite alternate; }
@keyframes bpm-float { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

.bpm-badge {
  letter-spacing: 0.08em !important;
  display: inline-block;
  color: var(--bpm-accent, #f28c28);
  background: rgba(255,255,255,0.07);
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

#bpm-title {
  font-size: 26px;
  line-height: 1.25 !important;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: 0.02em !important;
  word-spacing: 0.15em !important;
  text-transform: uppercase;
  color: var(--bpm-text, #fff);
}
#bpm-title .bpm-ph { color: var(--bpm-accent, #f28c28); }

.bpm-msg {
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.6 !important;
  margin: 0 0 22px;
}
.bpm-msg b, .bpm-msg strong { opacity: 1; color: var(--bpm-text, #fff); }

#bpm-countdown {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.bpm-unit {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 12px 8px 10px;
  min-width: 80px;
}
.bpm-unit span {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--bpm-accent, #f28c28);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.bpm-unit label {
  letter-spacing: 0.08em !important;
  display: block;
  font-size: 10px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.bpm-sep {
  font-size: 26px;
  font-weight: 800;
  color: var(--bpm-accent, #f28c28);
  align-self: center;
  padding-bottom: 16px;
  opacity: 0.7;
}

.bpm-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--bpm-accent, #f28c28);
  color: #fff !important;
  text-decoration: none !important;
  padding: 15px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  transition: filter 0.2s, transform 0.15s;
}
.bpm-btn-main { display: block; }
.bpm-btn:focus { outline: none; }
.bpm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bpm-btn small { font-weight: 500; font-size: 13px; opacity: 0.92; margin-top: 3px; }
.bpm-btn:hover { filter: brightness(0.93); transform: translateY(-2px); }
#bpm-btn { animation: bpm-pulse 2.2s infinite; }
@keyframes bpm-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bpm-accent, #f28c28) 55%, transparent); }
  70%  { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.bpm-btn-wa { background: var(--bpm-wa, #25d366); }

.bpm-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0.6;
  margin: 14px 0;
}
.bpm-or:before, .bpm-or:after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.4; }

.bpm-foot { margin-top: 18px; font-size: 13px; opacity: 0.7; line-height: 1.5; }

/* Juosta telefono apačioje */
#bpm-bar { display: none; }

@media (max-width: 767px) {
  #bpm-popup { padding: 36px 18px 22px; border-radius: 18px; }
  .bpm-icon { font-size: 40px; }
  #bpm-title { font-size: 21px; }
  #bpm-title { line-height: 1.25 !important; }
  .bpm-msg { font-size: 14.5px; margin-bottom: 18px; }
  #bpm-countdown { gap: 4px; margin-bottom: 20px; }
  .bpm-unit { min-width: 0; flex: 1; padding: 10px 2px 8px; }
  .bpm-unit span { font-size: 25px; }
  .bpm-unit label {
  letter-spacing: 0.08em !important; font-size: 9px; letter-spacing: 0.04em; }
  .bpm-sep { font-size: 20px; }
  .bpm-btn { font-size: 16px; padding: 13px 12px; }

  #bpm-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999998;
    background: var(--bpm-bg, #151a23);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
    transform: translateY(110%);
    transition: transform 0.3s;
  }
  #bpm-bar.bpm-show { transform: none; }
  #bpm-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 9px 6px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
  }
  #bpm-bar .bpm-btn-main { display: block; }
  #bpm-bar a small { font-weight: 500; font-size: 11px; opacity: 0.92; }
  #bpm-bar .bpm-bar-call { background: var(--bpm-accent, #f28c28); flex: 1.3; }
  #bpm-bar .bpm-bar-wa { background: var(--bpm-wa, #25d366); }
}
