/* My RBT Prep - Premium Sales Popup V2.6 Styles (Big Image Showcase, Candidate Pricing) */
#myrbt-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
  padding: 16px;
  overflow-x: hidden !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

#myrbt-popup-overlay.myrbt-popup-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#myrbt-popup-modal {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 1120px;
  max-height: min(94vh, 710px);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-y: auto;
  overflow-x: hidden !important;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  margin: auto;
}

#myrbt-popup-modal::-webkit-scrollbar {
  width: 6px;
}
#myrbt-popup-modal::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
#myrbt-popup-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

#myrbt-popup-overlay.myrbt-popup-visible #myrbt-popup-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.myrbt-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  padding: 0;
}

.myrbt-popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

/* Content Grid */
.myrbt-popup-grid {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  width: 100%;
  box-sizing: border-box;
  min-height: 615px;
}

/* Left Column: Offer Content */
.myrbt-popup-left {
  padding: 28px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #ffffff;
  box-sizing: border-box;
  min-width: 0;
}

.myrbt-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.myrbt-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 11px;
  border-radius: 20px;
}

.myrbt-popup-badge svg {
  stroke: #1d4ed8;
}

.myrbt-popup-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.myrbt-popup-desc {
  margin: 0 0 14px 0;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.48;
}

/* Special Exam Candidate Pricing Banner */
.myrbt-discount-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 9px 13px;
  margin-bottom: 12px;
}

.myrbt-discount-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #dcfce7;
  border-radius: 50%;
  flex-shrink: 0;
}

.myrbt-discount-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.myrbt-discount-highlight {
  font-size: 12.5px;
  font-weight: 800;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.myrbt-discount-sub {
  font-size: 11.5px;
  color: #166534;
  font-weight: 500;
}

/* Countdown Bar */
.myrbt-countdown-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.myrbt-clock-icon {
  display: flex;
  align-items: center;
  color: #ea580c;
}

.myrbt-countdown-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #9a3412;
  flex: 1;
}

.myrbt-countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  color: #c2410c;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid #fdba74;
}

/* Value Checklist */
.myrbt-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.myrbt-checklist li {
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.myrbt-checklist svg {
  flex-shrink: 0;
}

/* Primary CTA Button - Strictly 1 Line & Clean Spacing */
.myrbt-popup-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  padding: 13px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
  margin-top: 20px;
}

.myrbt-popup-cta-btn:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* Right Column: Featured Product Showcase (Massive Image Box) */
.myrbt-popup-right {
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  padding: 18px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden !important;
}

.myrbt-slider-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-right: 32px;
}

.myrbt-slider-heading {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.myrbt-slider-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
}

/* Viewport with Stacked Slides */
.myrbt-slider-viewport {
  position: relative;
  width: 100%;
  height: 535px;
  overflow: hidden !important;
  box-sizing: border-box;
  margin: 2px 0;
}

.myrbt-slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
  pointer-events: none;
}

.myrbt-slider-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.myrbt-slide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 10px 10px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* MASSIVE BIG SIZE HERO IMAGE BOX */
.myrbt-slide-img-wrap {
  width: 100%;
  height: 395px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid #f1f5f9;
}

.myrbt-slide-img-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.myrbt-slide-img-wrap img {
  max-width: 100%;
  max-height: 390px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.myrbt-slide-card:hover .myrbt-slide-img-wrap img {
  transform: scale(1.03);
}

.myrbt-slide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 3px;
  align-self: center;
}

.myrbt-slide-title {
  margin: 0 0 3px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.myrbt-slide-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 3px;
}

.myrbt-slide-price-current {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.myrbt-slide-price-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.myrbt-slide-discount-tag {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.myrbt-slide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
  margin-top: 3px;
}

.myrbt-slide-link:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  text-decoration: none !important;
}

/* Slider Controls */
.myrbt-slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.myrbt-slider-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.myrbt-slider-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.myrbt-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 220px;
}

.myrbt-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.myrbt-slider-dot.active {
  background: #2563eb;
  width: 16px;
  border-radius: 4px;
}

/* Mobile & Tablet Adjustments (Responsive & Touch-Optimized) */
@media (max-width: 767px) {
  #myrbt-popup-overlay {
    padding: 10px;
    align-items: flex-start;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  #myrbt-popup-modal {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    margin: 8px auto;
  }
  .myrbt-popup-close {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  .myrbt-popup-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .myrbt-popup-left {
    padding: 22px 18px 16px 18px;
  }
  .myrbt-badge-row {
    margin-bottom: 6px;
  }
  .myrbt-popup-title {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 6px;
    padding-right: 30px;
  }
  .myrbt-popup-desc {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .myrbt-discount-banner {
    padding: 8px 11px;
    margin-bottom: 10px;
    gap: 8px;
  }
  .myrbt-discount-highlight {
    font-size: 11.5px;
  }
  .myrbt-discount-sub {
    font-size: 11px;
  }
  .myrbt-countdown-bar {
    padding: 6px 10px;
    margin-bottom: 10px;
    gap: 6px;
  }
  .myrbt-countdown-label {
    font-size: 11.5px;
  }
  .myrbt-countdown-timer {
    font-size: 14px;
    padding: 2px 6px;
  }
  .myrbt-checklist {
    gap: 5px;
    margin-bottom: 14px;
  }
  .myrbt-checklist li {
    font-size: 12px;
    line-height: 1.35;
    gap: 6px;
  }
  .myrbt-popup-cta-btn {
    padding: 12px 14px;
    font-size: 14px;
    white-space: normal;
    margin-top: 14px;
  }
  .myrbt-popup-right {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding: 16px 16px 14px 16px;
  }
  .myrbt-slider-top-header {
    margin-bottom: 6px;
    padding-right: 0;
  }
  .myrbt-slider-viewport {
    height: 360px;
  }
  .myrbt-slide-card {
    padding: 10px;
    border-radius: 12px;
  }
  .myrbt-slide-img-wrap {
    height: 235px;
    margin-bottom: 6px;
  }
  .myrbt-slide-img-wrap img {
    max-height: 225px;
  }
  .myrbt-slide-title {
    font-size: 14.5px;
    margin-bottom: 3px;
  }
  .myrbt-slide-pricing {
    margin-bottom: 3px;
    gap: 6px;
  }
  .myrbt-slide-price-current {
    font-size: 16.5px;
  }
  .myrbt-slide-price-old {
    font-size: 12.5px;
  }
  .myrbt-slide-discount-tag {
    font-size: 10.5px;
    padding: 1px 6px;
  }
  .myrbt-slide-link {
    font-size: 12px;
    padding: 6px 14px;
  }
  .myrbt-slider-nav {
    margin-top: 6px;
  }
  .myrbt-slider-btn {
    width: 28px;
    height: 28px;
  }
  .myrbt-slider-dots {
    max-width: 170px;
    gap: 3px;
  }
  .myrbt-slider-dot {
    width: 5px;
    height: 5px;
  }
  .myrbt-slider-dot.active {
    width: 14px;
  }
}

/* Extra-Compact Mobile Screens (Phones <= 480px) */
@media (max-width: 480px) {
  #myrbt-popup-overlay {
    padding: 6px;
  }
  #myrbt-popup-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px;
    margin: 4px auto;
  }
  .myrbt-popup-close {
    width: 34px;
    height: 34px;
    top: 8px;
    right: 8px;
  }
  .myrbt-popup-left {
    padding: 18px 14px 14px 14px;
  }
  .myrbt-popup-title {
    font-size: 18.5px;
    padding-right: 28px;
  }
  .myrbt-popup-desc {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .myrbt-popup-right {
    padding: 14px 12px 12px 12px;
  }
  .myrbt-slider-viewport {
    height: 340px;
  }
  .myrbt-slide-img-wrap {
    height: 215px;
  }
  .myrbt-slide-img-wrap img {
    max-height: 205px;
  }
  .myrbt-popup-cta-btn {
    padding: 11px 12px;
    font-size: 13.5px;
    white-space: normal;
    margin-top: 12px;
  }
}
