/* JtA Adventure Mode v1.1.3 */
/* Solid black bar (#000000), pushes layout down (normal flow), sticky so it stays visible */
:root{
  --jta-blue: var(--wp--preset--color--custom-jt-a-link-blue, #7ab8fa);
  --jta-base: var(--wp--preset--color--base, #ffffff);
}

/* Root in normal flow */
.jta-am-root{
  position: relative;
  z-index: 10;
}

/* The bar itself */
.jta-am-bar{
  margin: 0;
  padding: .7rem 1rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-content: center;
  font: 500 15px/1.2 Arial, Helvetica, sans-serif;
  color: var(--jta-base);
  background: #000000; /* explicit black */
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  /* Keep visible when scrolling, but still in flow */
  position: sticky;
  top: 0;
}

/* Message text (no icons) */
.jta-am-msg{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* Buttons container */
.jta-am-btns{
  display: flex;
  align-items: center;
}

/* Account CTA matches site buttons (outline pill → blue on hover) */
.jta-am-cta{
  border-radius: 9999px;
  padding: .4rem .9rem;
  font-size: 13px;
  border: 2px solid var(--jta-blue);
  color: var(--jta-blue);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.jta-am-cta:hover,
.jta-am-cta:focus{
  background: var(--jta-blue);
  color: #000000;
  border-color: var(--jta-blue);
  outline: none;
}

/* Optional toast */
.jta-am-toast{
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 320px;
  padding: .8rem 1rem;
  background: #000000;
  color: var(--jta-base);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.jta-am-toast.is-enter{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

@media (prefers-reduced-motion: reduce){
  .jta-am-toast{ transition: none !important; }
}

/* === MOBILE (<= 770px): centre message + button(s) === */
@media (max-width: 770px){
  .jta-am-bar{
    padding: .45rem 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
  }

  .jta-am-msg{
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 14px;
  }

  .jta-am-btns{
    width: 100%;
    justify-content: center;
  }

  .jta-am-cta{
    margin-left: 0;
  }
}