
.ct-banner {
  width: 100%;
  background: #ffffff;
  border: 1px solid #005bbb;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.ct-text {
  max-width: 80%;
}

.ct-title {
  font-size: 13px;
  color: #333;
  margin: 0;
  font-weight: 700;
  /* font-family: "JMSansBold"; */
}
 
.ct-sub {
  font-size: 12px;
  color: #666;
  /* font-family: "JMSansRegular"; */
  margin-bottom: 0;
}
 
.ct-buttons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
}
 
.ct-primary {
  background: rgb(30, 34, 170);
  color: #fff;
  padding: 6px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  /* font-family: "JMSansBold"; */
  border: 1px solid rgb(47, 76, 221);
}
 
.ct-secondary {
  background: #fff;
  border: 1px solid rgb(47, 76, 221);
  color: rgb(47, 76, 221);
  padding: 6px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  /* font-family: "JMSansBold"; */
}
 
.ct-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;                 /* visible by default; can be toggled */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
 
.ct-modal {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  border-radius: 6px;
  text-align: center;
}
 
.ct-modal button {
  width: 100%;
  margin-top: 10px;
}

.ct-desktop-popup {
  position: relative;
  top: 3px;                    /* adjust to match hero spacing */
  left: 49%;
  transform: translateX(-50%);
  width: 100%;      /* 20px margin on both sides */
  max-width: 1300px;
  z-index: 99999;
  padding: 0 20px;
}

.ct-banner-overlay-wrapper {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 5;
}

 
@media (max-width: 767px) {
  /* Desktop popup should not appear on mobile */
  .ct-desktop-popup {
    display: none;
  }
 
  /* Optional: mobile top banner container (only if you render it) */
  .ct-mobile-top {
    position: fixed;
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9999;
  }
 
  .ct-banner--mobile-top {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    border: 1px solid #005bbb;
    background: #fff;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
  }
 
  .ct-buttons {
    display: grid !important;        /* override any parent flex */
    grid-template-columns: 1fr;      /* one button per row */
    grid-auto-rows: auto;
    gap: 10px;
    width: 100%;
  }
 
  .ct-buttons .ct-primary,
  .ct-buttons .ct-secondary,
  .ct-modal .ct-primary,
  .ct-modal .ct-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
  }
 
  .ct-buttons .ct-primary   { order: 1; }
  .ct-buttons .ct-secondary { order: 2; }
 
  .ct-text {
    max-width: 100% !important;
  }
 
  .ct-title,
  .ct-sub {
    line-height: 1pc;
  }
 
  .ct-sub {
    margin-top: 6px;
  }
}
 
@media (min-width: 768px) and (max-width: 1024px) {
 
  .ct-buttons {
    display: flex !important;     
    gap: 10px;
    min-width: 25%;
  }
 
  .ct-buttons .ct-primary,
  .ct-buttons .ct-secondary,
  .ct-modal .ct-primary,
  .ct-modal .ct-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
  }
 
  .ct-buttons .ct-primary   { order: 1; }
  .ct-buttons .ct-secondary { order: 2; }
 
  .ct-text {
    max-width: 60% !important;
  }
 
  .ct-title,
  .ct-sub {
    line-height: 1pc;
  }

  .ct-title {
    margin-top: 2px;
  }
 
  .ct-sub {
    margin-top: 6px;
  }
}
 
