.ddlm-hello-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}

.ddlm-hello-bar.ddlm-hb-visible {
  transform: translateY(0);
  opacity: 1;
}

.ddlm-hb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 32px; /* text/form | action | close */
  gap: 16px;
  align-items: center;
}

.ddlm-hb-text { min-width: 0; }
.ddlm-hb-headline {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}
.ddlm-hb-sub {
  font-size: 13px;
  margin-top: 0;
  opacity: .9;
}

.ddlm-hb-action { display: flex; align-items: center; gap: 12px; }
.ddlm-hb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ddlm-hb-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

#ddlm-hello-bar .ddlm-hb-close {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s ease, transform .2s ease;
}
#ddlm-hello-bar .ddlm-hb-close:hover { opacity: 1; transform: scale(1.05); }

/* Attention animations for CTA */
.ddlm-hb-cta.ddlm-hb-anim-shake { animation: ddlm-hb-shake 1.4s ease-in-out infinite; }
.ddlm-hb-cta.ddlm-hb-anim-zoom { animation: ddlm-hb-zoom 2.2s ease-in-out infinite; }
.ddlm-hb-cta.ddlm-hb-anim-float { animation: ddlm-hb-float 2.6s ease-in-out infinite; }

@keyframes ddlm-hb-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
@keyframes ddlm-hb-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes ddlm-hb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Hide headings from embedded forms inside the bar, keep inputs compact */
#ddlm-hello-bar .ddlm-form-heading,
#ddlm-hello-bar .ddlm-form-subheading { display: none !important; }
#ddlm-hello-bar .ddlm-form { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
#ddlm-hello-bar .ddlm-form .ddlm-form-content { padding: 0 !important; }
#ddlm-hello-bar .ddlm-form .ddlm-form-inline { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important; }
#ddlm-hello-bar .ddlm-form .ddlm-form-field { margin: 0 !important; display: block !important; }
#ddlm-hello-bar .ddlm-form label.ddlm-field-label { display: none !important; }
#ddlm-hello-bar .ddlm-form .ddlm-form-inline .ddlm-form-field { margin: 0 !important; }
#ddlm-hello-bar .ddlm-form .ddlm-form-submit { margin: 0 !important; }
#ddlm-hello-bar .ddlm-form input, #ddlm-hello-bar .ddlm-form select { height: 40px; }

/* Form mode: stack heading/description above the inline form */
.ddlm-hb-mode-form .ddlm-hb-stack { display: flex; flex-direction: column; gap: 10px; }
.ddlm-hb-mode-form .ddlm-hb-form { }

/* CTA mode centered: center the whole row but keep text block left-aligned */
.ddlm-hb-center .ddlm-hb-inline { display: inline-flex; align-items: center; gap: 12px; }
.ddlm-hb-center .ddlm-hb-inner { text-align: center; }
.ddlm-hb-center .ddlm-hb-inline .ddlm-hb-text { text-align: left; }
.ddlm-hb-center .ddlm-hb-inline, .ddlm-hb-center .ddlm-hb-action { justify-content: center; }
.ddlm-hb-center .ddlm-hb-inline { margin-left: auto; margin-right: auto; }

/* Left alignment default */
.ddlm-hb-mode-cta .ddlm-hb-text { text-align: left; }

/* Responsive */
@media (max-width: 768px) {
  .ddlm-hb-inner { grid-template-columns: 1fr auto 32px; gap: 12px; padding: 12px 16px; }
  .ddlm-hb-headline { font-size: 15px; }
  .ddlm-hb-sub { font-size: 12px; }
  .ddlm-hb-cta { padding: 9px 14px; }
  /* On smaller screens, allow wrapping */
  #ddlm-hello-bar .ddlm-form .ddlm-form-inline { flex-wrap: wrap !important; }
}
@media (max-width: 480px) {
  .ddlm-hb-inner { grid-template-columns: 1fr 32px; }
  .ddlm-hb-action { grid-column: 1 / -1; }
}

