/* assets/css/mtb-popup.css */
/* WordPress + Elementor SAFE version */

/* =========================
   Base Popup Wrapper
========================= */

.mtb-popup{
  position: fixed !important;
  z-index: 2147483647 !important;
  padding: 14px;
  width: 100%;
  pointer-events: none;
  box-sizing: border-box;
}

/* Reset theme interference */
.mtb-popup,
.mtb-popup *{
  box-sizing: border-box;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}

/* =========================
   Popup Box
========================= */

.mtb-popup__box{
  all: unset;                /* 🔥 Prevent Elementor override */
  box-sizing: border-box;
  pointer-events: none;
  max-width: 360px;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.2s ease;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.35;
}

/* Message text */
.mtb-popup__msg{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* =========================
   Close Button
========================= */

.mtb-popup__close{
  all: unset;                 /* 🔥 prevent WP button styles */
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
  padding: 0 2px;
  pointer-events: auto;
}
button.mtb-popup__close {
    padding: 0px !important;
    border: 0px !important;
}

button.mtb-popup__close:hover {
    background-color: transparent !important;
    opacity: 1;
}
button.mtb-popup__close:focus,
button.mtb-popup__close:focus-visible {
    background-color: transparent !important;
    opacity: 1;
}
    



/* =========================
   Visible / Hidden
========================= */

.mtb-popup--visible .mtb-popup__box{
  transform: translateY(0);
  opacity: 1;
}

.mtb-popup--hidden .mtb-popup__box{
  transform: translateY(-8px);
  opacity: 0;
}

/* =========================
   Positions
========================= */

.mtb-pos-top-right{
  top: 10px;
  right: 10px;
  left: auto;
  width: auto;
}

.mtb-pos-top-left{
  top: 10px;
  left: 10px;
  right: auto;
  width: auto;
}

.mtb-pos-bottom-right{
  bottom: 10px;
  right: 10px;
  left: auto;
  width: auto;
}

.mtb-pos-bottom-left{
  bottom: 10px;
  left: 10px;
  right: auto;
  width: auto;
}

.mtb-pos-center{
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtb-pos-center-right{
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: end;
}

.mtb-pos-center .mtb-popup__box{
  max-width: 420px;
}

/* =========================
   Types
========================= */

.mtb-type-error .mtb-popup__box{
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.mtb-type-success .mtb-popup__box{
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.mtb-type-info .mtb-popup__box{
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.mtb-type-warning .mtb-popup__box{
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
