/* ─── Mockito Mocktail Popup – Frontend Styles ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --mktp-brand:     #E8472A;
  --mktp-brand-dk:  #c73b21;
  --mktp-navy:      #0f1b2d;
  --mktp-muted:     #8a8f9a;
  --mktp-border:    #e4e0da;
  --mktp-radius:    20px;
}

/* Overlay */
#mktp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#mktp-overlay.mktp-active {
  opacity: 1;
  pointer-events: all;
}

/* Card */
.mktp-popup-card {
  display: flex;
  background: #fff;
  border-radius: var(--mktp-radius);
  overflow: hidden;
  max-width: 780px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
#mktp-overlay.mktp-active .mktp-popup-card {
  transform: scale(1) translateY(0);
}

/* Left panel */
.mktp-popup-left {
  position: relative;
  width: 42%;
  min-height: 340px;
  flex-shrink: 0;
  overflow: hidden;
}
.mktp-popup-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
#mktp-overlay.mktp-active .mktp-popup-left img {
  transform: scale(1.06);
}
.mktp-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,20,40,.12) 0%, rgba(10,20,40,.72) 100%);
}
.mktp-left-content {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
}
.mktp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--mktp-brand);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(232,71,42,.45);
  animation: mktpBadgePop 0.5s 0.4s both cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes mktpBadgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.mktp-badge svg { width: 22px; height: 22px; fill: #fff; }

.mktp-popup-left h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  font-size: clamp(20px, 3.5vw, 28px);
  line-height: 1.2;
  margin: 0 0 6px;
}
.mktp-popup-left h2 em {
  font-style: italic;
  color: var(--mktp-brand);
}
.mktp-left-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
}

/* Right panel */
.mktp-popup-right {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.mktp-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mktp-muted);
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.mktp-close-btn:hover {
  color: var(--mktp-navy);
  background: rgba(0,0,0,.06);
  transform: rotate(90deg);
}
.mktp-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--mktp-brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mktp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3.2vw, 30px);
  color: var(--mktp-navy);
  line-height: 1.15;
  margin: 0 0 12px;
}
.mktp-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mktp-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Coupon box */
.mktp-coupon-box {
  background: linear-gradient(135deg, #fff9f7 0%, #fff4f1 100%);
  border: 1.5px dashed rgba(232,71,42,.35);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.mktp-coupon-box::before,
.mktp-coupon-box::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.mktp-coupon-box::before { left: -9px; }
.mktp-coupon-box::after  { right: -9px; }
.mktp-coupon-icon { color: var(--mktp-brand); flex-shrink: 0; }
.mktp-coupon-icon svg { width: 24px; height: 24px; }
.mktp-coupon-info { flex: 1; }
.mktp-coupon-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mktp-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.mktp-coupon-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--mktp-navy);
}
.mktp-copy-btn {
  background: var(--mktp-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(232,71,42,.35);
}
.mktp-copy-btn:hover { background: var(--mktp-brand-dk); transform: translateY(-1px); }
.mktp-copy-btn.mktp-copied { background: #27ae60 !important; }
.mktp-copy-btn svg { width: 15px; height: 15px; }

.mktp-fine-print {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--mktp-muted);
  letter-spacing: .10em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mktp-fine-print::before,
.mktp-fine-print::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mktp-border);
}

/* Trigger button (shortcode) */
.mktp-trigger-btn {
  background: var(--mktp-brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,71,42,.35);
  transition: all 0.2s;
  letter-spacing: .04em;
}
.mktp-trigger-btn:hover { background: var(--mktp-brand-dk); transform: translateY(-2px); }

/* Toast */
.mktp-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #27ae60;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.mktp-toast.mktp-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .mktp-popup-card { flex-direction: column; }
  .mktp-popup-left { width: 100%; min-height: 200px; }
  .mktp-popup-right { padding: 24px 20px; }
  .mktp-copy-btn span { display: none; }
  .mktp-copy-btn { padding: 10px 12px; }
  .mktp-coupon-code { font-size: 20px; }
}
@media (max-width: 380px) {
  .mktp-popup-right { padding: 20px 16px; }
  .mktp-title { font-size: 18px; }
}
