/**
 * Toast VIP — canto inferior direito, overlay fixo.
 * Não altera padding/margin de containers da página.
 */
.mek-vip-toast {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 2147482000;
  width: min(320px, calc(100vw - 28px));
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  font-family: Outfit, 'Segoe UI', sans-serif;
  color: #f2ead8;
}

.mek-vip-toast[hidden] {
  display: none !important;
}

.mek-vip-toast__card {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background:
    linear-gradient(165deg, rgba(32, 28, 20, 0.98), rgba(14, 12, 16, 0.98));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 24px rgba(201, 162, 39, 0.08);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mek-vip-toast.is-visible .mek-vip-toast__card {
  transform: translateY(0);
  opacity: 1;
}

.mek-vip-toast.is-leaving .mek-vip-toast__card {
  transform: translateY(10px);
  opacity: 0;
}

.mek-vip-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #e8dfcc;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.mek-vip-toast__close:hover {
  border-color: rgba(232, 197, 71, 0.7);
  color: #f7efd8;
}

.mek-vip-toast__kicker {
  margin: 0;
  padding-right: 32px;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8c547;
}

.mek-vip-toast__title {
  margin: 0;
  padding-right: 28px;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f7efd8;
}

.mek-vip-toast__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbb89a;
}

.mek-vip-toast__cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  min-height: 40px;
  margin-top: 2px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 230, 150, 0.55);
  background: linear-gradient(165deg, #e8c547 0%, #c9a227 48%, #8a6914 100%);
  color: #1a1408;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.mek-vip-toast__cta:hover {
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .mek-vip-toast__card {
    transition: none;
  }
}

/* Não competir com bloqueios / modais */
body.wp-modal-open .mek-vip-toast,
body.tela-bloqueio-ativa .mek-vip-toast,
html.mek-adblock-active .mek-vip-toast {
  display: none !important;
}
