/* MK Conversion Agent — Frontend Styles */
/* Variables are injected dynamically via PHP, these are fallbacks */
:root {
  --mkca-primary: #e63946;
  --mkca-accent:  #f1a208;
  --mkca-cta:     #2dc653;
}

/* Trust row on checkout */
.mkca-trust-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}

/* Product page trust grid */
.mkca-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.mkca-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #444;
  border: 1px solid #eee;
}

/* Urgency box */
.mkca-urgency-box {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.5;
}
.mkca-countdown {
  font-weight: 700;
  font-size: 16px;
  color: var(--mkca-primary);
  font-variant-numeric: tabular-nums;
}

/* Social proof */
.mkca-social-proof {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #2e7d32;
  margin: 8px 0;
}

/* Sticky Add to Cart (mobile) */
.mkca-sticky-atc {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eee;
}
@media (max-width: 768px) {
  .mkca-sticky-atc { display: flex; }
}
.mkca-sticky-product { display: flex; flex-direction: column; }
.mkca-sticky-name { font-weight: 600; font-size: 13px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkca-sticky-price { color: var(--mkca-primary); font-weight: 700; font-size: 15px; }
.mkca-sticky-btn {
  padding: 10px 18px !important;
  font-size: 14px !important;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 700;
  color: #fff !important;
  background: var(--mkca-cta) !important;
  flex-shrink: 0;
}

/* Price badge on shop loop */
.mkca-price-badge {
  background: var(--mkca-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Exit intent overlay */
.mkca-exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mkca-exit-overlay.active { display: flex; }
.mkca-exit-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: mkca-pop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mkca-pop {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.mkca-exit-modal h2 { font-size: 22px; margin: 0 0 8px; color: #1a1a2e; }
.mkca-exit-modal p  { color: #666; margin: 0 0 20px; font-size: 14px; }
.mkca-exit-accept {
  background: var(--mkca-cta);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity .2s;
}
.mkca-exit-accept:hover { opacity: .9; }
.mkca-exit-close {
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
  margin-top: 12px;
  display: block;
  text-decoration: underline;
}
