#ldso-topbar-root {
  position: sticky;
  top: 0;
  z-index: 2147482000;
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

#ldso-topbar-root:empty { display: none; }

/* Logged-in administrators must always be able to use the WordPress toolbar menus. */
body.admin-bar #wpadminbar {
  z-index: 2147483647 !important;
}

.ldso-live-bar {
  box-sizing: border-box;
  width: 100%;
  min-height: 78px;
  color: #fff;
  background: radial-gradient(circle at 18% 0%, rgba(157, 106, 255, .38), transparent 34%), linear-gradient(105deg, #2d086d 0%, #6b20dd 54%, #3a078e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 3px 14px rgba(25, 8, 65, .24);
}

.ldso-live-inner {
  box-sizing: border-box;
  max-width: 1120px;
  min-height: 78px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: auto minmax(300px, 440px) auto auto;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ldso-live-badge {
  flex: 0 0 auto;
  padding: 10px 20px;
  color: #ffe75c;
  background: #21103f;
  border: 1px solid rgba(255, 231, 92, .72);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 222, 73, .09), 0 6px 18px rgba(20, 5, 48, .3);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
  animation: ldso-badge-pulse 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes ldso-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.ldso-live-message {
  min-width: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.ldso-live-price { color: #ffe75c; font-weight: 800; }
.ldso-live-mobile-message { display: none; }

.ldso-live-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  color: #21103f !important;
  background: #ffda35;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(22, 7, 50, .22);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ldso-live-button:hover {
  color: #21103f !important;
  background: #ffe66c;
  box-shadow: 0 7px 18px rgba(22, 7, 50, .28);
  transform: translateY(-1px);
}

.ldso-live-countdown {
  flex: 0 0 auto;
  min-width: 135px;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.ldso-live-countdown-label {
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ldso-live-timer {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(20, 5, 48, .35);
}

.ldso-live-bar:not(.ldso-show-desktop) { display: none; }

body.ldso-topbar-visible .elementor-location-header .elementor-sticky--active {
  top: var(--ldso-topbar-height, 78px) !important;
}

body.ldso-topbar-visible .ld-topbar.main-header {
  top: var(--ldso-topbar-height, 78px) !important;
}

@media (min-width: 768px) and (max-width: 1050px) {
  .ldso-live-inner { padding: 10px 16px; grid-template-columns: auto minmax(220px, 1fr) auto auto; gap: 12px; }
  .ldso-live-badge { padding: 9px 14px; font-size: 13px; }
  .ldso-live-message { font-size: 16px; }
  .ldso-live-button { min-height: 34px; padding: 7px 11px; font-size: 11px; }
  .ldso-live-countdown { min-width: 112px; }
  .ldso-live-timer { font-size: 17px; }
}

@media (max-width: 767px) {
  .ldso-live-bar:not(.ldso-show-mobile) { display: none; }
  .ldso-live-bar { min-height: 92px; }

  .ldso-live-inner {
    min-height: 92px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "badge countdown" "message button";
    justify-content: stretch;
    gap: 7px 10px;
  }

  .ldso-live-desktop-message { display: none; }

  .ldso-live-badge {
    grid-area: badge;
    justify-self: start;
    display: inline-block;
    padding: 7px 12px;
    font-size: 12px;
    box-shadow: 0 0 0 3px rgba(255, 222, 73, .08), 0 4px 12px rgba(20, 5, 48, .26);
  }

  .ldso-live-mobile-message {
    grid-area: message;
    display: block;
    max-width: none;
    align-self: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-wrap: pretty;
  }

  .ldso-live-button {
    grid-area: button;
    min-height: 31px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .ldso-live-countdown {
    grid-area: countdown;
    justify-self: end;
    min-width: 0;
    margin-left: 0;
    gap: 1px;
  }

  .ldso-live-countdown-label { font-size: 8px; }
  .ldso-live-timer { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ldso-live-badge { animation: none; }
  .ldso-live-button { transition: none; }
}

@media (min-width: 783px) {
  body.admin-bar #ldso-topbar-root { top: 32px; }
  body.admin-bar.ldso-topbar-visible .elementor-location-header .elementor-sticky--active { top: calc(var(--ldso-topbar-height, 78px) + 32px) !important; }
  body.admin-bar.ldso-topbar-visible .ld-topbar.main-header { top: calc(var(--ldso-topbar-height, 78px) + 32px) !important; }
}

@media (max-width: 782px) {
  body.admin-bar #ldso-topbar-root { top: 46px; }
  body.admin-bar.ldso-topbar-visible .elementor-location-header .elementor-sticky--active { top: calc(var(--ldso-topbar-height, 78px) + 46px) !important; }
  body.admin-bar.ldso-topbar-visible .ld-topbar.main-header { top: calc(var(--ldso-topbar-height, 78px) + 46px) !important; }
}

@media (max-width: 767px) {
  body.admin-bar.ldso-topbar-visible .elementor-location-header .elementor-sticky--active { top: calc(var(--ldso-topbar-height, 92px) + 46px) !important; }
  body.admin-bar.ldso-topbar-visible .ld-topbar.main-header { top: calc(var(--ldso-topbar-height, 92px) + 46px) !important; }
}
