/* ═══════════════════════════════════════════════════════════
   PopTelecom Exclusive Offer Popup — popup.css v2.0
   © 2026 jon.com
   ═══════════════════════════════════════════════════════════ */

/* Clean system sans-serif stack — no external font load */

/* ── Overlay ─────────────────────────────────────────────── */
#ptpop-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#ptpop-overlay.ptpop-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Modal ───────────────────────────────────────────────── */
#ptpop-modal {
  --ptpop-accent: #e63946;
  --ptpop-radius: 14px;
  --ptpop-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  position: relative;
  background: #ffffff;
  border-radius: var(--ptpop-radius);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.14);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--ptpop-font);
}
#ptpop-overlay.ptpop-visible #ptpop-modal {
  transform: scale(1) translateY(0);
}

/* ── Ribbon / diagonal banner ────────────────────────────── */
/*
   Fits up to ~10 characters at 10px with tight spacing.
   The ribbon is positioned so it sits neatly in the top-right
   corner triangle of the modal. Width 160px gives enough room.
*/
.ptpop-ribbon {
  position: absolute;
  top: 26px;
  right: -38px;
  width: 160px;
  text-align: center;
  transform: rotate(45deg);
  transform-origin: center;
  padding: 7px 0;
  font-family: var(--ptpop-font, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.ptpop-ribbon span {
  display: block;
}

/* ── Close button ────────────────────────────────────────── */
#ptpop-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
#ptpop-close:hover {
  background: #fff;
  transform: scale(1.08);
}

/* ── Image ───────────────────────────────────────────────── */
.ptpop-image-wrap {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}
.ptpop-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
#ptpop-modal:hover .ptpop-image {
  transform: scale(1.03);
}

/* ── Body ────────────────────────────────────────────────── */
.ptpop-body {
  padding: 22px 28px 28px;
  text-align: center;
}

.ptpop-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ptpop-accent);
  margin: 0 0 8px;
}

.ptpop-headline {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ptpop-subheadline {
  font-size: 13px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.5;
  font-weight: 400;
}

/* ── Pricing block ───────────────────────────────────────── */
.ptpop-pricing {
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 16px 20px 14px;
  margin-bottom: 20px;
  position: relative;
}
.ptpop-price-prefix {
  display: block;
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.ptpop-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}
.ptpop-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--ptpop-accent);
  margin-top: 6px;
}
.ptpop-price {
  font-size: 46px;
  font-weight: 800;
  color: var(--ptpop-accent);
  line-height: 1;
}
.ptpop-price-suffix {
  font-size: 15px;
  color: var(--ptpop-accent);
  font-weight: 600;
  margin-top: 5px;
}
.ptpop-per-month {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ── CTA Button ──────────────────────────────────────────── */
.ptpop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ptpop-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--ptpop-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 32px;
  border-radius: 50px;
  width: 100%;
  box-shadow: 0 5px 18px rgba(0,0,0,0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}
.ptpop-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}
.ptpop-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(0,0,0,0.2);
  filter: brightness(1.08);
}
.ptpop-cta:active {
  transform: translateY(0);
}
.ptpop-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.ptpop-cta:hover .ptpop-arrow {
  transform: translateX(3px);
}

/* ── Disclaimer ──────────────────────────────────────────── */
.ptpop-disclaimer {
  font-size: 10px;
  color: #bbb;
  margin: 12px 0 0;
  line-height: 1.5;
}
.ptpop-disclaimer a {
  color: #999;
  text-decoration: underline;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 540px) {
  .ptpop-body { padding: 18px 18px 22px; }
  .ptpop-headline { font-size: 19px; }
  .ptpop-price { font-size: 38px; }
  .ptpop-image-wrap,
  .ptpop-image { max-height: 160px; height: 160px; }
}
