/*
  Bricks & Bytes Newsletter Popup
  Injected sitewide by the "Bricks & Bytes Newsletter Popup" plugin.
*/

/* Scroll Popup */
.scroll-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.scroll-popup.active {
  display: flex;
}

.popup-content {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 48px;
  position: relative;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #f5f5f5;
  border: none;
  display: grid;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-close:hover {
  background: #e5e5e5;
}

.popup-close svg {
  width: 20px;
  height: 20px;
  stroke: #666;
}

.popup-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.popup-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.popup-highlight {
  background: #fafafa;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.popup-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px 14px 45px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.popup-input:focus {
  outline: none;
  border-color: #000;
}

.popup-input::placeholder {
  color: #999;
}

.popup-submit {
  background: #000;
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.popup-submit:hover {
  background: #333;
}

/* Newsletter Popup Modal */
.newsletter-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.newsletter-modal.active {
  display: flex;
}

.newsletter-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #f5f5f5;
  border: none;
  display: grid;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.newsletter-modal-close:hover {
  background: #e5e5e5;
}

.newsletter-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: #666;
}

.newsletter-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.newsletter-preview {
  background: #fafafa;
  padding: 48px 40px;
  border-radius: 20px 0 0 20px;
}

.newsletter-preview h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 16px;
}

.newsletter-preview h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}

.newsletter-takeaways {
  list-style: none;
  margin-bottom: 24px;
  padding: 0;
}

.newsletter-takeaways li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  display: flex;
  gap: 12px;
}

.newsletter-takeaways li:last-child {
  border-bottom: none;
}

.newsletter-takeaways li::before {
  content: "→";
  color: #000;
  font-weight: 600;
  flex-shrink: 0;
}

.newsletter-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: gap 0.2s;
}

.newsletter-read-link:hover {
  gap: 12px;
}

.newsletter-read-link svg {
  width: 16px;
  height: 16px;
}

.newsletter-form-section {
  padding: 48px 40px;
}

.newsletter-form-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.newsletter-form-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

.newsletter-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px 14px 45px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.newsletter-modal-input:focus {
  outline: none;
  border-color: #000;
}

.newsletter-modal-input::placeholder {
  color: #999;
}

.newsletter-modal-submit {
  background: #000;
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.newsletter-modal-submit:hover {
  background: #333;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
  .newsletter-modal-grid { grid-template-columns: 1fr; }
  /* Show Subscribe form first on tablet/mobile */
  .newsletter-form-section { grid-row: 1; }
  .newsletter-preview { grid-row: 2; border-radius: 0 0 20px 20px; }
}

@media (max-width: 480px) {
  .popup-content { max-height: 85vh; overflow: auto; padding: 32px 24px; }
  .newsletter-modal-content { max-height: 90vh; }
}

/* -------- beehiiv subscribe form feedback -------- */
.bbp-form-msg{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  min-height: 18px;
}

.bbp-form-msg.is-ok{
  color: #0f5132;
}

.bbp-form-msg.is-err{
  color: #842029;
}

.bbp-beehiiv-form.is-busy button[type="submit"]{
  opacity: 0.75;
  cursor: not-allowed;
}


/* -------------------------------
   Scroll Popup (new design)
   Keeps #scrollPopup + .active for your JS
-------------------------------- */

.scroll-popup{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bbpOverlayIn 0.4s ease;
}

.scroll-popup.active{
  display: flex;
}

@keyframes bbpOverlayIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/* Card */
.bbp-popup-card{
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
  animation: bbpCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top accent bar */
.bbp-popup-card::before{
  content: '';
  display: block;
  height: 4px;
  background: #000;
}

@keyframes bbpCardIn{
  from{ opacity: 0; transform: translateY(30px) scale(0.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button - reuses your #popupClose hook */
.scroll-popup .popup-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.scroll-popup .popup-close:hover{
  background: #000;
  border-color: #000;
}

.scroll-popup .popup-close svg{
  width: 14px;
  height: 14px;
  stroke: #999;
  stroke-width: 2.5;
  transition: stroke 0.2s ease;
}

.scroll-popup .popup-close:hover svg{
  stroke: #fff;
}

/* Content area */
.bbp-popup-content{
  padding: 40px 36px 36px;
}

/* Badge */
.bbp-popup-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 20px;
  animation: bbpFadeUp 0.5s ease 0.15s both;
}

.bbp-popup-badge::before{
  content: '';
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Title */
.bbp-popup-title{
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  color: #000;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
  animation: bbpFadeUp 0.5s ease 0.2s both;
}

/* Description */
.bbp-popup-desc{
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
  animation: bbpFadeUp 0.5s ease 0.25s both;
}

/* Report callout */
.bbp-popup-report{
  background: #fafafa;
  border-left: 3px solid #000;
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin-bottom: 24px;
  animation: bbpFadeUp 0.5s ease 0.3s both;
}

.bbp-popup-report-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}

.bbp-popup-report-title{
  font-size: 15px;
  line-height: 1.45;
  color: #222;
}

.bbp-popup-report-value{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.bbp-popup-report-value span{
  text-decoration: line-through;
}

.bbp-popup-report-value strong{
  color: #000;
  font-weight: 800;
}

/* Divider */
.bbp-popup-divider{
  height: 1px;
  background: #eee;
  margin-bottom: 24px;
  animation: bbpFadeUp 0.5s ease 0.35s both;
}

/* Form */
.bbp-popup-form{
  animation: bbpFadeUp 0.5s ease 0.4s both;
}

/* Email input */
.bbp-popup-input-wrap{
  position: relative;
  margin-bottom: 14px;
}

.bbp-popup-input-wrap svg{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: #bbb;
  stroke-width: 1.5;
  fill: none;
  pointer-events: none;
  transition: stroke 0.2s ease;
}

/* IMPORTANT: keep .popup-input for your existing JS/form CSS if any */
.bbp-popup-input.popup-input{
  width: 100%;
  padding: 16px 18px 16px 48px;
  font-size: 15px;
  color: #000;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.bbp-popup-input.popup-input::placeholder{
  color: #bbb;
}

.bbp-popup-input.popup-input:focus{
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.bbp-popup-input-wrap:focus-within svg{
  stroke: #000;
}

/* Submit button */
.bbp-popup-submit.popup-submit{
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bbp-popup-submit.popup-submit::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bbp-popup-submit.popup-submit:hover{
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.bbp-popup-submit.popup-submit:hover::before{
  opacity: 1;
}

.bbp-popup-submit.popup-submit:active{
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bbp-popup-submit.popup-submit svg{
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* Social proof */
.bbp-popup-social{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.bbp-popup-avatars{
  display: flex;
}

.bbp-popup-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #e0e0e0;
  margin-left: -8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #666;
}

.bbp-popup-avatar:first-child{
  margin-left: 0;
}

.bbp-popup-avatar.is-dark{
  background: #333;
  color: #fff;
}

.bbp-popup-avatar.is-mid{
  background: #999;
  color: #fff;
}

.bbp-popup-social-text{
  font-size: 13px;
  color: #888;
  line-height: 1.35;
}

.bbp-popup-social-text strong{
  color: #333;
  font-weight: 800;
}

/* Animations */
@keyframes bbpFadeUp{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}

  .bbp-popup-card{
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    animation: bbpCardSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes bbpCardSlideUp{
    from{ opacity: 0; transform: translateY(100%); }
    to{ opacity: 1; transform: translateY(0); }
  }

  .bbp-popup-content{
    padding: 32px 24px 28px;
  }

  .bbp-popup-title{
    font-size: 26px;
  }

  .bbp-popup-desc{
    font-size: 14px;
  }

  .bbp-popup-report-title{
    font-size: 14px;
  }

  .scroll-popup .popup-close{
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}

/* Force center on ALL screen sizes */
.scroll-popup{
  align-items: center !important;
  justify-content: center !important;
}

/* Kill the mobile bottom-sheet overrides */
@media (max-width: 520px){
  .scroll-popup{
    align-items: center !important;
    padding: 16px;
  }

.newsletter-modal-submit span{
  display:inline-block;
}

  .bbp-popup-card{
    border-radius: 20px !important;
    max-width: 480px;
    width: 100%;
    animation: bbpCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

/* Use Montserrat for Scroll Popup only */
.scroll-popup,
.scroll-popup * {
  font-family: 'Montserrat', sans-serif;
}

/* Stop desktop width expansion */
.scroll-popup .bbp-popup-card{
  width: 480px;
  max-width: calc(100vw - 40px);
}




//new

<style>
.bb-trust-carousel-wrap{
  width:100%;
  max-width:100%;
  margin:0 auto;
  padding:8px 0 0;
}

.bb-trust-carousel-title{
  margin:0 0 10px;
  text-align:center;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:16px;
  line-height:1.45;
  font-weight:600;
  color:#111111;
  padding:0 6px;
}

.bb-trust-carousel-title span{
  color:black;
}

.bb-trust-carousel{
  position:relative;
  width:100%;
}

.bb-trust-carousel-viewport{
  overflow:hidden;
  width:100%;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  touch-action:pan-y;
}

.bb-trust-carousel-viewport.is-dragging{
  cursor:grabbing;
}

.bb-trust-carousel-track{
  display:flex;
  align-items:center;
  will-change:transform;
  transition:transform .55s ease;
}

.bb-trust-carousel-slide{
  flex:0 0 33.3333%;
  min-width:33.3333%;
  padding:0 8px;
  box-sizing:border-box;
}

.bb-trust-carousel-pill{
  width:100%;
  min-height:64px;
  background:transparent;
  border:none;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  box-shadow:none;
}

.bb-trust-carousel-pill img{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  max-height:28px;
  object-fit:contain;
  margin:0 auto;
}

/* Tablet */
@media (max-width: 1024px){
  .bb-trust-carousel-wrap{
    max-width:100%;
    padding-top:6px;
  }

  .bb-trust-carousel-title{
    font-size:15px;
    margin-bottom:10px;
    padding:0 8px;
  }

  .bb-trust-carousel-slide{
    flex:0 0 50%;
    min-width:50%;
    padding:0 6px;
  }

  .bb-trust-carousel-pill{
    min-height:58px;
    padding:6px 8px;
  }

  .bb-trust-carousel-pill img{
    max-height:24px;
  }
}

/* Mobile */
@media (max-width: 767px){
  .bb-trust-carousel-wrap{
    max-width:100%;
    padding:4px 0 0;
  }

  .bb-trust-carousel-title{
    font-size:14px;
    line-height:1.4;
    margin-bottom:8px;
    padding:0 4px;
  }

  .bb-trust-carousel-slide{
    flex:0 0 50%;
    min-width:50%;
    padding:0 5px;
  }

  .bb-trust-carousel-pill{
    min-height:52px;
    padding:4px 8px;
  }

  .bb-trust-carousel-pill img{
    max-height:20px;
    max-width:82%;
  }
}

/* Small phones */
@media (max-width: 480px){
  .bb-trust-carousel-title{
    font-size:13px;
    margin-bottom:8px;
    padding:0 2px;
  }

  .bb-trust-carousel-slide{
    flex:0 0 50%;
    min-width:50%;
    padding:0 4px;
  }

  .bb-trust-carousel-pill{
    min-height:48px;
    padding:4px 6px;
  }

  .bb-trust-carousel-pill img{
    max-height:18px;
    max-width:80%;
  }
}

.bb-trust-carousel-title
 { 
font-size: 10px !important;
}

</style>