/* css for building split tests */

/* Ultimate fallback: CSS animation shows page after 4s if JS completely fails */
/* This runs purely in CSS - no JS needed. 4s = enough for slow loads, not painful if JS broken */
@keyframes abst-force-show {
    to { opacity: 1; pointer-events: auto; }
}
body:not(.abst-show-page) {
    animation: abst-force-show 0s 4s forwards;
}

/* Hide all variations by default - prevents flicker */
[bt-variation]:not(.bt-show-variation),
[data-bt-variation]:not(.bt-show-variation),
[class*='ab-var-']:not(.bt-show-variation) {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show the first variation of each experiment - prevents CLS */
[bt-variation].bt-first-variation:not(.bt-show-variation),
[data-bt-variation].bt-first-variation:not(.bt-show-variation),
[class*='ab-var-'].bt-first-variation {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* After test setup complete, fully remove non-selected variations from DOM */
/* WPBakery's frontend editor (body.vc_editor) is excluded. Plain :not(), not :where():
   a browser without :where() (Safari < 14) drops the whole rule and leaves blank gaps. */
body.ab-test-setup-complete:not(.vc_editor) [bt-variation]:not(.bt-show-variation),
body.ab-test-setup-complete:not(.vc_editor) [data-bt-variation]:not(.bt-show-variation),
body.ab-test-setup-complete:not(.vc_editor) [class*='ab-var-']:not(.bt-show-variation) {
    display: none !important;
}

/* Show selected variation */
.bt-show-variation {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Backwards compat display:revert removed Feb 2026 - was breaking themes using display:flex/grid on body */

/* Page builders - always show everything */
body.fl-builder-edit [bt-variation],
body.fl-builder-edit [data-bt-variation],
body.fl-builder-edit [class*='ab-var-'],
body.ab-test-setup-complete.fl-builder-edit [bt-variation]:not(.bt-show-variation),
body.ab-test-setup-complete.fl-builder-edit [data-bt-variation]:not(.bt-show-variation),
body.ab-test-setup-complete.fl-builder-edit [class*='ab-var-']:not(.bt-show-variation),
body.ab-test-setup-complete #breakdance_canvas [bt-eid]:not(.bt-show-variation),
body.ab-test-setup-complete #editor [data-bt-eid]:not(.bt-show-variation),
body.ab-test-setup-complete[data-builder-window='iframe'] .brx-body [bt-eid]:not(.bt-show-variation),
#breakdance_canvas [bt-eid],
#editor [data-bt-eid],
body[data-builder-window='iframe'] .brx-body [bt-eid] {
    opacity: 1 !important;
    display: revert !important;
    pointer-events: auto !important;
}

/* WPBakery frontend editor: vc_editor sits on the iframe body. No display override here
   (revert would turn .vc_row-flex rows into blocks); the hide rule above skips body.vc_editor. */
body.vc_editor [bt-variation],
body.vc_editor [data-bt-variation],
body.vc_editor [class*='ab-var-'] {
    opacity: 1 !important;
    pointer-events: auto !important;
}


.fl-block-overlay-active[bt-variation][bt-eid]>.fl-row-overlay,.fl-block-overlay-active[bt-variation][bt-eid]>.fl-module-overlay{
  border:2px solid #F75C03 !important;
}

.fl-block-overlay-active[bt-variation][bt-eid]>.fl-row-overlay .fl-block-overlay-actions,.fl-block-overlay-active[bt-variation][bt-eid]>.fl-module-overlay .fl-block-overlay-actions{
  background-color:#F75C03 !important;  
}

.ab-highlight {
  animation: highlight 2s ease-in-out infinite !important;
  position: relative;
  z-index: 1;
}

@keyframes highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 92, 3, 0.2);
    transform: scale(1);
  }
  15% {
    box-shadow: 0 0 20px 10px rgba(247, 92, 3, 1);
    transform: scale(1.02);
  }
  30% {
    box-shadow: 0 0 10px 5px rgba(247, 92, 3, 0.2);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 20px 10px rgba(247, 92, 3, 1);
    transform: scale(1.02);
  }
  60% {
    box-shadow: 0 0 10px 5px rgba(247, 92, 3, 0.2);
    transform: scale(1);
  }
  75% {
    box-shadow: 0 0 20px 10px rgba(247, 92, 3, 1);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 92, 3, 0.2);
    transform: scale(1);
  }
}

.bt-active-var-dot{
    padding: 5px;
    color:green;
}

.bt-new-window::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
  filter: invert(1);

}


.bt-conversion-icon{
    background-image: url(/wp-content/plugins/bb-bt-ab/img/split-conversion.svg);
    background-size: contain;
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 4px;
}

.ab-flag-filled { 
    display: inline-block;
    width: 20px !important;
    height: 20px !important;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iMzAiIGhlaWdodD0iMzAiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2EwYTVhYSI+PHBhdGggZD0iTTI4LjY2NjY3LDE0LjMzMzMzdjE0My4zMzMzM2gxNC4zMzMzM3YtNTAuMTY2NjdoODZjNy44OTQ1MywwIDE0LjMzMzMzLC02LjQzODggMTQuMzMzMzMsLTE0LjMzMzMzdi02NC41YzAsLTcuODk0NTMgLTYuNDM4OCwtMTQuMzMzMzMgLTE0LjMzMzMzLC0xNC4zMzMzM3pNNjQuNSwyOC42NjY2N2gyMS41djIxLjVoMjEuNXYtMjEuNWgyMS41djIxLjVoLTIxLjV2MjEuNWgyMS41djIxLjVoLTIxLjV2LTIxLjVoLTIxLjV2MjEuNWgtMjEuNXYtMjEuNWgtMjEuNXYtMjEuNWgyMS41ek02NC41LDUwLjE2NjY3djIxLjVoMjEuNXYtMjEuNXoiPjwvcGF0aD48L2c+PC9nPjwvc3ZnPg==') 50% 50% no-repeat;
    background-size: 100%; 
    vertical-align: text-top;
    margin-right: 3px !important;
}

.ab-split { 
    display: inline-block;
    width: 20px !important;
    height: 20px !important;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iMzAiIGhlaWdodD0iMzAiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2EwYTVhYSI+PHBhdGggZD0iTTUwLjE2NjY3LDE0LjMzMzMzYy0xMS44NTM2NywwIC0yMS41LDkuNjQ2MzMgLTIxLjUsMjEuNWMwLDkuMzI4MiA2LjAxMTAzLDE3LjIxNTMzIDE0LjMzMzMzLDIwLjE4NDI0djU5Ljk2NDg1Yy04LjMyMjMsMi45Njg5MSAtMTQuMzMzMzMsMTAuODU2MDUgLTE0LjMzMzMzLDIwLjE4NDI0YzAsMTEuODUzNjcgOS42NDYzMywyMS41IDIxLjUsMjEuNWMxMS44NTM2NywwIDIxLjUsLTkuNjQ2MzMgMjEuNSwtMjEuNWMwLC05LjMyODIgLTYuMDExMDMsLTE3LjIxNTMzIC0xNC4zMzMzMywtMjAuMTg0MjR2LTI3LjMyMjkyYzIuODEzNDUsMy4zODY4NyA1LjkwNTk2LDYuNDUwMjkgOS4xNTQzLDkuMTY4M2MxMS4wMDM3LDkuMjA3MjEgMjMuNjMzMjIsMTQuODU3MzUgMzUuMDIxNDgsMTYuMzc2OTVjMi44MzcwNyw4LjU1ODk1IDEwLjgyNjcsMTQuNzk1MjUgMjAuMzI0MjIsMTQuNzk1MjVjMTEuODUzNjcsMCAyMS41LC05LjY0NjMzIDIxLjUsLTIxLjVjMCwtMTEuODUzNjcgLTkuNjQ2MzMsLTIxLjUgLTIxLjUsLTIxLjVjLTkuMDg1OTQsMCAtMTYuODMyMjgsNS42OTA0OSAtMTkuOTc0MjgsMTMuNjc1NDVjLTcuNzU1NzEsLTEuNTMyNyAtMTcuODM4MDUsLTUuODcxMzggLTI2LjE2MTE0LC0xMi44MzU2MWMtOS4yMDIwNiwtNy42OTk3MiAtMTYuMzI5NDgsLTE4LjA2MjQgLTE3Ljk4NjY1LC0zMC45MzQyNWM4LjEyOTU5LC0zLjA2OTkyIDEzLjk1NTQsLTEwLjg4MjMyIDEzLjk1NTQsLTIwLjA3MjI3YzAsLTExLjg1MzY3IC05LjY0NjMzLC0yMS41IC0yMS41LC0yMS41eiI+PC9wYXRoPjwvZz48L2c+PC9zdmc+') 50% 50% no-repeat;
    background-size: 100%; 
    vertical-align: text-top;
    margin-right: 3px !important;
}

.ab-test-tube { 
    display: inline-block;
    width: 20px !important;
    height: 20px !important;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iNjQiIGhlaWdodD0iNjQiCnZpZXdCb3g9IjAgMCAxNzIgMTcyIgpzdHlsZT0iIGZpbGw6IzAwMDAwMDsiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxwYXRoIGQ9Ik0wLDE3MnYtMTcyaDE3MnYxNzJ6IiBmaWxsPSJub25lIj48L3BhdGg+PGcgZmlsbD0iI2EwYTVhYSI+PHBhdGggZD0iTTU5LjEyNSwxNy45MTY2N2MtMS45Mzg0MiwtMC4wMjc0MSAtMy43NDE0NCwwLjk5MTAyIC00LjcxODY1LDIuNjY1MzJjLTAuOTc3MjEsMS42NzQzIC0wLjk3NzIxLDMuNzQ1MDcgMCw1LjQxOTM3YzAuOTc3MjEsMS42NzQzIDIuNzgwMjMsMi42OTI3MyA0LjcxODY1LDIuNjY1MzJoMS43OTE2N3Y0Mi4yNzkxM2MwLDMuMjc5MDQgLTEuMDAzMTIsNi40ODE4NSAtMi44Njk0Nyw5LjE3NTI5bC0zMy42ODQ3Myw0OC42NTQ5NWMwLDAuMDAyMzMgMCwwLjAwNDY3IDAsMC4wMDdjLTQuMTc5MzgsNi4wNDA4OSAtMy43NjE5LDE0LjQwODAzIDEuMzU3NzUsMjAuMDUxMjdjMy4zNDIxNCwzLjY4NzQ2IDguMDE3NjgsNS4yNDkwMiAxMi40NjQ2OCw1LjI0OTAyaDk1LjYzMDIxYzQuNDQ3LDAgOS4xMjI1NCwtMS41NjE1NiAxMi40NjQ2OCwtNS4yNDkwMmM1LjExOTY0LC01LjY0MzI0IDUuNTM3MTMsLTE0LjAxMDIxIDEuMzU3NzUsLTIwLjA1MTI3YzAsLTAuMDAyMzMgMCwtMC4wMDQ2NyAwLC0wLjAwN2wtMzMuNjg0NzMsLTQ4LjY1NDk1Yy0xLjg2NjM0LC0yLjY5MzQ0IC0yLjg2OTQ3LC01Ljg5NjI1IC0yLjg2OTQ3LC05LjE3NTI5di00Mi4yNzkxM2gxLjc5MTY3YzEuOTM4NDIsMC4wMjc0MSAzLjc0MTQ0LC0wLjk5MTAyIDQuNzE4NjUsLTIuNjY1MzJjMC45NzcyMSwtMS42NzQzIDAuOTc3MjEsLTMuNzQ1MDcgMCwtNS40MTkzN2MtMC45NzcyMSwtMS42NzQzIC0yLjc4MDIzLC0yLjY5MjczIC00LjcxODY1LC0yLjY2NTMyaC03LjE2NjY3aC0zOS40MTY2N3pNNzEuNjY2NjcsMjguNjY2NjdoMjguNjY2Njd2MjguNjY2NjdoLTI4LjY2NjY3ek03NS4yNSw5My4xNjY2N2MzLjk1OTU4LDAgNy4xNjY2NywzLjIwNzA4IDcuMTY2NjcsNy4xNjY2N2MwLDMuOTU5NTggLTMuMjA3MDgsNy4xNjY2NyAtNy4xNjY2Nyw3LjE2NjY3Yy0zLjk1OTU4LDAgLTcuMTY2NjcsLTMuMjA3MDggLTcuMTY2NjcsLTcuMTY2NjdjMCwtMy45NTk1OCAzLjIwNzA4LC03LjE2NjY3IDcuMTY2NjcsLTcuMTY2Njd6TTEwNS43MDgzMywxMTQuNjY2NjdjNC45NDg1OCwwIDguOTU4MzMsNC4wMDk3NSA4Ljk1ODMzLDguOTU4MzNjMCw0Ljk0ODU4IC00LjAwOTc1LDguOTU4MzMgLTguOTU4MzMsOC45NTgzM2MtNC45NDg1OCwwIC04Ljk1ODMzLC00LjAwOTc1IC04Ljk1ODMzLC04Ljk1ODMzYzAsLTQuOTQ4NTggNC4wMDk3NSwtOC45NTgzMyA4Ljk1ODMzLC04Ljk1ODMzeiI+PC9wYXRoPjwvZz48L2c+PC9zdmc+') 50% 50% no-repeat;
    background-size: 100%; 
    vertical-align: text-top;
    margin-right: 3px !important;
}   

.ab-pointer{
  display: inline-block;
  width: 20px !important;
  height: 20px !important;
  font-weight: bolder !important;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAz0lEQVR4nO3TMUrDUADH4RyhUyeXgjfoKYrg7kHEqdArlJ6iq+Dk6OYJnK0IhRZawcXBr0QTMGkxJOl7hZLfnnz/hPeSpOtAuMIbFhglsfIL5r3GhAt1cLCUCieV6mCx7rX9Cvc62BDVlYdc4731EPX7+jskJlyog0//qzHAAz6yg/GCGYah4ed/nnsMCd/juy1QG07DJab4jArnoZ8NiAvn4e4kcBomR3A3Py+rG8YtD968EZzhN1g3QFe4aAxneA+3eMKyAtymX9oaTc6pHUq/UtvSbyB1AAAAAElFTkSuQmCC') 50% 50% no-repeat;
  background-size: 100%;
  opacity: 0.8;
  vertical-align: text-top;
  margin-right: 3px !important;
}

.ab-ai{
  display: inline-block;
  width: 20px !important;
  height: 20px !important;
  color: white;
  font-weight: bolder !important;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAACUklEQVR4nOWaz04iQRDGB//7DHuEeENi4KI+hbfF7EUP6sWDwUR4BTeLMbLC6nrgSX+mYyUOYw89zFTP0FhJZRJouvrr/rqr5mui6DsaUAMG4rUoVAMawFS8HoVqwGkMSDcKmFZ/YkAegqQXs7QKl17M0ipMevGVVmHSCzutwqEXHytRB27nALmVNsu3MsAP4AS4nwPARrNfwF5loPic+S4wXGDwaT6UvpwrBbSAkXlGCkAGCoNP874jdk/a9YIFAuwCb9LOPHer2heF9gtwlPjdYWEgVWx24DrRx7UqkDKOX2ALeE309Wo+9wJGgta1EyLQSemvo4/AY4kCXKUAudRHMBu4awn6M2df68BzCpAJsKGPYD698tKq5Tg49vUReHixAs4dQM70EaTTq1uAVk8OIE+mnT4CO70y0wpYk/xi8sxjxrz0F7gADtT3jNCrL17LkCfMEXsJjAtWCmPpp+M1zyQGfyAz+U+h1Jla3CTNG+BYpTaznEK9WAFYlr9J3JYWkFHJAKYJH2kBWY0VWZk9YjNgMwaq6Kn1Ehv8TlRAfXcet45+NoCmydgL7KeRtG8WziN5E+DSZXY8qe8y0+XUWnzQauhDHjXVrQNIUyOOd/Xd8T4yVq2tfKvvUjvZgFxo0akhICaWIBP5rlGUZkA7BUhbQ/75XZbWK8nzxZLstqtUGfs5Y+vpWlQL5FBVaaSiawRTbgD/VbVfy/VC2mbPdF2Q1VTV+AV0LPXLz9j9iB8JSFPHqtRYlT8IWOiVSx5dCsNDGV8lve7Ew6RVFJi9A92J4OsmpTGYAAAAAElFTkSuQmCC') 50% 50% no-repeat;
  background-size: 100%;
  vertical-align: text-top;
  margin-right: 3px !important;
}
.ab-link{
  display: inline-block;
  width: 20px !important;
  height: 20px !important;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnElEQVR4nO2STQrCMBCFu453aL2BWainSO9gRHL/G3wy8IRpiYuUFhTyYDZvZt78DkNHx38BOAMz8ASKt0rswq+cBEzfxO+VpNJQwNut1rk5XsAFCBumD0CUhmmN3jmLjK3Ca6iIaSVPZpGhYQ2ltj5NYnw+qsBJ/MOT6egVTe7IcfcjG+y1dnzT6zr+kzRqXXlDgazcZecdHb+PN6Kxm3m8VSfmAAAAAElFTkSuQmCC') 50% 50% no-repeat;
  background-size: 100%;
  vertical-align: text-top;
  margin-left: 3px !important;
  cursor: pointer;
}


/* Test element: thin dotted brand-teal line (outline, so the page layout doesn't shift) */
.abst-variation {
  outline: 2px dotted #38d7d3;
  outline-offset: 2px;
  position: relative !important; /* Ensure the badge is anchored to this element */
}

/* AI suggested elements - light green highlight */
.abst-ai-suggested {
  border: 3px dotted #4CAF50 !important;
  border-radius: 5px;
  position: relative !important;
  background: rgba(76, 175, 80, 0.05);
}
.click-to-start-help{
  padding: 30px !important;
  text-align: center;

}

#abst-magic-bar .click-to-start-help #abst-start-add-element {
  background: transparent;
  color: #0f766e !important;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: #5eead4 !important;
  text-underline-offset: 2px;
}

#abst-magic-bar .click-to-start-help #abst-start-add-element:hover {
  color: #115e59 !important;
  text-decoration-color: #14b8a6 !important;
}

/* Element tab: one toolbar on the element's top-left corner, the name, versions (A B +),
   Hide / Move and remove. Brand teal on test elements (.abst-variation-marker), blue on a
   freshly selected element (.abst-element-actions). highlighter.js positions it (fixed). */
.abst-magic-tab {
  position: fixed;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  overflow-x: auto;
  height: 28px;
  padding: 0 4px;
  background: #38d7d3;
  color: #0d1a35;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  z-index: 100000;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
}
.abst-magic-tab.abst-tab-below { border-radius: 0 0 6px 6px; }
.abst-element-actions.abst-magic-tab { background: #2271b1; color: #fff; z-index: 999999; }
.abst-magic-tab .abst-tab-label { padding: 0 6px 0 4px; }
.abst-magic-tab .abst-tab-sep { flex: none; width: 1px; height: 14px; margin: 0 4px; background: currentColor; opacity: 0.3; }
.abst-magic-tab button {
  appearance: none;
  flex: none;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  border-radius: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
}
.abst-magic-tab button:hover { background: rgba(13, 26, 53, 0.12) !important; }
.abst-element-actions.abst-magic-tab button:hover { background: rgba(255, 255, 255, 0.2) !important; }
.abst-magic-tab button.active,
.abst-magic-tab button.is-active { background: #0d1a35 !important; color: #38d7d3 !important; }
.abst-magic-tab .abst-marker-remove:hover { background: #b91c1c !important; color: #fff !important; }
.abst-magic-tab button:disabled,
.abst-magic-tab button:disabled:hover { opacity: 0.4; background: transparent !important; cursor: not-allowed !important; }
.abst-magic-tab svg { display: block; width: 14px; height: 14px; }
/* The freshly selected element's outline (a body-level box; the page element isn't touched) */
.abst-element-actions-outline {
  position: fixed;
  outline: 2px solid #2271b1;
  outline-offset: 2px;
  pointer-events: none;
  z-index: 158000;
}

#variation-picker-container, #variation-editor-container, .abst-goals-column, .abst-magic-bar-footer, #abst-targeting-button, .magic-test-name, .winning-mode {
  display: none;
}
/* BRICKS */
[data-abmagictestelementtype]{
  cursor: pointer;
}
.bricks-panel-controls div[controlkey="ab_heading"] {
    background-color: rgba(0,0,0,0) !important;
    text-transform: uppercase;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
}

.bricks-panel-controls div[data-controlkey="ab_heading"] {
    border-top: thin solid rgb(82, 82, 82) !important;
    margin-top: 12px;
}

[data-controlkey="bt_info"] [data-control=info] {
  background: #ffffff00 !important;
  color:white !important;
}
[data-controlkey="bt_info"] [data-control=info] a:hover {
  color: #7abcf5 !important;
}

/* CONVERSION MODULE */

  .fl-module-conversion,
  .wp-block-bt-experiments-gutenberg-conversion { 
    display:none;
  }
  .fl-builder-edit .fl-module-conversion {
    display:block;
  }
  
  .fl-builder-edit .conversion-module,
  .block-editor-page .conversion-module,
  .elementor-widget-container .conversion-module {
    padding:10px;
    border: thin solid whitesmoke;
    background: repeating-linear-gradient(
      45deg,
      whitesmoke,
      whitesmoke 10px,
      white 10px,
      white 20px
    );

  }
  .conversion-module *{
    text-align:center;
    color:#525252 !important;
  }

/* create-test pop-up in page builders (js/builderhelper.js); framed like .abst-modal in the admin */
.newabpanel {
  width: 520px;
  max-width: calc(100vw - 32px);
  height: min(760px, 88vh);
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  z-index: 100101;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #ffffff;
}

.newabpanel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(0, 0, 0, 0.55);
}

#ab-ai-form {
  background: white !important;
  color:rgb(61, 61, 61) !important;
  max-width: 550px;
  padding: 20px 20px 30px 20px;
  border-radius: 5px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
#ab-ai-form .mfp-close{
margin-top: -20px;
}

#ab-ai-form #result{
  background: whitesmoke !important;
  white-space: pre-line;
  padding:10px;
  border-radius:5px;
  margin-top:20px
}

#ab-ai-form #result li:hover{
  cursor:copy;
  background:white !important;
}

#ab-ai-form #result li{
  margin:3px;
  padding:3px;
  border-radius:5px;
}


.ab-white-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  margin: 20px auto;
}

#ab-ai-form .ai-option {
    margin-bottom: 5px;
    background: #e7e7e7;
    padding: 5px 10px;
    border-radius: 5px;
    border: thin solid #ededed;
}
#ab-ai-form .ai-option:hover {
  border: thin solid #d8d8d8;
  background: #d4d4d4;
  cursor:copy;
}
#ab-ai-form .ai-option:active {
  background: #a9e7b1;
  cursor:copy;
}


.ab-copy-link{
  cursor: pointer;
  position: absolute !important;
  right: 10px;
}


p.ai-loading {
    background: transparent !important;
    animation: none !important;
    padding: 8px 12px !important;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
}

@keyframes ai-load-gradient {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}


/* AI AI */

.ai-loading-outer-box {
  width: 100px;
  height: 100px;
  border: 8px solid whitesmoke;
  background: white;
  border-radius: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 10px -2px #00000099;
}

.ai-loading-inner-box {
  box-shadow: 0 1px 30px -5px rgba(0,0,0,0.9);
  animation: ai-load-bounce 4s infinite;
  width: 30px;
  height: 30px;
  background-color: #365187;
  border-radius: 3px;
}

ul#ai-suggestions-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: scroll;
  height: 180px;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #b9c6ec transparent; /* Firefox */
}
ul#ai-suggestions-list::-webkit-scrollbar {
  width: 6px; /* Chrome, Safari, Opera */
}
ul#ai-suggestions-list::-webkit-scrollbar-thumb {
  background: #b9c6ec;
  border-radius: 999px;
}
ul#ai-suggestions-list::-webkit-scrollbar-track {
  background: transparent;
}
ul#ai-suggestions-list li {
  background: linear-gradient(135deg, #e5ecff 0%, #f1f5ff 100%);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #d8e1ff;
  box-shadow: 0 4px 12px rgba(70, 90, 150, 0.15);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}


.ai-suggestion-copy {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: #28324d;
  font-weight: 500;
}

.ai-suggestion-style {
  display: inline-flex;
  margin-top: 0;
  padding: 0;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Skeleton loading for AI suggestions */
.ai-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.ai-skeleton-item {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
}

.ai-skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  width: 80%;
}

.ai-skeleton-text:last-child {
  margin-bottom: 0;
  width: 60%;
}

.ai-skeleton-style {
  height: 20px;
  width: 60px;
  border-radius: 999px;
  margin-bottom: 8px;
}


#ai-suggestions {
margin: 0 -13px -13px -13px;
  border-top: 1px solid #d7dce3;
  background: #edf5f6;
}

.abst-ai-suggestions-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}
.abst-ai-suggestions-toggle:hover,
.abst-ai-suggestions-toggle:focus,
.abst-ai-suggestions-toggle:active {
  background: transparent;
  color: #0f766e;
  box-shadow: none;
  outline: none;
}
.abst-ai-suggestions-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.abst-ai-suggestions-inline-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  background-image: linear-gradient(-45deg, #dde8ff 25%, transparent 25%, transparent 50%, #dde8ff 50%, #dde8ff 75%, transparent 75%, transparent);
  background-size: 80px 80px;
  animation: ai-load-gradient 3s linear infinite;
  border: 1px solid #dbe4ea;
  border-radius: 6px;
  min-width: 230px;
  height: 24px;
  padding: 0 10px;
  box-sizing: border-box;
}
.abst-ai-loading-text {
  letter-spacing: 0.01em;
  color: #5b6472;
}
.abst-ai-suggestions-icon {
  font-size: 11px;
  line-height: 1;
  color: #11b8c6;
}
.abst-ai-suggestions-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #11b8c6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.abst-ai-toggle-chevron {
  font-size: 12px;
  color: #97a6af;
  transition: transform 0.2s ease;
}
.abst-ai-suggestions-toggle[aria-expanded="true"] .abst-ai-toggle-chevron {
  transform: rotate(180deg);
}
.abst-ai-suggestions-content {
  display: none;
  padding: 0 0 8px;
  background: #f3f4f6;
  border-top: 1px solid #d7dce3;
}
.abst-ai-suggestions-hint {
  font-size: 12px;
  color: #8a7a6a;
  margin: 0;
  padding: 8px 14px 10px !important;
}

#variation-editor-container {
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#variation-editor-container.is-active {
  border-color: #4a97ca;
  box-shadow: 0 0 0 1px rgba(20, 184, 184, 0.08);
}

/* Version bar — test-level controls (variation switcher + add element) live OUTSIDE the
   element box: they act on the whole variation, not the selected element. Styled like the
   other panel cards (white, standard border); teal appears only as the accent. */
#abst-version-bar {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  margin: 8px;
  overflow: hidden;
}

#version-value.abst-version-value {
  align-items: center;
  color: #1f2937;
  display: flex;
  font-size: 18px;
  font-weight: 600;
  gap: 7px;
  justify-content: flex-start;
  line-height: 1.25;
  margin: 10px 12px 8px;
}

#abst-version-bar #version-value.abst-version-value {
  color: #0f172a;
  font-size: 15px;
  margin: 10px 12px;
}

/* The switcher controls are <button>s on the host page — pin the paint properties so
   theme button styles can't box/recolour them (same hardening as the tabs). */
#abst-version-bar .abst-version-toggle,
#abst-version-bar .abst-version-swap {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  cursor: pointer;
  font: inherit;
  letter-spacing: normal;
  line-height: inherit;
  margin: 0;
  min-height: 0;
  padding: 0 !important;
  text-shadow: none;
  text-transform: none !important;
  width: auto;
}

#abst-version-bar .abst-version-toggle {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: #14b8a6 !important;
  text-underline-offset: 3px;
}

#abst-version-bar .abst-version-toggle:hover,
#abst-version-bar .abst-version-swap:hover {
  color: #0f766e !important;
}

#abst-version-bar .abst-version-action {
  color: #0f766e;
  text-decoration-color: #5eead4;
}

#abst-version-bar .abst-version-action:hover {
  color: #115e59;
}

/* Element-scoped actions (hide/move + move target) stay inside the element box */
#abst-element-actions-row.abst-element-actions-row {
  display: flex;
  align-items: center;
  margin: 4px 12px 0;
  min-height: 0;
}

#abst-element-actions-row .abst-version-actions {
  margin-left: auto;
}

#version-value .abst-version-toggle,
#version-value .abst-version-swap {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: 0;
  padding: 0;
}

#version-value .abst-version-toggle {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#version-value .abst-version-swap {
  align-items: center;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

#version-value .abst-version-swap svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

#version-value .abst-version-toggle:hover,
#version-value .abst-version-swap:hover {
  color: #0f766e;
}

#variation-editor-container #imageSelector {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin: 10px 12px 0;
  padding: 8px 12px;
}

#variation-editor-container #imageSelector:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
@keyframes ai-load-bounce {
  0% {
    transform: translateY(0) translateX(0) rotate(-100deg);
  }
  10% {
    transform: translateY(-10px) translateX(-10px) rotate(-15deg);
  }
  20% {
    transform: translateY(20px) translateX(40px) rotate(10deg);
  }
  30% {
    transform: translateY(15px) translateX(-5px) rotate(-60deg);
  }
  40% {
    transform: translateY(30px) translateX(25px) rotate(35deg);
  }
  50% {
    transform: translateY(-40px) translateX(-20px) rotate(-10deg);
  }
  60% {
    transform: translateY(20px) translateX(15px) rotate(15deg);
  }
  70% {
    transform: translateY(15px) translateX(-35px) rotate(-75deg);
  }
  80% {
    transform: translateY(10px) translateX(50px) rotate(10deg);
  }
  90% {
    transform: translateY(50px) translateX(-15px) rotate(-15deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(-100deg);
  }
}


.abst-goal-upgrade-text {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  margin: 10px 0 0;
}

#abst-ideas-general {
  padding: 10px;
  background: whitesmoke;
  border-radius: 20px;
  margin: 50px 20px 20px 20px;
  text-align: center;
  opacity: .8;
  box-shadow: 0 0 10px -2px #00000029;
}

#abst-ideas-general ul {
  padding: 0 10px 10px 10px;
  background: whitesmoke;
  border-radius: 20px;
  margin: 20px; 
  text-align: center;
}
#close-help-magic{
  cursor: pointer;
  position: relative;
  display: block;
  text-align: center;
  margin: 10px 0;
  font-size: 12px;
  color: #666;
  text-decoration: underline;
}

.goal-value-label{
  padding: 1px 0;
}
#conversion_use_order_value_container {
  display: none;
  padding: 8px 0 0;
}

#abst-magic-bar #conversion_use_order_value_container label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

#abst-magic-bar #conversion_use_order_value_container .abst-checkbox {
  margin: 0;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-info[aria-expanded="true"] {
  background: #17A8E3;
  border-color: #17A8E3;
  color: #ffffff;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel p,
#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel ol {
  margin: 0 0 8px 0;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel p:last-child,
#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel ol:last-child {
  margin-bottom: 0;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel ol {
  padding-left: 18px;
}

#abst-magic-bar #conversion_use_order_value_container .abst-order-value-help-panel code {
  color: #475569;
  background: #ffffff;
  border-radius: 4px;
  padding: 1px 4px;
}

/* MAGIC BAR STYLES */
.abst-magic-bar {
  width: 35%;
  position: fixed;
  background-color: #fff;
  top: 32px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  right: 0;
  z-index: 65534;
  color: #1e293b !important;
  box-sizing: border-box;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 400;
  height: calc(100% - 32px) !important;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.abst-magic-bar-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e8eaed;
    padding: 12px 14px;
    flex-shrink: 0;
    z-index: 10;
    gap: 10px;
}
.abst-magic-bar-footer.abst-magic-bar-footer-visible {
    display: flex !important;
}
#abst-magic-bar button#abst-magic-bar-start {
    flex: 1;
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    border-radius: 9px !important;
    margin: 0;
    padding: 12px !important;
    background: #2271b1 !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.15s;
}
#abst-magic-bar button#abst-magic-bar-start:hover {
    background: #1a5c92 !important;
}
#abst-magic-bar button#abst-magic-bar-start:active {
    background: #134a78 !important;
}
#abst-magic-bar button#abst-magic-bar-save-draft {
    flex: 0 0 34%;
    color: #3c434a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    border-radius: 9px !important;
    margin: 0;
    padding: 12px !important;
    background: #f0f0f1 !important;
    border: 1px solid #dcdcde !important;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
#abst-magic-bar button#abst-magic-bar-save-draft:hover {
    background: #e8eaed !important;
    border-color: #c3c4c7 !important;
}
#abst-magic-bar button#abst-magic-bar-save-draft:active {
    background: #dcdcde !important;
}

#abst-magic-bar .abst-add-goal-button, #imageSelector{
  background:GREY !imPORTANT;
  font-size:14px;
  text-transform:uppercase;
  padding:5px 15px;
  border-radius:3px;
  border-width:1px;
}

#abst-magic-bar .abst-add-goal-button:hover, #imageSelector:hover{
  background:#2b7bb9 !imPORTANT;
}

#abst-magic-bar .abst-add-goal-button:active, #imageSelector:active{
  background:#08a66a !imPORTANT;}

/* Hardened form elements for magic bar */
#abst-magic-bar > input[type="text"],
#abst-magic-bar > input[type="number"],
#abst-magic-bar > input[type="email"],
#abst-magic-bar > input[type="url"],
#abst-magic-bar > input[type="password"],
#abst-magic-bar > input[type="search"],
#abst-magic-bar > input[type="tel"],
#abst-magic-bar > textarea:not(.wp-editor-area),
#abst-magic-bar > select,
#abst-magic-bar  input[type="text"],
#abst-magic-bar  input[type="number"],
#abst-magic-bar  input[type="email"],
#abst-magic-bar  input[type="url"],
#abst-magic-bar  input[type="password"],
#abst-magic-bar  input[type="search"],
#abst-magic-bar  input[type="tel"],
#abst-magic-bar  textarea:not(.wp-editor-area),
#abst-magic-bar  select {
  width: 100%;
  max-width: 100%;
  margin: 5px 0 15px 0;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.abst-selector button{
  background:white;
}
a.abst-variation-remove {
  font-size: 12px;
}
/* checkboxes - see modern checkbox styles below */

#abst-magic-bar .mce-tinymce button{
  background-color: #ffffff;
  border:thin solid #d9d9d9;
}


#abst-magic-bar .mce-tinymce button:hover{
  background-color: rgb(222 246 255);
}
#abst-magic-bar .mce-tinymce button:active{
  background-color: #ace1a8;
}

#abst-magic-bar > input:focus,
#abst-magic-bar > textarea:focus:not(.wp-editor-area),
#abst-magic-bar > select:focus,
#abst-magic-bar  input:focus,
#abst-magic-bar  textarea:focus:not(.wp-editor-area),
#abst-magic-bar  select:focus {
  border-color: #4d90fe;
  outline: none;
  box-shadow: 0 0 0 1px #4d90fe, inset 0 1px 2px rgba(0,0,0,0.1);
}

#abst-magic-bar select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23444" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
  padding-right: 30px;
}

#abst-magic-bar > button:not(.mce-btn button),
#abst-magic-bar > .button,
#abst-magic-bar > input[type="button"],
#abst-magic-bar > input[type="submit"],
#abst-magic-bar  > button:not(.mce-btn button),
#abst-magic-bar  > .button,
#abst-magic-bar  > input[type="button"],
#abst-magic-bar  > input[type="submit"] {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px 5px 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

#abst-magic-bar > button:hover:not(.mce-btn button),
#abst-magic-bar > .button:hover,
#abst-magic-bar > input[type="button"]:hover,
#abst-magic-bar > input[type="submit"]:hover,
#abst-magic-bar  > button:hover:not(.mce-btn button),
#abst-magic-bar  > .button:hover,
#abst-magic-bar  > input[type="button"]:hover,
#abst-magic-bar  > input[type="submit"]:hover {
  background-color: #e8e8e8;
  border-color: #999;
}

#abst-magic-bar > button:active:not(.mce-btn button),
#abst-magic-bar > .button:active,
#abst-magic-bar > input[type="button"]:active,
#abst-magic-bar > input[type="submit"]:active,
#abst-magic-bar  > button:active:not(.mce-btn button),
#abst-magic-bar  > .button:active,
#abst-magic-bar  > input[type="button"]:active,
#abst-magic-bar  > input[type="submit"]:active {
  background-color: #ddd;
  border-color: #777;
}

#abst-magic-bar > label,
#abst-magic-bar  > label {
  display: block;
  margin: 10px 0 5px 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.abst-magic-bar-header {
  display: block;
  width: 100%;
  padding: 5px;
}

.abst-magic-bar-title {
  font-weight: bold;
  font-size: 16px;
  width: 95%;
  margin: 0 5px 5px 5px;
  padding: 5px 10px;
  border-radius: 5px;
  border: thin solid #dddddd;
}

#variation-picker {
font-size:1.2em !important;
  font-weight:500 !important;
}

#variation-picker:focus {
  border-color: #4d90fe;
  outline: none;
  box-shadow: 0 0 0 1px #4d90fe, inset 0 1px 2px rgba(0,0,0,0.1);
}

#abst-variation-editor{
  margin: auto -13px;
}

div#abst-variation-editor button {
  background: whitesmoke !important;
  color: grey !important;
  padding: 4px 20px;
  font-size: 1em;
}

div#abst-variation-editor button:hover{
      background: #dedede !important;

}
div#abst-variation-editor button:hover{
      background: white !important;

}

.abst-magic-bar-actions {
  display: flex;
  gap: 10px;
}

.abst-magic-bar-start {
  color: white;
  border: none !important;
  padding: 12px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  background: #2271b1 !important;
  width: 100%;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.abst-magic-bar-save-draft {
  color: #3c434a !important;
  border: 1px solid #dcdcde !important;
  padding: 12px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  background: #f0f0f1 !important;
  flex: 0 0 34%;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.abst-magic-bar-start:hover {
  background: #1a5c92 !important;
}
.abst-magic-bar-start:active {
  background: #134a78 !important;
}
.abst-magic-bar-save {
  background-color: transparent;
  color: #4b4b4b !important;
  border: 1px solid #666666;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 30px;
}

.abst-magic-bar-container {
  background-color: #fff;
  padding-top: 1px;
  width: 100%;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.abst-elements-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding: 10px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #ffffff #e4e4e4;
  max-width: calc(100% - 320px);
  box-shadow: inset -16px 0 34px -28px;
}

.abst-elements-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.abst-elements-scroll-container::-webkit-scrollbar-track {
  background: #000;
}

.abst-elements-scroll-container::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 4px;
}

.abst-element-column, .abst-element-column-hidden {
  position: relative;
  padding-top: 10px; /* Add padding to make space for the close button */
}

.abst-element-column, .abst-goals-column, .abst-settings-column {
  /* flex: 0 0 300px; */
  /* min-width: 300px; */
  /* padding: 10px; */
  background: white;
  border-radius: 10px;
  /* box-shadow: 0 0 10px -2px #00000029; */
}

#abst-idea-button{
  background-color: #a82bb949;
  color: black;
  border:rgba(128, 0, 128, 0.493) 1px solid;
  border-radius: 5px;
  padding: 7px 20px;
  cursor: pointer;
}

.prompt-response{
  display: none;
}

.test-ideas-suggestion {
  margin: 5px;
  padding: 10px;
  background: #0000000a;
  border: thin solid #0000001f;
  border-radius: 5px;
}

#abst-idea-button:hover{
  background-color:rgba(128, 0, 128, 0.493);
}

.abst-element-column-hidden {
  display: none;
  flex: 0 0 300px;
  min-width: 300px;
  background-color: #000000;
  padding: 10px;
  position: relative;
}

.abst-element-column.active {
  background-color: #e3ecf4;
  box-shadow: 0 0 17px -1px #00000061;
}

.abst-add-element-column {
  background: none;
  box-shadow: none;
  margin: auto;
}

/* Animation */

.parallaxonde > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallaxonde > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallaxonde > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallaxonde > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallaxonde > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .onde {
    height:40px;
    min-height:40px;
  }
}
.abst-settings-column .ql-toolbar button{
  background:white !important;
}

.abst-goals-column, .abst-settings-column {
  padding: 10px;
  margin: 2% !important;
  width: 96%;
  /* max-height: 500px; */
  /* overflow-y: auto; */
  padding-right: 5px;
  overflow-x: hidden;
}
.goal-type{
  padding: 0 5px !important ;
  text-align:left;
}
.remove-goal{
  /* fill rest of line and text align right */
  text-align: center;
  cursor: pointer;
  color: #696969;
  font-weight: bold;
  background: #ececec;
  font-size: 12px;
  padding: 0;
  border: thin solid #cccccc;
  width: 30px;
  border-radius: 20px;
  float: right;
}

.remove-goal:active{
  background-color: #381111;
  border:black;
  color: white;
}



.abst-element-title {
  position: relative;
  padding-right: 30px; /* Make space for the close button */
  margin-bottom: 5px;
  text-align: center;
}

.abst-hidden{
  display: none;
}

.abst-settings-title, .abst-goals-title, .abst-element-title {
  background: whitesmoke;
  margin: -9px -9px 5px -9px;
  padding: 10px 10px 5px 9px;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
  color: #626262;
  
}
.abst-settings-header{
  font-weight: bold;
  font-size: .9em;
  background: #f5f5f5;
  margin: 5px 0;
  padding: 0 5px;
  border-radius: 6px;
  border: thin solid #eaeaea;
}
.abst-settings-header:hover{
  cursor: pointer;
  text-decoration: underline;
}
.abst-settings-header:after {
  content: " -";
  color: #626262;
  font-size: 16px;
  cursor: pointer;
}
.abst-settings-header.closed:after {
  content: " +";
  color: #626262;
  font-size: 16px;
  cursor: pointer;
}


.abst-goal-item {
  margin-bottom: 5px;
}
.abst-goals-container {
  background: #f3f3f3;
  border: thin solid #d7d7d7;
  margin: 10px 0;
  padding: 5px 10px 0px 10px;
  border-radius: 5px;
}

/* Webkit browsers (Chrome, Safari) */
.abst-goals-container::-webkit-scrollbar {
  width: 8px;
}

.abst-goals-container::-webkit-scrollbar-track {
  background: #f3f3f3;
  border-radius: 4px;
}

.abst-goals-container::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 4px;
}


.abst-goal-italic {
  margin-bottom: 5px;
  font-style: italic;
}

.abst-blue-header {
  padding: 5px;
}

.abst-button-container {
  margin-bottom: 5px;
  text-align: center;
}

html.doing-abst-magic-bar{
  margin-right:35% !important;
}

/* The AI screenshot clones the page just after the bar opens; the squeeze is held off
   until then so the capture shows the full-width layout visitors see */
html.doing-abst-magic-bar.abst-magic-squeeze-held {
  margin-right: 0 !important;
}

/* 100vw/alignfull sections ignore the html margin above and would render
   under the magic bar — clip them at the squeezed site edge instead */
html.doing-abst-magic-bar body {
  overflow-x: clip;
}

/* Class added via JS to fixed elements when magic bar is active */
.abst-adjusted-for-magic-bar {
  margin-right: 35% !important;
  width: calc(100% - 35%) !important;
  max-width: calc(100% - 35%) !important;
  transition: margin-right 0.3s, width 0.3s, max-width 0.3s;
}

#ab-ai-submit{
  padding:10px 50px;
  border-radius:3px;
  background-color:#2271b1;
  color: white !important;
  
}
#ab-ai-submit:hover {
  background:#1f5480;
}
#ab-ai-submit:active {
  background:#000000;
}
.abst-add-goal-button {
  background-color: #000000 !important;
  color: white !important;
  border: 1px solid white;
  padding: 5px 20px;
  border-radius: 5px;
  margin-bottom: 150px;
}
.abst-add-goal-button:hover {
  background:#525252;
}
.abst-add-goal-button:active {
  background:#000000;
}
select.goal-type, .abst-goal-page-input, #abst-device-size{
  width: 100%;
  display: inline-block;
  border: 1px solid #d7d7d7;
  border-radius:5px;
  padding:5px 10px;
  margin:5px 0;
}

.abst-magic-bar-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 40;
}
.abst-magic-bar-close:hover {
  background: #fee2e2;
  color: #dc2626 !important;
}
.abst-magic-bar-close:active {
  background: #fecaca;
  color: #dc2626 !important;
}

.abst-targeting-settings{
  display: none;
}

#abst-targeting-button {
  margin: 10px 8px 0;
  padding: 10px 14px;
  background: #f5f6f8;
  border: none;
  border-radius: 10px;
  color: #7d8796;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

#abst-targeting-text {
  color: #7d8796;
}

#abst-show-targeting {
  color: #14b8a6;
  font-weight: 600;
  text-decoration: none;
}

#abst-show-targeting:hover {
  color: #0f766e;
  text-decoration: underline;
}
.abst-element-column.abst-add-row-button {
  box-shadow: none;
  background: none;
  margin: auto;
  display: inline-block;
}
.mce-tinymce.mce-container{
 border:2px solid #ebebeb !important; 
}
.mce-tinymce.mce-container.flash {
  animation: blink-border 0.8s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes blink-border {
  0% {
    border-color: #08e740;
    box-shadow: 0 0 8px 2px #08e74044;
  }
  40% {
    border-color: #ff3c3c;
    box-shadow: 0 0 12px 4px #ff3c3c44;
  }
  60% {
    border-color: #ffe740;
    box-shadow: 0 0 12px 4px #ffe74044;
  }
  100% {
    border-color: #08e740;
    box-shadow: 0 0 8px 2px #08e74044;
  }
}


button.abst-add-row-button {
  background: #d5d5d5;
  border: #aaaaaa thin solid;
  color: #888888;
}

button.abst-add-row-button:hover {
  background: #aaaaaa;
  color: #000000;
}

.abst-magic-element-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  width: 24px;  
  height: 24px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  color: #696969;
  font-weight: bold;
  background: #ececec;
  font-size: 12px;
  padding: 0;
  border: thin solid #cccccc;
  display: inline-block;
  border-radius: 20px;
}
.abst-magic-element-remove:active {
  position: absolute;
  background-color: #381111;
  border: thin solid black;
  color: white;
}
.abst-magic-element-remove:hover {
  background-color: #ff0000;
  border: darkred;
  color: white;
}

.abst-goals-container>h5 {
  display: inline-block;
  width: calc(100% - 50px);
}

/* Hover highlight: thin line + name tab (Webflow/Figma style) */
#selector-box {
  position: absolute;
  box-sizing: border-box;
  outline: 2px solid #2271b1;
  display: none;
  pointer-events: none;
  z-index: 999999999;
}
#selector-box::after {
  content: attr(data-label);
  position: absolute;
  left: -2px;
  bottom: 100%;
  margin-bottom: 2px;
  background: #2271b1;
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
  font: 500 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#selector-box.abst-sb-nolabel::after { display: none; }
/* Enhanced Select2 Styling for Magic Bar */
.abst-page-select-container {
    position: relative;
    width: 100%;
    margin: 8px 0 15px;
    z-index: 99999 !important;
}

/* Container styles. Every select2 rule here is scoped to html.doing-abst-magic-bar: this
   file loads for editors on the frontend, where page builders (Beaver Builder, Elementor)
   run their own select2 inside modals, and a global z-index: 99999 !important pushed
   their dropdowns behind the builder settings lightbox. */
html.doing-abst-magic-bar .select2-container {
    width: 100% !important;
    min-width: 200px !important;
    z-index: 99999 !important;
}

/* Single select styles */
html.doing-abst-magic-bar .select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 36px;
    padding: 3px 0;
    outline: none;
    transition: border-color 0.15s ease-in-out;
}

/* Hover and focus states */
html.doing-abst-magic-bar .select2-container--default.select2-container--focus .select2-selection--single,
html.doing-abst-magic-bar .select2-container--default .select2-selection--single:hover {
    border-color: #999;
}

/* Selected value */
html.doing-abst-magic-bar .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 30px;
    padding-left: 12px;
    padding-right: 30px;
}

/* Dropdown arrow */
html.doing-abst-magic-bar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 6px;
    width: 24px;
}

/* Dropdown styles */
html.doing-abst-magic-bar .select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 999999 !important;
    background: #fff;
}

/* Search field in dropdown */
html.doing-abst-magic-bar .select2-search--dropdown {
    padding: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

html.doing-abst-magic-bar .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Results list */
html.doing-abst-magic-bar .select2-results__options {
    max-height: 250px;
    overflow-y: auto;
}

/* Individual result items */
html.doing-abst-magic-bar .select2-results__option {
    padding: 8px 12px !important;
    margin: 0;
    color: #333;
    transition: background-color 0.15s ease;
}

/* Hover state for items */
html.doing-abst-magic-bar .select2-results__option--highlighted[aria-selected] {
    background-color: #f0f7ff !important;
    color: #0066cc !important;
}

/* Selected item in dropdown */
html.doing-abst-magic-bar .select2-results__option[aria-selected=true] {
    background-color: #f8f9fa;
    color: #666;
}

/* Clear button */
html.doing-abst-magic-bar .select2-selection__clear {
    color: #999;
    margin-right: 20px;
    float: right;
}

/* Loading indicator */
html.doing-abst-magic-bar .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #999;
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-right: 10px;
}



body.ai-scan::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle at 50% 50%, rgba(0, 170, 255, 0.9), rgba(0, 140, 255, 0.25), transparent 80%);
  opacity: 0;
  animation: aiShimmerWave 2s cubic-bezier(0.13, 0.85, 1, 1) infinite;
  backdrop-filter: blur(3px);
  mix-blend-mode: screen;
}

#abst-selector-input{
  width: 100%;
  display: inline-block;
  border: none;
  padding:5px 10px;
  margin: 0 0 15px 0 !important;
}
@keyframes aiShimmerWave {
  0% {
    transform: translateY(100%) scale(1.05);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateY(0%) scale(1);
    opacity: 0.9;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100%) scale(1.05);
    opacity: 0;
  }
}



/* Code editor — flush with the card like the visual editor (.abst-editor):
   no radius, no outer gaps; -1px margins collapse the double borders */
.abst-html-editor {
  display: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 150px;
  padding: 10px;
  font-family: monospace;
  border: 1px solid #ddd;
  border-radius: 0;
  background-color: #fff;
  outline: none;
  margin: -1px 0 -1px 0;
}
.abst-html-editor:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

.abst-editor {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 0;
  background-color: #fff;
  outline: none;
  margin: -1px 0 -1px 0;
  overflow-y: scroll;
}
.abst-editor:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}
.abst-editor p {
  margin: 0 0 1em 0;
}
.abst-editor p:last-child {
  margin-bottom: 0;
}

.abst-editor-toolbar {
  padding: 1px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: #f5f5f5;
  border: thin solid #e1e1e1;
  border-radius: 4px 4px 0 0;
}

/* Mode badge — a labeled pill naming the editor you'd switch to (replaces the </>/eye icon) */
#abst-magic-bar .abst-editor-toolbar button[data-command="html"] {
  margin-left: auto;
  align-self: center;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px !important;
  white-space: nowrap;
}

#abst-magic-bar .abst-editor-toolbar button[data-command="html"]:hover {
  border-color: #14b8a6 !important;
  color: #0f766e !important;
}

.abst-editor-toolbar button {
  padding: 5px 10px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 3px;
}

.abst-editor-toolbar button:hover {
  background: #bdbdbd;
  border:none;
}

.abst-editor-toolbar {
  position: relative;
}

.abst-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  color: #333;
}

.abst-editor-toolbar button svg {
  display: block;
  pointer-events: none;
}

.abst-editor-toolbar button.is-active {
  background: #d5e8f7;
  color: #0b5cad;
}

/* Link popover (replaces the old prompt() dialog) */
.abst-link-popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100000;
  margin-top: 4px;
  width: 260px;
  max-width: 90vw;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  color: #222;
  text-align: left;
}

.abst-link-popover .abst-lp-label {
  font-weight: 600;
  font-size: 12px;
}

.abst-link-popover .abst-lp-url {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}

.abst-link-popover .abst-lp-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.abst-link-popover .abst-lp-check input {
  width: auto;
  margin: 0;
}

.abst-link-popover .abst-lp-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.abst-link-popover .abst-lp-actions button {
  padding: 5px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
}

.abst-link-popover .abst-lp-apply {
  background: #0b5cad;
  border-color: #0b5cad;
  color: #fff;
}

.abst-link-popover .abst-lp-remove {
  color: #b42318;
}



/* Awesomplete Styles */
.abst-page-select-container {
  position: relative;
  width: 100%;
  margin-top: 5px;
}

.abst-goal-page-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23aaa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px 16px;
  transition: all 0.2s ease;
}

.abst-goal-page-input:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
  outline: none;
}

.abst-page-search-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
}

/* Loading indicator */
.abst-goal-page-input.loading {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="16" height="16"><path fill="%23999" d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"><animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="0 50 50" to="360 50 50" repeatCount="indefinite"/></path></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

/* Awesomplete page picker — overrides the bundled default theme (creator.css)
   so the magic-mode dropdown matches the Select2 pickers used elsewhere.
   Scoped under .abst-page-select-container to win the specificity tie against
   creator.css, which is enqueued after this file. */
.abst-page-select-container .awesomplete {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    display: block;
}

/* Flat white dropdown (no gradient / speech-bubble arrow), like Select2 */
.abst-page-select-container .awesomplete > ul {
  position: absolute;
  z-index: 999999;
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  margin: 5px 0 0;
  padding: 0;
  background: #fff;
  max-height: 300px;
  overflow-y: auto;
  text-shadow: none;
  left: 0 !important; /* Force left alignment */
  top: 100% !important; /* Position below input */
}

.abst-page-select-container .awesomplete > ul:before {
  display: none; /* remove the default theme's pointer triangle */
}

/* Style for dropdown items */
.abst-page-select-container .awesomplete > ul > li {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
  position: relative;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.abst-page-select-container .awesomplete > ul > li:last-child {
  border-bottom: none;
}

/* Active row: solid blue bar with white text, matching Select2's highlight */
.abst-page-select-container .awesomplete > ul > li:hover,
.abst-page-select-container .awesomplete > ul > li[aria-selected="true"] {
  background-color: #5897fb;
  color: #fff;
}

/* Neutralise any residual <mark> highlighting from the default theme
   (the JS renderer no longer emits marks, this is just belt-and-braces) */
.abst-page-select-container .awesomplete mark,
.abst-page-select-container .awesomplete li:hover mark,
.abst-page-select-container .awesomplete li[aria-selected="true"] mark {
  background: transparent;
  color: inherit;
}

/* Loading / no-results placeholder rows carry an empty data-value.
   Render them as a centred message, never as a selectable blue bar (autoFirst
   would otherwise highlight them). Placed after the selected rule so it wins
   the specificity tie for those rows. */
.abst-page-select-container .awesomplete > ul > li[data-value=""],
.abst-page-select-container .awesomplete > ul > li[data-value=""]:hover,
.abst-page-select-container .awesomplete > ul > li[data-value=""][aria-selected="true"] {
  text-align: center;
  padding: 12px 15px;
  color: #666;
  background: #fff;
  font-style: italic;
  cursor: default;
}

/* Empty state message */
.abst-page-select-container .awesomplete > ul:empty::before {
  content: "Type to search for pages";
  display: block;
  padding: 15px;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* Ensure the container has proper stacking context */
.abst-page-select-container {
  position: relative;
  width: 100%;
  margin-top: 5px;
  z-index: 1; /* Create stacking context */
}

/* Make sure the input has a higher z-index than its container */
.abst-goal-page-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  position: relative;
  z-index: 2; /* Higher than container */
  background-color: #fff; /* Ensure background is solid */
}

/* Add this to ensure the dropdown is above any absolutely positioned elements */
#wpwrap {
  position: relative;
  z-index: 1;
}

/* =====================================================
   MODERN MAGIC BAR UI OVERHAUL
   ===================================================== */

/* Base panel styling */
.abst-magic-bar {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Tabs are hardened against theme bleed: they render inside the host page, and theme
   rules like `.some-wrapper button { border: 2px solid pink }` outrank bare class
   selectors — so every property a theme commonly sets on buttons is pinned here,
   under the #abst-magic-bar id for specificity, with !important on the paint props. */
#abst-magic-bar .abst-magic-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 8px;
  padding: 0 36px 0 0;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

#abst-magic-bar .abst-magic-tab-button {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  width: auto;
  min-height: 0;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin: 0 0 -1px 0;
  background: transparent !important;
  background-image: none !important;
  color: #94a3b8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none;
  cursor: pointer;
  outline: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#abst-magic-bar .abst-magic-tab-button:hover {
  background: transparent !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

#abst-magic-bar .abst-magic-tab-button.is-active {
  background: transparent !important;
  color: #0f766e !important;
  font-weight: 600;
  box-shadow: none !important;
  border-bottom-color: #14b8a6 !important;
}

#abst-magic-bar .abst-magic-tab-button:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: -2px;
}

.abst-magic-tab-panel {
  display: none;
}

.abst-magic-tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.abst-magic-tab-panel.is-active {
  display: flex;
  flex: 1 1 auto;
  min-height: 100%;
  flex-direction: column;
}

.abst-magic-tab-panel[hidden] {
  display: none !important;
}

.abst-magic-bar.abst-active-tab-chat .abst-magic-bar-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.abst-magic-bar.abst-active-tab-chat .abst-magic-tab-panel.is-active {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.abst-magic-bar.abst-active-tab-chat #abst-cro-chat-column {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100% - 16px);
  max-height: calc(100% - 16px);
  overflow: hidden;
}

.abst-magic-bar.abst-active-tab-chat #abst-cro-chat-container {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.abst-magic-bar.abst-active-tab-chat #abst-cro-chat-messages {
  flex: 1 1 auto !important;
  max-height: none !important;
  min-height: 240px;
  margin-bottom: 0 !important;
  overflow-y: auto !important;
}

.abst-magic-bar.abst-active-tab-chat .abst-magic-bar-footer {
  display: none !important;
}

#abst-cro-chat-footer {
  position: sticky;
  bottom: 0;
  background: #f8fafc;
  padding-top: 8px;
  margin-top: auto;
  z-index: 12;
  flex-shrink: 0;
}

#abst-cro-chat-suggestions {
  margin-bottom: 8px !important;
}

#abst-cro-chat-input-row {
  background: transparent;
  padding-top: 0;
  margin-top: 0;
}

#abst-cro-chat-column {
  margin: 8px !important;
  width: calc(100% - 16px) !important;
  border-radius: 10px !important;
}

/* Section cards */
.abst-settings-column,
.abst-goals-column {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin: 8px !important;
  padding: 12px;
  width: calc(100% - 16px);
}

/* Section headers */
.abst-settings-title,
.abst-goals-title,
.abst-element-title {
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
  margin: -12px -12px 10px -12px;
  padding: 8px 12px;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* Magic bar h4 and p labels */
#abst-magic-bar h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

#abst-magic-bar .abst-settings-column > p {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 6px 0;
}

#abst-magic-bar .magic-test-name h4 {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}



.abst-test-empty-chat-prompt {
  max-width: 520px;
  margin: 28px auto 6px;
  padding: 18px 18px 16px;
  border: 1px solid #d9e0e7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.abst-test-empty-chat-label {
  margin: 0 0 10px 0 !important;
  text-align: center;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.abst-test-empty-chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#abst-test-empty-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

#abst-test-empty-chat-send {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

#abst-test-empty-chat-send:hover {
  background: #0f9f90;
}

#abst-test-empty-chat-send:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

.abst-cro-chat-response {
  max-width: 88%;
  margin: 0 0 10px 0;
  padding: 12px 14px;
  background: #f5f5f5;
  border-radius: 16px 16px 16px 6px;
  color: #475569;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  position: relative;
}

.abst-cro-chat-response-label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12px;
}

.abst-cro-chat-response p {
  margin: 0 0 10px 0;
}

.abst-cro-chat-response p:last-child {
  margin-bottom: 0;
}

.abst-cro-chat-response--assistant {
  margin-right: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 6px;
}

.abst-cro-chat-response--user {
  margin-left: auto;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 16px 16px 6px 16px;
  color: #0f3d5f;
}

.abst-cro-chat-response--user .abst-cro-chat-response-label {
  color: #1d4ed8;
}

.abst-cro-chat-response--loading {
  margin-right: auto;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px 16px 16px 6px;
  color: #64748b;
}

.abst-cro-chat-response--error {
  margin-right: auto;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 16px 16px 16px 6px;
  color: #b91c1c;
}

.abst-cro-chat-response--error .abst-cro-chat-response-label {
  color: #991b1b;
}

.abst-cro-chat-loading-screenshot {
  margin-bottom: 8px;
}

.abst-cro-chat-heading {
  margin: 14px 0 8px 0;
  font-weight: 700;
  color: #334155;
}

.abst-cro-chat-list {
  margin: 0 0 12px 18px;
  padding: 0;
}

.abst-cro-chat-list li {
  margin: 0 0 6px 0;
}

.abst-cro-chat-rule {
  border: 0;
  border-top: 1px solid #d8dee6;
  margin: 14px 0;
}

/* Accordion headers */
.abst-settings-header {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 10px;
  margin: 5px 0;
  font-weight: 500;
  font-size: 12px;
  color: #475569;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.abst-settings-header:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  text-decoration: none;
}

.abst-settings-header:after {
  content: "−";
  font-size: 18px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1;
}

.abst-settings-header.closed:after {
  content: "+";
}

/* Modern checkboxes */
#abst-magic-bar .abst-user-role {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #374151;
}

#abst-magic-bar .abst-user-role input[type="checkbox"],
#abst-magic-bar input[type="checkbox"],
input#conversion_use_order_value {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  /* Themes pad every input (e.g. padding: 0 12px), which stretches an 18px box into a pill */
  box-sizing: border-box !important;
  padding: 0 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #fff !important;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  margin: 0 10px 0 0 !important;
  flex-shrink: 0;
  box-shadow: none !important;
}

#abst-magic-bar .abst-user-role input[type="checkbox"]:checked,
#abst-magic-bar input[type="checkbox"]:checked,
input#conversion_use_order_value:checked {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

#abst-magic-bar .abst-user-role input[type="checkbox"]:checked::after,
#abst-magic-bar input[type="checkbox"]:checked::after,
input#conversion_use_order_value:checked::after {
  content: "" !important;
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#abst-magic-bar .abst-user-role input[type="checkbox"]:hover,
#abst-magic-bar input[type="checkbox"]:hover,
input#conversion_use_order_value:hover {
  border-color: #3b82f6 !important;
}

/* Form inputs */
#abst-magic-bar input[type="text"],
#abst-magic-bar input[type="number"],
#abst-magic-bar textarea:not(.wp-editor-area),
#abst-magic-bar select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
  transition: all 0.15s ease;
  box-shadow: none;
  margin: 4px 0 8px 0;
}

#abst-magic-bar input[type="text"]:focus,
#abst-magic-bar input[type="number"]:focus,
#abst-magic-bar textarea:focus:not(.wp-editor-area),
#abst-magic-bar select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Select dropdowns */
#abst-magic-bar select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Labels */
#abst-magic-bar label {
  font-weight: 500;
  font-size: 13px;
  color: #374151;
  margin-bottom: 4px;
}

#abst-magic-bar .abst-url-help {
  margin-top: 8px;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

#abst-magic-bar .abst-url-help code {
  color: #6b7280;
  background: #f8fafc;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
}

/* Primary button (Start Test) — see .abst-magic-bar-footer above */

/* Secondary buttons */
#abst-magic-bar .abst-add-goal-button,
#imageSelector {
  background: #1e293b !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  transition: all 0.15s ease;
}

#abst-magic-bar .abst-add-goal-button:hover,
#imageSelector:hover {
  background: #334155 !important;
  transform: translateY(-1px);
}

#variation-editor-container #imageSelector {
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155 !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin: 10px 12px 0;
  padding: 8px 12px;
  text-transform: none;
  transform: none;
}

#variation-editor-container #imageSelector:hover {
  background: #f8fafc !important;
  border-color: #94a3b8;
  transform: none;
}

/* Goals container */
.abst-goals-container {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  overflow: visible;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.abst-goals-container.is-active {
  border-color: #4a97ca;
  box-shadow: 0 0 0 1px rgba(20, 184, 184, 0.08);
}

.abst-goal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -12px -12px 12px -12px;
  padding: 10px 12px;
  background: #f6f7f9;
  border-bottom: 1px solid #e3e7ec;
  /* The negative margins pull this flush with the card edges — round the top corners to
     match the container's 10px radius or the square grey fill pokes past the border. */
  border-radius: 9px 9px 0 0;
}

.abst-goal-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* Goal type select */
select.goal-type,
.abst-goal-page-input,
#abst-device-size {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background: #ffffff;
  color: #1f2937;
  margin-bottom: 12px;
}

/* Remove goal button */
.remove-goal {
  background: transparent;
  border: none;
  color: #9ca3af;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  transition: color 0.15s ease;
  cursor: pointer;
}

.remove-goal:hover {
    color: #c50000;
    background: white;
}

.goal-value-label {
  margin: 0 0 10px 0;
  padding: 0;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.55;
}

.abst-goals-container .abst-goal-input-value {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  min-height: 44px;
  margin: 0;
}

/* Draft-backed conversion class / JS snippet shown for block & javascript goals */
.abst-goals-container .abst-conversion-snippet {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 4px;
}

.abst-goals-container .abst-conversion-snippet-value {
  flex: 1 1 auto;
  width: 100%;
  font-family: Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
  box-sizing: border-box;
}

.abst-goals-container .abst-conversion-snippet-copy {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  padding: 7px 12px;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.abst-goals-container .abst-conversion-snippet-copy:hover {
  background: #f1f5f9;
}

.abst-button-container {
  margin-top: 10px;
}

#abst-magic-bar .abst-add-goal-button {
  width: 100%;
  background: transparent !important;
  color: #6b7280 !important;
  border: 1px dashed #cfd6de !important;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: none;
}

#abst-magic-bar .abst-add-goal-button:hover {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #bfc8d3 !important;
  transform: none;
}



/* Underpowered badge: shown next to confidence when test hasn't reached 95% */
.abst-underpowered-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  vertical-align: middle;
}

ul#ai-suggestions-list li {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  padding: 9px 10px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

ul#ai-suggestions-list li:hover {
  border-color: #84bcfb;
  box-shadow: 0 4px 12px rgba(70, 90, 150, 0.15);
}

.ai-suggestion-copy {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
}

.ai-suggestion-style {
  color: #3b82f6;
  font-size: 9px;
  font-weight: 600;
  padding: 0;
  border-radius: 20px;
  margin-bottom: 4px;
}

/* AI Suggestion text */
.ai-suggestion-text {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.35;
  display: block;
  margin-bottom: 4px;
}

/* AI Suggestion action buttons */
.ai-suggestion-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
}

.ai-suggestion-actions button {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid;
  line-height: 1.2;
}

.ai-add-variation {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0 !important;
}

.ai-add-variation:hover {
  background: #d1fae5;
  border-color: #6ee7b7 !important;
}

.ai-replace-current {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #bfdbfe !important;
}

.ai-replace-current:hover {
  background: #dbeafe;
  border-color: #93c5fd !important;
}

/* Generate More button */
.ai-generate-more-btn {
  display: block;
  margin: 10px auto 2px;
  padding: 7px 14px;
  background: rgb(160, 160, 160);
  color: #fff;
  border: none;
  border-radius: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-generate-more-btn:hover,.ai-generate-more-btn:focus {
  transform: translateY(-1px);
  border:none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-generate-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}




/* Test name input */
.abst-magic-bar-title {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
}

.abst-magic-bar-title:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Variation picker */
#variation-picker {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: #fff;
}





/* Editor area */
.abst-editor {
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0;
  padding: 12px;
  min-height: 120px;
}

/* Selector input */
#abst-selector-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 12px;
  color: #475569;
}

/* Winning mode section */
.winning-mode select {
  width: 100%;
}

/* Help text styling */
.abst-settings-column small,
.abst-goals-column small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

/* Scrollbar styling */
.abst-magic-bar::-webkit-scrollbar {
  width: 6px;
}

.abst-magic-bar::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.abst-magic-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.abst-magic-bar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Consistent checkbox styling for user roles */
.abst-user-role {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-right: 0;
  margin-bottom: 8px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  color: #475569;
}

.abst-user-role input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #2d7be5;
}

.abst-user-role span {
  flex: 1 1 auto;
}

.abst-user-role:hover {
  border-color: #c7d0db;
  background-color: #f9fafb;
}

.abst-user-role.is-checked {
  border-color: #bfd8f5;
  background-color: #f4f8ff;
  color: #334155;
}

/* ============================================
   Magic Hide / Move element actions
   ============================================ */

/* These overlay controls live on <body>; block text-selection/native drag so they
   can't be dragged out of place (which would synthesize a click on the wrong target). */
.abst-element-actions,
.abst-element-actions button,
.abst-variation-marker,
.abst-variation-marker button {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* CRO-assist "add a new element" suggestion card (create-after handoff) — teal to match the
   ChatCRO suggestion surface. */
.abst-create-after-suggestion {
  border: 1px solid #99f6e4;
  border-left: 3px solid #14b8a6;
  background: #f0fdfa;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 10px 0;
  color: #0f172a;
}
.abst-create-after-suggestion .abst-cas-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.abst-create-after-suggestion .abst-cas-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 2px 8px;
}
.abst-create-after-suggestion .abst-cas-title {
  font-size: 13px;
  font-weight: 600;
}
.abst-create-after-suggestion .abst-cas-desc {
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
}
.abst-create-after-suggestion .abst-cas-desc code {
  background: #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}
.abst-create-after-suggestion .abst-cas-code {
  max-height: 140px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 10px 0;
  color: #334155;
}
/* Rendered (not raw-code) preview of the suggested element — click it to place */
.abst-create-after-suggestion .abst-cas-preview {
  max-height: 180px;
  overflow: auto;
  background: #ffffff;
  border: 1px dashed #14b8a6;
  border-radius: 6px;
  padding: 10px;
  margin: 0 0 10px 0;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.abst-create-after-suggestion .abst-cas-preview:hover {
  border-color: #0f9f90;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15);
}
.abst-create-after-suggestion .abst-cas-preview-hint {
  font-size: 11px;
  color: #0f766e;
  margin: -4px 0 8px 0;
}
.abst-create-after-suggestion .abst-cas-actions {
  display: flex;
  gap: 8px;
}
.abst-create-after-suggestion .abst-cas-apply {
  border: none;
  background: #14b8a6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}
.abst-create-after-suggestion .abst-cas-apply:hover {
  background: #0f9f90;
}
.abst-create-after-suggestion .abst-cas-dismiss {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}
.abst-create-after-suggestion .abst-cas-dismiss:hover {
  background: #f1f5f9;
}

/* A freshly-created element while authoring in the Magic editor — subtle outline only. The
   abst-variation class is editor-only, so the live visitor page shows the author's markup with
   no plugin styling. */
.abst-created-block.abst-variation {
  outline: 1px dashed #14b8a6;
  outline-offset: 2px;
}

/* Add-element placement mode: a ghost preview follows the cursor showing where the new element
   will land. Blank = neutral gray box; with CRO-assist HTML = the actual section in a teal dotted
   box. */
body.abst-add-mode, body.abst-add-mode * { cursor: copy !important; }
body.abst-add-mode #abst-magic-bar, body.abst-add-mode #abst-magic-bar * { cursor: auto !important; }
.abst-create-preview {
  box-sizing: border-box;
  min-height: 32px;
  margin: 4px 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
.abst-create-preview-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: #eef2f7;
  border: 2px dashed #9aa7b4;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.abst-create-preview-html {
  padding: 8px;
  border: 2px dashed #14b8a6;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.06);
}
/* The created block dims while it is being repositioned (its ghost is the focus). */
.abst-create-repositioning {
  opacity: 0.4 !important;
}

.abst-hidden-placeholder {
  display: block;
  padding: 4px 12px;
  margin: 2px 0;
  background: #eceff3;
  border: 1px dashed #b6bfc9;
  border-radius: 4px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.abst-hidden-placeholder:hover {
  background: #e2e7ed;
  color: #475569;
}

.abst-move-preview {
  outline: 3px solid #2271b1 !important;
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(34, 113, 177, 0.45) !important;
  background-color: rgba(34, 113, 177, 0.06);
}

.abst-move-hint {
  position: fixed;
  top: 46px;
  left: 32.5%; /* centered over the squeezed site area (magic bar takes right 35%) */
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
  z-index: 999999;
  pointer-events: none;
}

/* CROAssist suggested-location affordances: clickable anchor in the suggestion card,
   flash highlight on the page, and the post-placement Reposition/Keep toast */
.abst-cro-chat-suggestion .abst-cas-anchor {
  cursor: pointer;
  text-decoration: underline dotted;
}

.abst-cro-anchor-flash {
  outline: 3px solid #14b8a6 !important;
  outline-offset: 3px;
}

.abst-create-placed-hint {
  position: fixed;
  top: 46px;
  left: 32.5%; /* centered over the squeezed site area, same as .abst-move-hint */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 60%;
  background: #1e293b;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 10px 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
  z-index: 999999;
}

.abst-create-placed-hint code {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  word-break: break-all;
}

.abst-create-placed-hint button {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  padding: 4px 12px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.4;
}

.abst-create-placed-hint .abst-cph-reposition {
  background: #14b8a6;
  color: #ffffff;
}

.abst-create-placed-hint .abst-cph-reposition:hover {
  background: #0d9488;
}

.abst-create-placed-hint .abst-cph-keep {
  background: transparent;
  color: #cbd5e1;
  border-color: #475569;
}

.abst-create-placed-hint .abst-cph-keep:hover {
  color: #ffffff;
  border-color: #94a3b8;
}

body.abst-move-mode,
body.abst-move-mode * {
  cursor: crosshair !important;
}

.abst-move-anchor {
  display: none !important;
}

/* Hide/move controls in the version row */
.abst-version-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.abst-version-action {
  font-size: 11px;
  color: #64748b;
  text-decoration: underline dotted;
  cursor: pointer;
  white-space: nowrap;
}

.abst-version-action:hover {
  color: #1d4ed8;
}

.abst-version-action.is-active {
  color: #b91c1c;
  font-weight: 600;
}

.abst-version-action.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
  font-weight: 400;
}

#abst-move-target-input {
  width: 150px;
  font-size: 11px;
  padding: 2px 6px;
  height: 22px;
  border: 1px solid #d6dde5;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
}

/* ==========================================================================
   MAGIC BAR REFRESH (2026-09)
   One type scale, one accent, flat cards. Scoped to #abst-magic-bar so page
   styles can't leak in; !important only where the bar's markup has inline styles.
   ========================================================================== */
/* Every block in the bar is width: 100% plus padding. Sites outside WordPress (and themes
   without a global border-box reset) use content-box, which pushed each block past the
   bar's right edge, where overflow-x: hidden cut it off. */
#abst-magic-bar, #abst-magic-bar *, #abst-magic-bar *::before, #abst-magic-bar *::after { box-sizing: border-box; }
/* AI switched off (abst_disable_ai, and always in AB Split Test Cloud): no ChatCRO or AI suggestions. */
#abst-magic-bar .abst-ai-off-only { display: none; }
#abst-magic-bar.abst-ai-off .abst-ai-off-only { display: inline; }
#abst-magic-bar.abst-ai-off .abst-ai-on-only,
#abst-magic-bar.abst-ai-off #abst-magic-tab-chat,
#abst-magic-bar.abst-ai-off #abst-magic-panel-chat,
#abst-magic-bar.abst-ai-off .abst-test-empty-chat-prompt,
#abst-magic-bar.abst-ai-off #ai-suggestions { display: none !important; }
#abst-magic-bar {
  --abst-mb-ink: #1e293b;
  --abst-mb-text: #334155;
  --abst-mb-muted: #64748b;
  --abst-mb-line: #e2e8f0;
  --abst-mb-soft: #f8fafc;
  --abst-mb-accent: #2271b1;
  --abst-mb-accent-ink: #135e96;
  --abst-mb-accent-soft: #f0f6fc;
  --abst-mb-radius: 8px;
  font: 400 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--abst-mb-text) !important;
  background: #fff;
  border-left: 1px solid var(--abst-mb-line);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.10);
}
/* No admin bar (logged-out demo, external editor): use the full height */
body:not(.admin-bar) #abst-magic-bar { top: 0; height: 100% !important; }
#abst-magic-bar h1, #abst-magic-bar h2, #abst-magic-bar h3, #abst-magic-bar h4,
#abst-magic-bar input, #abst-magic-bar select, #abst-magic-bar textarea, #abst-magic-bar button {
  font-family: inherit !important;
  letter-spacing: normal;
  text-transform: none;
}
#abst-magic-bar .abst-magic-bar-container { display: flex; flex-direction: column; min-height: 100%; }
/* The base styles make each section a card: width calc(100% - 16px) + 8px margins. The refresh
   drops the margins, so the width has to follow or every section stops 16px short. */
#abst-magic-bar .abst-settings-column, #abst-magic-bar .abst-goals-column { margin: 0 !important; width: 100% !important; box-shadow: none; }

/* Header: title + tour, the close button sits top-right */
#abst-magic-bar .abst-magic-bar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 52px 12px 18px;
  border-bottom: 1px solid var(--abst-mb-line);
}
#abst-magic-bar .abst-magic-bar-heading { font-size: 15px; font-weight: 600; color: var(--abst-mb-ink); }
#abst-magic-bar .abst-magic-tour-button {
  padding: 4px 10px; min-height: 0;
  border: 1px solid var(--abst-mb-line) !important; border-radius: 999px; background: #fff !important;
  color: var(--abst-mb-muted) !important; font-size: 12px !important; font-weight: 500; line-height: 1.4; box-shadow: none;
}
#abst-magic-bar .abst-magic-tour-button:hover { color: var(--abst-mb-accent) !important; border-color: var(--abst-mb-accent) !important; }
#abst-magic-bar .abst-magic-bar-close {
  top: 10px; right: 10px; width: 32px; height: 32px; line-height: 30px;
  border-radius: 6px; color: var(--abst-mb-muted); font-size: 22px; background: transparent;
}
#abst-magic-bar .abst-magic-bar-close:hover { background: var(--abst-mb-soft); color: var(--abst-mb-ink); }

/* Tabs */
#abst-magic-bar .abst-magic-tabs { margin: 0; padding: 0 18px; gap: 20px; border-bottom: 1px solid var(--abst-mb-line); background: #fff; }
#abst-magic-bar .abst-magic-tab-button {
  flex: 0 0 auto; padding: 11px 0 10px; margin-bottom: -1px;
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0;
  background: none !important; color: var(--abst-mb-muted) !important; font-size: 13px !important; font-weight: 500;
}
#abst-magic-bar .abst-magic-tab-button:hover { color: var(--abst-mb-ink) !important; }
#abst-magic-bar .abst-magic-tab-button.is-active { color: var(--abst-mb-ink) !important; border-bottom-color: var(--abst-mb-accent) !important; font-weight: 600; }
#abst-magic-bar .abst-magic-tab-panels { flex: 1; }

/* Empty state */
#abst-magic-bar .click-to-start-help { padding: 28px 22px !important; text-align: left; }
#abst-magic-bar .click-to-start-help h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--abst-mb-ink); }
#abst-magic-bar .click-to-start-help p { margin: 0; font-size: 13px; color: var(--abst-mb-text); }
#abst-magic-bar .click-to-start-help #abst-start-add-element { color: var(--abst-mb-accent) !important; text-decoration-color: currentColor !important; }
#abst-magic-bar .abst-test-empty-chat-prompt {
  margin-top: 18px; padding: 14px; border: 1px solid var(--abst-mb-line); border-radius: var(--abst-mb-radius);
  background: var(--abst-mb-soft); box-shadow: none; text-align: left;
}
#abst-magic-bar .abst-test-empty-chat-label { text-align: left !important; margin: 0 0 8px !important; font-size: 12px !important; font-weight: 600; color: var(--abst-mb-ink) !important; }
#abst-magic-bar .abst-test-empty-chat-row { display: flex; gap: 8px; }

/* Sections */
#abst-magic-bar .magic-test-name,
#abst-magic-bar #abst-version-bar,
#abst-magic-bar #variation-editor-container,
#abst-magic-bar .abst-goals-column,
#abst-magic-bar .abst-targeting-settings,
#abst-magic-bar .winning-mode {
  margin: 0 !important; padding: 14px 18px !important;
  border: 0 !important; border-bottom: 1px solid var(--abst-mb-line) !important; border-radius: 0 !important;
  background: #fff !important; box-shadow: none !important;
}
#abst-magic-bar .magic-test-name label,
#abst-magic-bar .abst-goals-title,
#abst-magic-bar .abst-settings-title {
  font-size: 11px !important; font-weight: 600 !important; letter-spacing: .04em !important; text-transform: uppercase !important;
  color: var(--abst-mb-muted) !important;
}
#abst-magic-bar .abst-version-value { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; }
#abst-magic-bar .abst-version-prefix { color: var(--abst-mb-muted); }
#abst-magic-bar .abst-version-toggle {
  padding: 3px 10px; border: 0 !important; border-radius: 999px; background: var(--abst-mb-accent-soft) !important;
  color: var(--abst-mb-accent-ink) !important; font-weight: 600; text-decoration: none !important;
}
#abst-magic-bar .abst-version-swap { border: 0 !important; background: none !important; color: var(--abst-mb-muted) !important; }
#abst-magic-bar .abst-version-actions { margin-left: auto; }
#abst-magic-bar .abst-version-action { color: var(--abst-mb-accent) !important; font-size: 12px; text-decoration: none !important; }
#abst-magic-bar .abst-version-action:hover { text-decoration: underline !important; }

#abst-magic-bar #variation-editor-container > .abst-goals-title { justify-content: flex-start !important; margin-bottom: 8px; }
#abst-magic-bar #abst-selector-input {
  text-align: left !important; color: var(--abst-mb-muted) !important; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  height: 28px !important; padding: 0 8px !important; border: 1px solid var(--abst-mb-line) !important; border-radius: 6px !important; background: var(--abst-mb-soft) !important;
}
#abst-magic-bar .abst-element-actions-row { margin: 6px 0 8px; text-align: right; }

/* Rich text editor as one card: #abst-variation-editor holds the toolbar + editable area */
#abst-magic-bar #abst-variation-editor {
  padding: 0 !important; border: 1px solid #cbd5e1; border-radius: var(--abst-mb-radius); overflow: hidden; background: #fff;
}
#abst-magic-bar #abst-variation-editor:focus-within { border-color: var(--abst-mb-accent); box-shadow: 0 0 0 1px var(--abst-mb-accent); }
#abst-magic-bar .abst-editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 4px 6px;
  border: 0 !important; border-bottom: 1px solid var(--abst-mb-line) !important; border-radius: 0; background: var(--abst-mb-soft);
}
#abst-magic-bar .abst-editor-toolbar button {
  min-width: 28px; height: 28px; padding: 0 7px; margin: 0;
  border: 0 !important; border-radius: 5px; background: transparent !important;
  color: var(--abst-mb-text) !important; font-size: 13px !important; line-height: 28px; box-shadow: none !important;
}
#abst-magic-bar .abst-editor-toolbar button:hover, #abst-magic-bar .abst-editor-toolbar button.is-active { background: #fff !important; color: var(--abst-mb-ink) !important; }
#abst-magic-bar .abst-editor-toolbar button[data-command="html"] {
  margin-left: auto; height: 26px; line-height: 24px; font-size: 12px !important;
  border: 1px solid var(--abst-mb-line) !important; background: #fff !important;
}
#abst-magic-bar #abst-variation-editor-container {
  min-height: 110px; padding: 12px 14px !important; border: 0 !important; background: #fff;
  color: var(--abst-mb-ink); font-size: 14px; line-height: 1.5; outline: none;
  /* Only scroll when there is something to scroll: a permanent scrollbar track
     down an empty editor reads as a broken box. */
  max-height: 340px; overflow-y: auto !important;
}

/* Code editor. The bar styles every textarea as a form field (6px radius, 34px
   min-height, 4/8px outer margins), which drops a small rounded input inside the
   editor card and leaves a frame around a frame. It is the same surface as the
   visual editor, so it fills the card the same way: flush, square, no border of
   its own (the card has one) and tall enough to read markup in. */
#abst-magic-bar #abst-variation-editor textarea.abst-html-editor {
  min-height: 190px !important; max-height: 60vh;
  margin: 0 !important; padding: 12px 14px !important;
  border: 0 !important; border-radius: 0 !important;
  background: #fff !important; color: var(--abst-mb-ink) !important;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important;
  resize: vertical; tab-size: 2; white-space: pre-wrap; word-break: break-word;
}
/* One ring around the whole card instead of a second one inside it. */
#abst-magic-bar #abst-variation-editor textarea.abst-html-editor:focus,
#abst-magic-bar #abst-variation-editor #abst-variation-editor-container:focus {
  border: 0 !important; box-shadow: none !important; outline: none !important;
}
#abst-magic-bar #abst-variation-editor:focus-within {
  border-color: var(--abst-mb-accent) !important;
  box-shadow: 0 0 0 1px var(--abst-mb-accent);
}
/* Parse warning, when the HTML cannot be previewed yet: part of the card, not a
   floating box. Hidden entirely while empty. */
#abst-magic-bar #abst-html-error {
  margin: 0; padding: 8px 14px; border-top: 1px solid var(--abst-mb-line);
  background: #fffbeb; color: #92400e; font-size: 12px; line-height: 1.45;
}
#abst-magic-bar #abst-html-error:empty { display: none; }

/* AI suggestions */
#abst-magic-bar #ai-suggestions { margin-top: 12px; border: 1px solid var(--abst-mb-line); border-radius: var(--abst-mb-radius); overflow: hidden; background: #fff; }
#abst-magic-bar .abst-ai-suggestions-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border: 0 !important; border-radius: 0; background: var(--abst-mb-soft) !important; color: var(--abst-mb-ink) !important; font-weight: 600; font-size: 13px !important;
}
#abst-magic-bar .abst-ai-suggestions-count { background: var(--abst-mb-accent) !important; color: #fff !important; }
#abst-magic-bar .abst-ai-suggestions-hint { margin: 10px 12px 4px; font-size: 12px; color: var(--abst-mb-muted); }
#abst-magic-bar #ai-suggestions-list { margin: 0; padding: 4px 12px 12px; list-style: none; }
#abst-magic-bar .ai-suggestion-item {
  margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--abst-mb-line) !important; border-radius: var(--abst-mb-radius);
  background: #fff !important; box-shadow: none !important;
}
#abst-magic-bar .ai-suggestion-item:hover { border-color: #cbd5e1 !important; }
#abst-magic-bar .ai-suggestion-style { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--abst-mb-muted) !important; }
#abst-magic-bar .ai-suggestion-text { display: block; color: var(--abst-mb-ink); font-size: 13px; line-height: 1.45; }
#abst-magic-bar .ai-suggestion-actions { display: flex; gap: 6px; margin-top: 8px; }
#abst-magic-bar .ai-suggestion-actions button {
  padding: 4px 9px; border: 1px solid var(--abst-mb-line) !important; border-radius: 6px; background: #fff !important;
  color: var(--abst-mb-accent) !important; font-size: 12px !important; font-weight: 500;
}
#abst-magic-bar .ai-suggestion-actions button:hover { border-color: var(--abst-mb-accent) !important; background: var(--abst-mb-accent-soft) !important; }

#abst-magic-bar #ai-generate-more {
  display: block; margin: 4px 12px 12px; padding: 7px 12px; width: calc(100% - 24px);
  border: 1px dashed #cbd5e1 !important; border-radius: 6px; background: #fff !important; background-image: none !important;
  color: var(--abst-mb-accent) !important; font-size: 12px !important; font-weight: 500; text-shadow: none; box-shadow: none !important;
}
#abst-magic-bar #ai-generate-more:hover { border-color: var(--abst-mb-accent) !important; background: var(--abst-mb-accent-soft) !important; }

/* Targeting + goals */
#abst-magic-bar #abst-targeting-button { margin: 0; padding: 12px 18px; background: #fff; border: 0; border-bottom: 1px solid var(--abst-mb-line); border-radius: 0; font-size: 12px; color: var(--abst-mb-muted); }
#abst-magic-bar #abst-show-targeting { color: var(--abst-mb-accent) !important; font-weight: 500; }
#abst-magic-bar .abst-settings-header { padding: 9px 0; border-bottom: 1px solid var(--abst-mb-line); color: var(--abst-mb-ink); font-weight: 500; }
/* No display here: the base rule hides .winning-mode until an element is selected (then jQuery shows it) */
#abst-magic-bar .winning-mode p { display: inline-block; margin: 0 10px 0 0; vertical-align: middle; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--abst-mb-muted); white-space: nowrap; }
#abst-magic-bar .winning-mode select { display: inline-block; width: calc(100% - 130px); vertical-align: middle; }
#abst-magic-bar .abst-goals-container {
  margin: 8px 0 0; padding: 12px; border: 1px solid var(--abst-mb-line) !important; border-radius: var(--abst-mb-radius) !important;
  background: var(--abst-mb-soft) !important; box-shadow: none !important;
}
#abst-magic-bar .abst-goal-card-title { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--abst-mb-ink); }
#abst-magic-bar .abst-button-container { margin-top: 10px; }
#abst-magic-bar .abst-add-goal-button {
  padding: 6px 12px; border: 1px dashed #cbd5e1 !important; border-radius: 6px; background: #fff !important;
  color: var(--abst-mb-accent) !important; font-size: 12px !important; font-weight: 500; box-shadow: none !important;
}

/* Inputs */
#abst-magic-bar input[type="text"], #abst-magic-bar input[type="number"], #abst-magic-bar select, #abst-magic-bar textarea:not(.wp-editor-area) {
  min-height: 34px; padding: 6px 10px; border: 1px solid #cbd5e1 !important; border-radius: 6px !important;
  background: #fff; color: var(--abst-mb-ink) !important; font-size: 13px !important; box-shadow: none;
}
#abst-magic-bar input:focus, #abst-magic-bar select:focus, #abst-magic-bar textarea:focus {
  border-color: var(--abst-mb-accent) !important; box-shadow: 0 0 0 1px var(--abst-mb-accent) !important; outline: none;
}

/* One primary action colour everywhere */
#abst-magic-bar #abst-test-empty-chat-send,
#abst-magic-bar #abst-cro-chat-send,
#abst-magic-bar button#abst-magic-bar-start {
  background: var(--abst-mb-accent) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important;
  font-weight: 600 !important; box-shadow: none !important;
}
#abst-magic-bar #abst-test-empty-chat-send:hover,
#abst-magic-bar #abst-cro-chat-send:hover,
#abst-magic-bar button#abst-magic-bar-start:hover { background: var(--abst-mb-accent-ink) !important; }
#abst-magic-bar #abst-test-empty-chat-send, #abst-magic-bar #abst-cro-chat-send { padding: 0 14px !important; min-height: 34px; font-size: 13px !important; white-space: nowrap; }
#abst-magic-bar .abst-magic-bar-footer { padding: 12px 18px; border-top: 1px solid var(--abst-mb-line); box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04); }
#abst-magic-bar button#abst-magic-bar-start, #abst-magic-bar button#abst-magic-bar-save-draft { min-height: 40px; font-size: 14px !important; }
#abst-magic-bar button#abst-magic-bar-save-draft {
  background: #fff !important; color: var(--abst-mb-ink) !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; box-shadow: none !important;
}
#abst-magic-bar button#abst-magic-bar-save-draft:hover { background: var(--abst-mb-soft) !important; }

/* ChatCRO panel (markup carries inline styles) */
#abst-magic-bar #abst-cro-chat-column { margin: 0 !important; width: 100% !important; padding: 16px 18px !important; background: #fff !important; border: 0 !important; }
#abst-magic-bar #abst-cro-chat-container { min-height: calc(100vh - 170px); }
#abst-magic-bar #abst-cro-chat-container > h4 { display: none; }
#abst-magic-bar #abst-cro-chat-messages {
  max-height: none !important; padding: 0 !important; border: 0 !important; background: none !important;
  font-size: 13px !important; color: var(--abst-mb-text) !important;
}
#abst-magic-bar .abst-cro-chat-response { margin: 0 0 10px; padding: 10px 12px; border: 0 !important; border-radius: 12px; background: var(--abst-mb-soft) !important; box-shadow: none !important; }
#abst-magic-bar .abst-cro-chat-response-label { display: none; }
#abst-magic-bar .abst-cro-chat-response--user { margin-left: 18%; background: var(--abst-mb-accent) !important; color: #fff !important; border-bottom-right-radius: 4px; }
#abst-magic-bar .abst-cro-chat-response--assistant { margin-right: 6%; border-bottom-left-radius: 4px; }
#abst-magic-bar .abst-cro-chat-response--error { background: #fef2f2 !important; color: #991b1b !important; }
#abst-magic-bar .abst-cro-chat-response--error .abst-cro-chat-response-label { display: inline; }
#abst-magic-bar .abst-cro-chat-response p { margin: 0 0 6px; }
#abst-magic-bar .abst-cro-chat-response p:last-child { margin-bottom: 0; }
#abst-magic-bar #abst-cro-chat-footer { position: sticky; bottom: 0; padding-top: 10px; background: #fff; }
#abst-magic-bar #abst-cro-chat-input { padding: 8px 12px !important; font-size: 13px !important; }
#abst-magic-bar #abst-cro-chat-suggestions { background: var(--abst-mb-accent-soft) !important; border-color: #c5d9ed !important; border-radius: var(--abst-mb-radius) !important; }
#abst-magic-bar #abst-cro-chat-suggestions p { color: var(--abst-mb-accent-ink) !important; }

@media (max-width: 782px) {
  body.admin-bar #abst-magic-bar { top: 46px; height: calc(100% - 46px) !important; }
}

/* Magic bar walkthrough (driver.js) */
html.abst-magic-touring .driver-overlay { z-index: 2147483645 !important; }
.driver-popover.abst-magic-tour {
  z-index: 2147483646; max-width: 300px; padding: 14px 16px; border-radius: 10px;
  background: #fff; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.driver-popover.abst-magic-tour .driver-popover-title { padding-right: 20px; font-size: 15px; font-weight: 600; color: #1e293b; }
/* Close button: themes style every <button> (filled, padded, in flow), so pin it all down */
.driver-popover.abst-magic-tour button.driver-popover-close-btn {
  position: absolute !important; top: 8px !important; right: 8px !important; left: auto !important; bottom: auto !important;
  display: flex !important; align-items: center; justify-content: center;
  width: 28px !important; height: 28px !important; min-width: 0 !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important;
  background: transparent !important; box-shadow: none !important; text-shadow: none !important; outline: none !important;
  color: #94a3b8 !important; font: 400 20px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important;
  cursor: pointer; transition: background-color .15s, color .15s;
}
/* driver.js focuses this button on every step, so focus gets the hover look, not a ring */
.driver-popover.abst-magic-tour button.driver-popover-close-btn:hover,
.driver-popover.abst-magic-tour button.driver-popover-close-btn:focus-visible { background: #f1f5f9 !important; color: #1e293b !important; }
.driver-popover.abst-magic-tour .driver-popover-description { color: #334155; font-size: 13px; line-height: 1.5; }
.driver-popover.abst-magic-tour .driver-popover-progress-text { font-size: 11px; color: #94a3b8; }
.driver-popover.abst-magic-tour .driver-popover-navigation-btns button + button { margin-left: 6px; }
.driver-popover.abst-magic-tour button.driver-popover-footer-btn {
  padding: 7px 14px; border: 1px solid #2271b1; border-radius: 6px; background: #2271b1; color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.3; text-shadow: none;
}
.driver-popover.abst-magic-tour button.driver-popover-footer-btn:hover,
.driver-popover.abst-magic-tour button.driver-popover-footer-btn:focus { background: #135e96; border-color: #135e96; color: #fff; }
.driver-popover.abst-magic-tour button.driver-popover-prev-btn { background: #fff; border-color: #cbd5e1; color: #334155; }
.driver-popover.abst-magic-tour button.driver-popover-prev-btn:hover,
.driver-popover.abst-magic-tour button.driver-popover-prev-btn:focus { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }

/* Element breadcrumb chips (selected element + parents) */
#abst-magic-bar .abst-selector-row.has-crumbs #abst-selector-input { display: none !important; }
#abst-magic-bar .abst-selector-crumbs { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
#abst-magic-bar .abst-crumb {
  max-width: 100%; padding: 3px 9px; min-height: 0; border: 1px solid var(--abst-mb-line) !important; border-radius: 999px;
  background: var(--abst-mb-soft) !important; color: var(--abst-mb-muted) !important; box-shadow: none !important;
  font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
#abst-magic-bar .abst-crumb:hover, #abst-magic-bar .abst-crumb:focus-visible { border-color: var(--abst-mb-accent) !important; color: var(--abst-mb-accent) !important; background: #fff !important; }
#abst-magic-bar .abst-crumb.is-current { background: var(--abst-mb-accent) !important; border-color: var(--abst-mb-accent) !important; color: #fff !important; cursor: default; }
#abst-magic-bar .abst-crumb-edit { padding: 3px 7px; font-family: inherit !important; }
#abst-magic-bar .abst-crumb-sep { color: #cbd5e1; font-size: 12px; }
.abst-crumb-preview { outline: 2px dashed #2271b1 !important; outline-offset: 2px; }

/* ChatCRO test cards (inside the assistant reply) */
#abst-magic-bar .abst-cro-card { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--abst-mb-line); border-radius: var(--abst-mb-radius); background: #fff; }
#abst-magic-bar .abst-cro-card:hover { border-color: #cbd5e1; }
#abst-magic-bar .abst-cro-card-head { display: flex; flex-direction: column; gap: 1px; }
#abst-magic-bar .abst-cro-card-head strong { font-size: 13px; font-weight: 600; color: var(--abst-mb-ink); }
#abst-magic-bar .abst-cro-card-title {
  align-self: flex-start; padding: 0; min-height: 0; border: 0 !important; background: none !important; box-shadow: none !important;
  color: var(--abst-mb-ink) !important; font-size: 13px !important; font-weight: 600; text-align: left; cursor: pointer;
}
#abst-magic-bar .abst-cro-card-title::after { content: " \2197"; font-weight: 400; color: var(--abst-mb-muted); }
#abst-magic-bar .abst-cro-card-title:hover { color: var(--abst-mb-accent) !important; text-decoration: underline; text-underline-offset: 3px; }
#abst-magic-bar .abst-cro-card-now { font-size: 12px; color: var(--abst-mb-muted); }
#abst-magic-bar .abst-cro-card-why { margin: 6px 0 0 !important; font-size: 12px; line-height: 1.45; color: var(--abst-mb-text); }
#abst-magic-bar .abst-cro-card-vars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#abst-magic-bar .abst-cro-card-var {
  display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 7px 9px; min-height: 0;
  border: 1px solid var(--abst-mb-line) !important; border-radius: 6px; background: var(--abst-mb-soft) !important;
  color: var(--abst-mb-ink) !important; font-size: 13px !important; font-weight: 400; line-height: 1.4; text-align: left; box-shadow: none !important; cursor: pointer;
}
#abst-magic-bar .abst-cro-card-var:hover { border-color: var(--abst-mb-accent) !important; background: var(--abst-mb-accent-soft) !important; }
#abst-magic-bar .abst-cro-card-var-text { flex: 1; }
#abst-magic-bar .abst-cro-card-var-try { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--abst-mb-accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; }
#abst-magic-bar .abst-cro-card-var.is-applied { border-color: #16a34a !important; background: #f0fdf4 !important; }
#abst-magic-bar .abst-cro-card-var.is-applied .abst-cro-card-var-try { background: #16a34a; font-size: 0; }
#abst-magic-bar .abst-cro-card-var.is-applied .abst-cro-card-var-try::after { content: "\2713  " attr(data-letter); font-size: 11px; }
#abst-magic-bar .abst-cro-card--add .abst-cro-card-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
#abst-magic-bar .abst-cro-card-preview-wrap { margin-top: 10px; }
#abst-magic-bar .abst-cro-card-preview-label { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--abst-mb-muted); }
#abst-magic-bar .abst-cro-card-preview {
  max-height: 160px; overflow: hidden; padding: 10px 12px; border: 1px dashed #0d9488; border-radius: 6px; background: #fff;
  font-size: 13px; line-height: 1.45; color: var(--abst-mb-text);
}
#abst-magic-bar .abst-cro-card-preview * { max-width: 100% !important; position: static !important; }
#abst-magic-bar .abst-cro-card-preview p { margin: 0 0 6px !important; font-size: 13px !important; }
#abst-magic-bar .abst-cro-card-preview p:last-child { margin-bottom: 0 !important; }
#abst-magic-bar .abst-cro-card-preview img { height: auto; }
#abst-magic-bar .abst-cro-card-place, #abst-magic-bar .abst-cro-more {
  padding: 5px 10px; min-height: 0; border: 1px solid var(--abst-mb-line) !important; border-radius: 6px; background: #fff !important;
  color: var(--abst-mb-accent) !important; font-size: 12px !important; font-weight: 600; box-shadow: none !important; white-space: nowrap; cursor: pointer;
}
#abst-magic-bar .abst-cro-more { margin-top: 10px; }
#abst-magic-bar .abst-cro-card-place:hover, #abst-magic-bar .abst-cro-more:hover { border-color: var(--abst-mb-accent) !important; }

/* Chat status lines (applied / pick one / not found) */
#abst-magic-bar .abst-cro-chat-note { width: fit-content; max-width: 94%; margin: 0 0 8px; padding: 7px 12px; border-radius: 12px; border-bottom-left-radius: 4px; font-size: 12px; line-height: 1.45; }
#abst-magic-bar .abst-cro-chat-note a { color: inherit !important; font-weight: 600; text-decoration: underline !important; }
#abst-magic-bar .abst-cro-chat-note--ok { background: #f0fdf4; color: #166534; }
#abst-magic-bar .abst-cro-chat-note--pick { background: #fffbeb; color: #92400e; }
#abst-magic-bar .abst-cro-chat-note--error { background: #fef2f2; color: #991b1b; }

/* Pick-one mode: repeated text numbered on the page */
.abst-cro-pick-target { outline: 2px dashed #d97706 !important; outline-offset: 3px; cursor: pointer !important; }
.abst-cro-pick-badge {
  position: absolute; z-index: 65535; width: 24px; height: 24px; padding: 0; border: 2px solid #fff !important; border-radius: 50%;
  background: #d97706 !important; color: #fff !important; font: 700 12px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer;
}
.abst-cro-flash { animation: abst-cro-flash 1.5s ease-out; }
@keyframes abst-cro-flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(34, 113, 177, .55); } 100% { box-shadow: 0 0 0 4px rgba(34, 113, 177, 0); } }
.abst-cro-show { outline: 3px solid #2271b1 !important; outline-offset: 4px; transition: outline-color .3s; }

/* ChatCRO suggested first questions */
#abst-magic-bar .abst-cro-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
#abst-magic-bar .abst-cro-starter {
  padding: 6px 12px; min-height: 0; border: 1px solid var(--abst-mb-line) !important; border-radius: 999px; background: #fff !important;
  color: var(--abst-mb-accent) !important; font-size: 12px !important; font-weight: 500; text-align: left; box-shadow: none !important; cursor: pointer;
}
#abst-magic-bar .abst-cro-starter:hover { border-color: var(--abst-mb-accent) !important; background: var(--abst-mb-accent-soft) !important; }
.abst-cro-previewing { transition: opacity .14s ease; outline: 2px dashed #2271b1 !important; outline-offset: 3px; }

/* ==========================================================================
   MAGIC BAR ON PHONES: bottom drawer
   The page is not squeezed; it gets bottom padding equal to the drawer, which the
   handle resizes through --abst-mb-drawer-h (see abstInitMagicDrawer).
   ========================================================================== */
.abst-magic-drawer-handle { display: none; }
@media (max-width: 767px) {
  html.doing-abst-magic-bar { margin-right: 0 !important; padding-bottom: var(--abst-mb-drawer-h, 55vh) !important; }
  /* must outrank body:not(.admin-bar) #abst-magic-bar (the :not counts as a class) */
  html body:not(.admin-bar) #abst-magic-bar,
  html body.admin-bar #abst-magic-bar {
    top: auto !important; bottom: 0; left: 0; right: 0;
    width: 100% !important; max-width: 100%;
    /* 50px matches ABST_DRAWER_TOP_GAP in highlighter.js: the page always peeks above the drawer. */
    height: var(--abst-mb-drawer-h, 55vh) !important; max-height: calc(100% - 50px);
    border-left: 0; border-top: 1px solid var(--abst-mb-line); border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.18);
    transform: translateY(100%);
    transition: transform .3s ease-in-out, height .22s ease;
  }
  html body #abst-magic-bar.is-dragging { transition: none !important; }
  /* Only the panel scrolls: the drawer itself must not, or the handle, header and close
     button scroll away. The content box fills the space under the 22px handle instead
     of claiming min-height: 100% on top of it. */
  html body:not(.admin-bar) #abst-magic-bar, html body.admin-bar #abst-magic-bar { overflow: hidden !important; }
  #abst-magic-bar .abst-magic-bar-container { flex: 1 1 auto; min-height: 0 !important; }
  #abst-magic-bar .abst-magic-tab-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  /* Page overlays (variation marker 100000, Hide/Move popover 999999) must not float over the
     drawer; the bar's own dropdowns (appended to body) must stay above it. The tour sits higher still. */
  html body:not(.admin-bar) #abst-magic-bar, html body.admin-bar #abst-magic-bar { z-index: 1000000; }
  html.doing-abst-magic-bar .select2-container--open .select2-dropdown, html.doing-abst-magic-bar .select2-container--open, .abst-link-popover,
  .abst-page-select-container, .abst-page-select-container .awesomplete > ul { z-index: 1000001 !important; }
  #abst-magic-bar .abst-magic-drawer-handle {
    display: flex; justify-content: center; align-items: center; flex: none;
    height: 26px; cursor: grab; touch-action: none; border-radius: 16px 16px 0 0;
  }
  #abst-magic-bar .abst-magic-drawer-handle span { width: 40px; height: 5px; border-radius: 999px; background: #cbd5e1; }
  #abst-magic-bar .abst-magic-drawer-handle:focus-visible { outline: 2px solid var(--abst-mb-accent); outline-offset: -2px; }
  /* The header drags the drawer too (see abstInitMagicDrawer), so the catch area is the
     whole title row and not just the handle. touch-action keeps the gesture from scrolling. */
  #abst-magic-bar .abst-magic-bar-header { padding-top: 2px; touch-action: none; cursor: grab; }
  #abst-magic-bar.is-dragging .abst-magic-drawer-handle, #abst-magic-bar.is-dragging .abst-magic-bar-header { cursor: grabbing; }
  #abst-magic-bar .abst-magic-bar-header button, #abst-magic-bar .abst-magic-bar-header select { cursor: pointer; }
  #abst-magic-bar .abst-magic-bar-close { top: 24px; }
  #abst-magic-bar #abst-cro-chat-container { min-height: 0; }
  .abst-move-hint { left: 50%; }
  /* Too many bars on a phone: hide the WP admin bar while the drawer is open (it returns
     when the bar closes and the class is removed). WP's own rule is html { margin-top: 46px !important }. */
  html.doing-abst-magic-bar #wpadminbar { display: none !important; }
  html.doing-abst-magic-bar { margin-top: 0 !important; scroll-padding-top: 0 !important; }
  html body.admin-bar #abst-magic-bar { max-height: calc(100% - 50px); }
}

/* Start Test without a goal: flash the Goals card and offer one-tap goals (abstNeedGoal) */
#abst-magic-bar .abst-goals-container.abst-goal-needed { animation: abst-goal-needed 0.7s ease-in-out 3; border-color: #d97706 !important; }
@keyframes abst-goal-needed { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); } 50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, .45); } }
#abst-magic-bar .abst-goal-needed-hint { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #fffbeb; }
#abst-magic-bar .abst-goal-needed-hint p { flex-basis: 100%; margin: 0 0 2px !important; font-size: 12px; font-weight: 600; color: #92400e; }
#abst-magic-bar .abst-goal-quick {
  padding: 5px 10px; min-height: 0; border: 1px solid #fcd34d !important; border-radius: 999px; background: #fff !important;
  color: #92400e !important; font-size: 12px !important; font-weight: 600; box-shadow: none !important; cursor: pointer;
}
#abst-magic-bar .abst-goal-quick:hover { border-color: #d97706 !important; }

/* ChatCRO launch bar: ChatCRO's latest message, pinned above the reply box */
#abst-magic-bar #abst-cro-launch { margin: 0 6% 10px 0; padding: 10px 12px; border-radius: 12px; border-bottom-left-radius: 4px; background: var(--abst-mb-soft); }
#abst-magic-bar #abst-cro-launch[hidden] { display: none !important; }
#abst-magic-bar .abst-cro-launch-kicker { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: #15803d; }
#abst-magic-bar .abst-cro-launch-kicker::before { content: "\2713  "; }
#abst-magic-bar .abst-cro-launch-summary { margin: 0 0 2px !important; font-size: 13px !important; color: var(--abst-mb-ink) !important; line-height: 1.4; }
#abst-magic-bar .abst-cro-launch-summary strong { font-weight: 600; }
#abst-magic-bar .abst-cro-launch-summary > span:not(.abst-cro-launch-kicker) { color: var(--abst-mb-muted); }
#abst-magic-bar .abst-cro-launch-goal { margin: 0 0 10px !important; font-size: 12px !important; color: var(--abst-mb-text) !important; }
#abst-magic-bar .abst-cro-launch-goal.is-missing { color: #92400e !important; }
#abst-magic-bar .abst-cro-launch-goal a, #abst-magic-bar .abst-cro-launch-review { color: var(--abst-mb-accent) !important; font-size: 12px; text-decoration: underline !important; text-underline-offset: 2px; }
#abst-magic-bar .abst-cro-launch-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#abst-magic-bar .abst-cro-launch-go {
  padding: 0 14px !important; min-height: 34px; border: 0 !important; border-radius: 6px !important; background: var(--abst-mb-accent) !important;
  color: #fff !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important;
}
#abst-magic-bar .abst-cro-launch-go:hover { background: var(--abst-mb-accent-ink) !important; }
#abst-magic-bar .abst-cro-launch-go:focus-visible { outline: 2px solid var(--abst-mb-accent); outline-offset: 2px; }
#abst-magic-bar .abst-cro-launch-more { margin: 8px 0 0 !important; font-size: 11px !important; color: var(--abst-mb-muted) !important; }

/* On a phone the launch card is the biggest thing in the drawer and pushes the chat it
   belongs to off screen. Tighten everything, run the kicker inline with the summary, and
   drop the coaching line: the two actions are what matter on a small screen. */
@media (max-width: 767px) {
  #abst-magic-bar #abst-cro-launch { margin: 0 0 6px 0; padding: 7px 9px; border-radius: 10px; }
  #abst-magic-bar .abst-cro-launch-kicker { display: inline; margin: 0 4px 0 0; font-size: 11px; }
  #abst-magic-bar .abst-cro-launch-kicker::before { content: "\2713\00a0"; }
  #abst-magic-bar .abst-cro-launch-summary { margin: 0 !important; font-size: 12px !important; line-height: 1.35; }
  #abst-magic-bar .abst-cro-launch-goal { margin: 1px 0 6px !important; font-size: 11px !important; }
  #abst-magic-bar .abst-cro-launch-goal a, #abst-magic-bar .abst-cro-launch-review { font-size: 11px; }
  #abst-magic-bar .abst-cro-launch-actions { gap: 10px; }
  #abst-magic-bar .abst-cro-launch-go { min-height: 30px; padding: 0 11px !important; font-size: 12px !important; }
  #abst-magic-bar .abst-cro-launch-more { display: none; }
}

/* ChatCRO reply box: one rounded composer with the button inside */
#abst-magic-bar #abst-cro-chat-footer { padding-bottom: 2px; }
#abst-magic-bar #abst-cro-chat-input-row {
  display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px !important; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff !important;
  transition: border-color .15s;
}
#abst-magic-bar #abst-cro-chat-input-row:focus-within { border-color: var(--abst-mb-accent); }
#abst-magic-bar #abst-cro-chat-input-row #abst-cro-chat-input {
  flex: 1; min-width: 0; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; font-size: 13px !important; color: var(--abst-mb-ink) !important;
}
#abst-magic-bar #abst-cro-chat-input-row #abst-cro-chat-send { min-height: 32px; padding: 0 14px !important; border-radius: 8px !important; }
#abst-magic-bar #abst-cro-chat-input-row #abst-cro-chat-send:disabled { opacity: .55; cursor: default; }
#abst-magic-bar .abst-cro-sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#abst-magic-bar .abst-cro-chat-tab-hint {
  flex: none; padding: 1px 6px; border: 1px solid var(--abst-mb-line); border-bottom-width: 2px; border-radius: 4px; background: var(--abst-mb-soft);
  color: var(--abst-mb-muted); font: 600 10px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
#abst-magic-bar .abst-cro-chat-tab-hint:hover,
#abst-magic-bar .abst-cro-chat-tab-hint:focus-visible {
  color: var(--abst-mb-ink); border-color: var(--abst-mb-accent); outline: none;
}
/* Touch devices have no Tab key, so this is the only way to accept the
   suggestion — give it a finger-sized target. */
@media (hover: none) and (pointer: coarse) {
  #abst-magic-bar .abst-cro-chat-tab-hint { min-height: 32px; padding: 0 12px; font-size: 12px; }
}
#abst-magic-bar .abst-cro-chat-tab-hint[hidden] { display: none !important; }
#abst-magic-bar .abst-magic-tab-count {
  display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--abst-mb-accent);
  color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; vertical-align: 1px;
}
