/* Minimal helpers; layout styling comes from theme Tailwind classes in templates. */
.wlj-nl-cta[hidden] {
  display: none !important;
}

.wlj-nl-empty {
  display: none !important;
}

/* Bar CLS reserve: hold approximate final height before JS hydrates. */
.wlj-nl-cta[data-layout="bar"].wlj-nl-cta--reserve {
  display: block;
}

.wlj-nl-cta[data-layout="bar"].wlj-nl-cta--reserve:not(.wlj-nl-cta--ready) {
  min-height: 12.5rem;
}

@media (min-width: 640px) {
  .wlj-nl-cta[data-layout="bar"].wlj-nl-cta--reserve:not(.wlj-nl-cta--ready) {
    min-height: 5.75rem;
  }
}

@media (min-width: 768px) {
  .wlj-nl-cta[data-layout="bar"].wlj-nl-cta--reserve:not(.wlj-nl-cta--ready) {
    min-height: 5.25rem;
  }
}

.wlj-nl-cta-shell-bar {
  max-width: 80rem;
  margin: 1rem auto 0.5rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .wlj-nl-cta-shell-bar {
    padding: 0 1.5rem;
  }
}

.wlj-nl-cta-shell-bar-card {
  border-radius: 0.375rem;
  background: #0f172a;
  padding: 1rem;
}

@media (min-width: 640px) {
  .wlj-nl-cta-shell-bar-card {
    padding: 0.5rem;
  }
}

.wlj-nl-cta-shell-bar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .wlj-nl-cta-shell-bar-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-left: 0.5rem;
    padding-right: 2rem;
  }
}

.wlj-nl-cta-shell-bar-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .wlj-nl-cta-shell-bar-form {
    flex-direction: row;
    width: auto;
    justify-content: flex-end;
  }
}

.wlj-nl-cta-shell-line {
  border-radius: 0.375rem;
  background: rgb(51 65 85 / 0.7);
}

.wlj-nl-cta-shell-line--title {
  height: 1.5rem;
  width: 70%;
  max-width: 18rem;
}

@media (min-width: 768px) {
  .wlj-nl-cta-shell-line--title {
    height: 1.25rem;
    width: 14rem;
  }
}

.wlj-nl-cta-shell-line--input {
  height: 2.375rem;
  width: 100%;
}

@media (min-width: 768px) {
  .wlj-nl-cta-shell-line--input {
    width: 16rem;
  }
}

.wlj-nl-cta-shell-line--btn {
  height: 2.375rem;
  width: 100%;
}

@media (min-width: 640px) {
  .wlj-nl-cta-shell-line--btn {
    width: 6rem;
  }
}

.wlj-nl-cta-shell-bar-links {
  height: 1rem;
  margin-top: 0.25rem;
}

.wlj-nl-cta--ready .wlj-nl-cta-shell {
  display: none;
}

.wlj-nl-layout-bar [data-bind="email"] {
  width: 100%;
}

@media (min-width: 768px) {
  .wlj-nl-layout-bar [data-bind="email"] {
    max-width: 20rem;
  }
}

.wlj-nl-msg-success {
  border-color: rgb(34 197 94 / 0.5);
  background: rgb(5 46 22 / 0.4);
  color: rgb(220 252 231);
}

.wlj-nl-msg-body {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wlj-nl-layout-bar [data-bind="message"]:not(.hidden) {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
}

.wlj-nl-msg-check {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: rgb(74 222 128);
}

.wlj-nl-msg-email {
  font-weight: 700;
  color: #fff;
}

.wlj-nl-msg-error {
  border-color: rgb(239 68 68 / 0.5);
  background: rgb(69 10 10 / 0.4);
  color: rgb(254 226 226);
}

/* Footer link row: keep archive / privacy / admin edit on one baseline. */
.wlj-nl-footer-links > a,
.wlj-nl-footer-links > span {
  line-height: 1;
}

.wlj-nl-admin-edit {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.wlj-nl-admin-edit:not(.hidden) {
  display: inline-flex;
}

.wlj-nl-admin-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1;
}

.wlj-nl-admin-edit-link svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  display: block;
}

/* Closing layout uses a light ochre surface; retune status colors. */
.wlj-nl-layout-closing .wlj-nl-msg-success {
  border-color: rgb(34 197 94 / 0.45);
  background: rgb(240 253 244);
  color: rgb(22 101 52);
}

.wlj-nl-layout-closing .wlj-nl-msg-email {
  color: rgb(20 83 45);
}

.wlj-nl-layout-closing .wlj-nl-msg-check {
  color: rgb(22 163 74);
}

.wlj-nl-layout-closing .wlj-nl-msg-error {
  border-color: rgb(239 68 68 / 0.45);
  background: rgb(254 242 242);
  color: rgb(153 27 27);
}

.dark .wlj-nl-layout-closing .wlj-nl-msg-success {
  border-color: rgb(34 197 94 / 0.5);
  background: rgb(5 46 22 / 0.45);
  color: rgb(220 252 231);
}

.dark .wlj-nl-layout-closing .wlj-nl-msg-email {
  color: #fff;
}

.dark .wlj-nl-layout-closing .wlj-nl-msg-check {
  color: rgb(74 222 128);
}

.dark .wlj-nl-layout-closing .wlj-nl-msg-error {
  border-color: rgb(239 68 68 / 0.5);
  background: rgb(69 10 10 / 0.45);
  color: rgb(254 226 226);
}
