/* CTA toast dismiss (X) + reopen tab. Relies on --mal-* tokens from each landing stylesheet. */
#cta-toast .mal-toast__text {
  padding: 0 16px;
}

.mal-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: rgba(30, 41, 59, 0.55);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.mal-toast__close:hover,
.mal-toast__close:focus-visible {
  color: var(--mal-brand-dark);
  background: rgba(30, 41, 59, 0.08);
}

.mal-toast__close:focus-visible {
  outline: 2px solid var(--mal-btn1);
  outline-offset: 1px;
}

.mal-toast__close svg {
  width: 16px;
  height: 16px;
}

#cta-toast-tab {
  position: fixed;
  top: var(--mal-banner-height);
  left: 50%;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--mal-brand-dark);
  background: var(--mal-btn1);
  border: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
  cursor: pointer;
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    background-color 0.15s ease,
    visibility 0s linear 0.3s;
}

#cta-toast-tab.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    background-color 0.15s ease,
    visibility 0s;
}

#cta-toast-tab:hover,
#cta-toast-tab:focus-visible {
  background: var(--mal-btn1-hover);
}

#cta-toast-tab:focus-visible {
  outline: 2px solid var(--mal-brand-dark);
  outline-offset: 2px;
}

#cta-toast-tab svg {
  width: 14px;
  height: 14px;
}

@media (prefers-reduced-motion: reduce) {
  #cta-toast-tab,
  .mal-toast__close {
    transition: none;
  }
}
