@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
:root { --bg:#0b1220; --panel:#101827; --stroke:#1f2a44; --muted:#94a3b8; --text:#e5e7eb; --accent:#4f46e5; --accent-2:#6366f1; --font-family(Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;); }
*{ box-sizing:border-box; }
body{ margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); }
.wrap {
    width: 1180px;
    margin: 0 auto;
    padding: 5px;
    max-width: 100%;
    height:100%;
}
.display-none {
    display: none!important;
}
.highlighted {border: 3px solid #3eafff !important;box-shadow: 0 3px 10px #00b8ff85;}
.mobile-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    left: 106px;
    top: 25px;
    position: fixed;
    z-index: 2;
}    
.mobile-control-item {
    display: flex;
    gap: 5px;
    align-items: center;
    background: #ffffff;
    padding: 3px 5px;
    border-radius: 500px;
    line-height: 1;
    border: none;
    box-shadow: 0 0 10px #00000033;
    flex: 1;
    min-width: max-content;
}
.mobile-control-item .muted {
    flex: 1;
    font-weight: 600;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0;
}
.mobile-controls .btn-sml {
    margin-right: 0;
}
.mobile-control-item .btn-sml:hover {
    background: #1d4ed8;
    color: #fff;
}
.mobile-control-item .btn-sml:first-of-type {
    order: -1;
}
/* Selection highlight for images & copy */
    .thumb.selected,
    .chip.selected{
      outline: 2px solid var(--accent);
      box-shadow: 0 0 0 3px rgba(37,99,235,.18);
    }
    
    /* Copy chip (reuses thumb grid) */
    .chip {
      position:relative;
      border:1px solid var(--stroke);
      border-radius:10px;
      background:#fff;
      padding: 0 0 0 0;
      min-height:44px;
      display:flex;
      align-items:start;
      line-height:1.35;
      margin: 0;
      overflow: hidden;
    }
    .chip [contenteditable]{
      outline:none; width:100%;
    }
    .chip-text {
        padding: 10px;
        font-size: 13px;
        line-height: 1.35;
        flex: 1;
        cursor: text;
        align-self: stretch;
    }
    .chip-text:active, .chip-text:focus-within {
        border: none;
        outline: none;
        background: #eeeeee88;
    }
    .drag-over {
        border: 1px dashed blue;
    }
.grid{ display:grid; grid-template-columns: 360px 1fr; gap:24px; align-items:start; }
.card{ background:var(--panel); border:1px solid var(--stroke); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.panel{ padding:18px; }
.intro-more-push-ads{
    height: fit-content !important;
}
.payment-modal-push-ads{
    height: fit-content !important;
}

/* Form */
label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin: 18px 0 17px;
}
input[type=text], input[type=url], input[type=email], textarea{
  width:100%; border:1px solid #20304f; color:var(--text);
  border-radius:10px; padding:12px 12px; font-size:14px; outline:none; transition:border .2s ease;
}
.btn-fetch {
    display: flex;
    background: #151540;
    border: none;
    border-radius: 10px;
    padding: 7px 20px;
    width: max-content;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
}
/* Button loading spinner */
@keyframes adsSpin { to { transform: rotate(360deg); } }

.btn-fetch.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}

.btn-fetch.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: adsSpin .7s linear infinite;
}

/* Optional: same look for the primary button if you ever use it */
.btn-primary.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: adsSpin .7s linear infinite;
}    
textarea{ min-height:90px; resize:vertical; font-family: var(--font-family); }
input:focus, textarea:focus{ border-color:#445b9e; }
.muted{ color:var(--muted); font-size:12px; line-height: 1.7; }
.row{ display:flex; gap:10px; }
.column{flex-direction:column;}
.btn-primary {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    background: linear-gradient(30deg, #00ccff, #2563eb 45%, #00ccff);
    color: white;
    border: none;
    font-size: 17px;
    line-height: 1;
    border-radius: 12px;
    justify-content: center;
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .35);
}
.btn-primary:hover{ background:var(--accent-2); }

/* Preview */
.preview-wrap article { padding:18px; }
.unit-preview{ display:grid; grid-template-columns: 1fr; gap:18px; }
.unit-img{ width:100%; height:280px; object-fit:cover; display:block; border-radius: 10px;}
.unit-title{ margin:0 0 10px; font-size:22px; line-height:1.15; color:#000; font-weight:700; }
.unit-desc{ 
    margin:0 0 14px; 
    font-size:14px; 
    line-height: 1.5; 
    color:#000;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Specifies the number of lines to display */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds an ellipsis (...) at the end of the clipped text */
}
.unit-cta{ color:#0070ff; font-weight:700; text-decoration:none; }

/* Image Tabs */
.img-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 4px;
    overflow-x: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    max-width: 455px;
}
.img-tab{ 
    font-size:12px; 
    color:#999; 
    border: 1px solid #999; 
    background:#fff; 
    padding:6px 10px; 
    border-radius:20px; 
    cursor:pointer; 
    flex: 0 0 max-content;
}
.img-tab.active{ background:#23336a; color:#fff; border-color:#3b55aa; }

.panel-header{ display:flex; align-items:center; justify-content:space-between; padding: 20px; border-bottom: 1px solid #c9c9c9; height:76px; }
.price{ color:#cbd5e1; font-weight:600; font-size:14px; }

/* Modal */
.modal{ position:fixed; inset:0; display:none; place-items:center; background:rgba(0,0,0,.55); z-index:50;padding: 10px; }
.modal.show{ display:grid; }
.modal-card{ width:100%; max-width:520px; border-radius:18px; background:#fff; border:1px solid #253559; box-shadow:0 18px 60px rgba(0,0,0,.5); overflow:hidden; }
.modal-head{ padding:16px 18px; background:#fff; border-bottom:1px solid #ddd; display:flex; align-items:center; justify-content:space-between; }
.close-x{ cursor:pointer; border:none; background:transparent; color:#cbd5e1; font-size:18px; }
.modal-body{ padding:18px; }
.pay-btn{ width:100%; margin-top:12px; }
.hr{ height:1px; background:#223155; margin:16px 0; border:none; }
.note{ font-size:12px; color:#93a3bd; }
.alert{ background:#082d1e; color:#9ce6bf; border:1px solid #1f7a54; padding:10px 12px; border-radius:10px; font-size:13px; display:none;margin:0 0 17px 0px; }
.alert.show{ display:block; }
/* Light theme overrides + responsive deck */
:root { --bg:#f8fafc; --panel:#ffffff; --stroke:#e2e8f0; --muted:#64748b; --text:#0f172a; --accent:#2563eb; --accent-2:#1d4ed8; }
.deck{ display:flex; gap:24px; flex-wrap:wrap; align-items:flex-start;height:100%; }
.card{ background:var(--panel); border:1px solid var(--stroke); }
.card.panel {
    width: 100%;
    flex: 0 0 515px;
    align-self: stretch;
    height: 100%;
    padding: 0;
}
#adForm {
    margin: 0;
}
.form-fields-inner {
    overflow-y: auto;
    /*scrollbar-width: thin;*/
    height: calc(100% - 201px);
    padding: 20px;        
}
.card.preview-wrap{ 
    width:100%; 
    flex: 1;
}
.unit-card {
    display: flex;
    flex-direction: column;
    gap: 19px;
}
.paybtn-wrapper {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 0 15px #00000033;
    z-index: 50;
    border-radius: 0 0 12px 12px;
    flex: 0 0 126px;
}
.cta-btn {
    display: flex;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    width: max-content;
}
.cta-btn:hover{ background:var(--accent-2); }
.powered{ margin-top:10px; font-size:10px; letter-spacing:.08em; color:#94a3b8; }

/* Landscape layout */
.land-row{ display:flex; gap:16px; }
.land-img {
    border-radius: 12px;
    object-fit: cover;
    display: flex;
    width: auto;
    flex: 0 0 150px;
    height: 150px;
    width: 150px;
}
.land-copy {
    display: flex;
    flex-direction: column;
}
.land-copy .cta-btn{  }

/* Tabs (images & layout) */
.layout-tabs{ display:flex; gap:5px; padding:8px 4px; margin-top:6px; }
.layout-tab,.m-tab,#login_button{ font-size:12px; background:#eef2ff; color:#1d4ed8; border:1px solid #c7d2fe; padding:6px 10px; border-radius:20px; cursor:pointer; }
.layout-tab.active,.m-tab.active,#login_button{ background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
#login_button{border: none; background: none; padding: 0; color: #000; text-decoration: underline;}

.hidden{ display:none !important; }

/* Mobile switches */
.mobile-tabs{ display:none; gap:5px; }
.preview_type {
    font-size: 11px;
    text-transform: uppercase;
    opacity: .8;
    display: block;
    margin: 17px 0 -10px;
}
/* Image source UI */
.img-source { display:flex; flex-wrap: wrap; gap:6px; margin-top:4px; }
.radio-line { 
    font-size: 14px; 
    color:var(--text); 
    display:flex; 
    align-items:center; 
    gap:8px;
    padding: 6px 10px;
    line-height: 1;
    border-radius: 500px;
    border: 1px solid #000;
    width: max-content;
    margin: 0;
    cursor: pointer;
}
.radio-line input[type="radio"] {
    flex: 0 0 max-content;
}
.mode-block { margin-top:10px; }
.thumbs { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:8px; margin: 20px 0; }
.fetch-copy .thumbs {
    grid-template-columns: repeat(1,1fr);
}
.fetch-copy .thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 10px;
}
.fetch-copy .thumb input[type=checkbox] {
    position: relative;
    top: 0;
    left: 0;
    flex: 0 0 15px;
    order: -1;
}
#selected_thumbs{margin: 0 0;}
.thumb { position:relative; border:1px solid var(--stroke); border-radius:10px; overflow:hidden; background:#fff; margin: 0; cursor: pointer; }
.thumb img { width:100%; height:auto; object-fit:cover; display:block; aspect-ratio: 1;}
.thumb input[type=checkbox] {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    margin: 0;
    pointer-events: none;
}
.btn-sml {
    display: flex;
    background: #fff;
    border: 1px solid #151540;
    border-radius: 500px;
    padding: 6px 10px;
    width: max-content;
    font-weight: 500;
    font-size: 12px;
    color: #151540;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .5;
}
.btn-add {
    font-size: 20px;
    font-weight: 300;
    border-radius: 500px;
    width: 30px;
    height: 30px;
    display: flex;
    background: #fff;
    border: 1px solid #151540;
    line-height: 1;
    color: #151540;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .5;
    margin-top: -7px;
    padding: 0;
}
/* --- Drag feedback --- */
/* --- Selection highlight --- */
.thumb.selected,
.chip.selected {
  outline: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
/* --- Copy chips layout --- */
.copy-list .chip {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
}
/* Left cluster: checkbox + handle */
.chip-actions {
    display: flex;
    gap: 3px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-right: 1px solid #ddd;
    align-self: stretch;
}
.chip-actions input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 6px;
}
/* Drag handle (text-only drag; chip itself is not draggable) */
.chip-drag {
    width: 100%;
    height: 100%;
    padding: 0 7px 7px;
    border: none;
    display: flex;
    align-items: end;
    justify-content: center;
    user-select: none;
    cursor: grab;
    font-weight: 200;
    line-height: 1;
    font-size: 23px;
    flex: 1;
}
.chip-drag:active { cursor: grabbing; }

/* Editable text */
.chip-text {
  flex: 1 1 auto;
  min-width: 0;
  outline: none;
  font-size: 13px;
  line-height: 1.35;
  color: #0f172a;
  align-self: stretch;
}

/* Right cluster: delete button */
.chip-delete-wrap {
  display: flex;
  align-items: center;
  padding: 0;
  border-left: 1px solid #ddd;
  flex: 0 0 auto;
  align-items: flex-start;
  align-self: stretch;
}

.chip-remove {
  font-size: 16px;
  line-height: 1;
  text-align: center;
  border: none;
  color: #0f172a;
  font-weight: 400;
  cursor: pointer;
  height:100%;
  flex: 1;
  padding: 7px;
  background: transparent;
}
.chip-remove:hover { background: #f8fafc; }

/* “Add new …” footer under each list */
.add-new-footer {
  margin-top: 8px;
}
/**/
.unit-title,.unit-desc,.unit-cta,
#s_title,#s_desc,#s_cta,#l_title,#l_desc,#l_cta{
  white-space: normal;
  overflow-wrap: anywhere; /* modern */
  word-break: break-word;  /* fallback */
}
/* Eye buttons for image thumbs and copy chips */
.thumb { position: relative; }
.thumb-eye {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border: 1px solid #151540;
  background: #fff;
  border-radius: 8px;
  padding: 2px 6px;
  line-height: 1;
  font-size: 13px;
  cursor: pointer;
  opacity: .9;
}
.thumb.is-primary { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

.chip-eye {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 6px 6px 4px;
}
.panel-title-wrapper {
    position: relative;
}
.panel-title-wrapper .learn-more-ptw {
    font-size: 11px;
    text-decoration: none;
    line-height: 1;
    color: blue;
    position: absolute;
    bottom: -8px;
    cursor: pointer;
}
.chip.is-primary { box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.card.preview-wrap .panel-header {
    display: none;
}
#learn-more-push-ads, .popup-modal {
    position: fixed;
    z-index: 10000;
    width: 800px;
    max-width: 95%;
    box-shadow: 0 0 0 50000px #00000055;
    background: #fff;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
    border-radius: 20px;
    margin: 0;
    top: 50px;
    left: 50%;
    transform: translatex(-50%);
    height: -webkit-fill-available;
    max-height: 89vh;
}
#learn-more-push-ads .paybtn-wrapper {
    bottom: 30px;
}
#learn-more-push-ads .panel-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #e8f0fe;
    padding: 4px 15px;
    color: #1967d2;
    border-radius: 500px;
}
#learn-more-push-ads.active {
    visibility: visible;
    user-select: auto;
    pointer-events: auto;
}
.sub-center-padding{
  padding: 50px 0px;
  text-align: center;
}
#close-learn-more-push-ads, .close-push-btn {
    position: relative;
    background: #e8f0fe;
    fill: #1967d2;
    width: 25px;
    height: 25px;
    border-radius: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
}
#close-learn-more-push-ads:hover {
    opacity: .8;
}
#close-learn-more-push-ads svg {
    width: 15px;
}
.panel-body {
    font-size: 15px;
    line-height: 1.6;
    padding: 30px 20px;
    display: block;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
}
.ion-arrow-button__circle {
    fill: #fff;
    background: #1967d2;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 500px;
}
svg.glue-icon.glue-icon--18px.ion-arrow-button__circle-icon {width: 20px;height:20px;}
#learn-more-push-ads{display:flex;flex-direction:column;}
#learn-more-push-ads .hero {display: flex;gap: 14px;padding: 20px 18px 8px;flex-direction: column;}
#learn-more-push-ads .eyebrow { font-weight:600; font-size:12px; letter-spacing:.08em; text-transform:uppercase; opacity:.7; }
#learn-more-push-ads .headline { font-size:34px; font-weight:800; line-height:1.15; }
#learn-more-push-ads .headline .accent { color:#1a73e8; }
#learn-more-push-ads .sub { color:#3c4043; max-width:680px; }
#learn-more-push-ads .cta-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
#learn-more-push-ads .btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:100px; font-weight:600; border:1px solid #1a73e8; background:#1a73e8; color:#fff; cursor:pointer; text-decoration:none; }
#learn-more-push-ads .btn.secondary { background:#fff; color:#1a73e8; }
#learn-more-push-ads .muted { color:#5f6368; font-size:12px; }

/* Stats band */
#learn-more-push-ads .band { background:#f8fbff; border:1px solid #e3eefc; border-radius:12px; padding:14px; margin:16px 18px; display:grid; gap:14px; }
#learn-more-push-ads .stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
#learn-more-push-ads .stat { background:#fff; border:1px solid #e7eaee; border-radius:12px; padding:12px; text-align:center; }
#learn-more-push-ads .stat .num { font-size:22px; font-weight:800; }
#learn-more-push-ads .stat .label { font-size:12px; color:#5f6368; }

/* Cards */
#learn-more-push-ads .cards { display:grid; gap:12px; grid-template-columns:repeat(3,1fr); margin:0 18px; }
#learn-more-push-ads .card-item { border:1px solid #e7eaee; border-radius:12px; padding:14px; background:#fff; box-shadow: 0 10px 19px #00000022; }
#learn-more-push-ads .card-item h3 { font-size:16px; margin:0 0 6px; }
#learn-more-push-ads .card-item p { margin:0; color:#3c4043; }

/* Steps */
#learn-more-push-ads .steps { display:grid; gap:10px; margin:8px 18px 20px; }
#learn-more-push-ads .step { display:flex; gap:12px; align-items:flex-start; border:1px dashed #d8dee6; border-radius:12px; padding:12px; background:#fcfdff; }
#learn-more-push-ads .badge { width:28px; height:28px; border-radius:999px; background:#1a73e8; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; flex: 0 0 28px;}

/* Pricing */
#learn-more-push-ads .pricing { margin:14px 18px; border:1px solid #e3eefc; background:#f6fbff; border-radius:14px; padding:14px; display:grid; gap:8px; }
#learn-more-push-ads .price { font-size:26px; font-weight:900; color:#0b57d0; }
#learn-more-push-ads .small { font-size:12px; color:#5f6368; }

/* FAQ */
#learn-more-push-ads .faq { margin:8px 18px 18px; display:grid; gap:8px; }
#learn-more-push-ads .qa { border:1px solid #e7eaee; border-radius:12px; padding:12px; background:#fff; }
#learn-more-push-ads .qa b { display:block; margin-bottom:4px; }
.fixed-icon {
  position: fixed;
  bottom: 0;
  right:20px;
  cursor: pointer;
}
.panel-header .open-learn-more-push-ads {
  margin-left: 5px;
  cursor: pointer;
}
.mobile-bottom-cta-wrapper{
  width: 100%;
}
.logged-in-wrapper{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;}
/**/
.page.adbuilder .website-logo-wrapper,.page.adbuilder .eyebrow{display: none!important;}
@media (max-width: 750px){
    .chip-drag{visibility: hidden;}
    .panel-body {padding: 30px 0;}
    #learn-more-push-ads .panel-header .ion-arrow-button__circle {display: none;}
    #learn-more-push-ads .panel-header h2 {padding:4px 12px; gap: 10px;}
    #learn-more-push-ads .cards, #learn-more-push-ads .stats { grid-template-columns:1fr; }
  .card.panel,.card.preview-wrap{ width:100%; flex:1 1 100%; }
  .mobile-tabs{ display:flex; right: 12px; top: 24px; position: fixed; z-index: 2;}
  .m-hidden{ display:none !important; }
  .deck{ gap:12px;}
  .thumbs{ grid-template-columns: repeat(3,1fr);}
  .card.panel {
      max-height: 100%;
  }
  .form-fields-inner {
      height: calc(100% - 220px);
  }
  .panel-header .btn-sml {
      left: 155px;
      top: 24px;
      position: fixed;
  }
  .card.preview-wrap .panel-header {
      display: flex;
  }
  .panel-header {
      position: sticky;
      z-index: 1;
      top: 0;
      background: #fff;
      border-radius: 20px 20px 0 0;
      flex: 0 0 76px;
  }
  .wrap {
      padding: 0;
  }
  .mobile-bottom-cta-wrapper{
    width: 80%;
  }
  .close-push-btn{
    position: absolute;
    top: -20px;
    right: -20px;
  }
}