  /* ---------- floating tab ---------- */
  .sbx-signup-tab {
    position: fixed;
    left: 0;
    top: 180px;
    z-index: 9999;
    background: #ee5a24;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    box-shadow: 3px 0 10px rgba(0,0,0,.2);
    transition: background .25s;
    user-select: none;
    border: none;
    outline: none;
    border-radius: 0 6px 6px 0;
    padding: 0;
    display: block;
    width: 32px;        /* becomes the visible width of the tab */
  }
  .sbx-signup-tab:hover { background: #c94a18; }

  /* inner span handles the vertical layout — works on iOS 17 and earlier */
  .sbx-signup-tab-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 0;
    gap: 6.5px;
    width: 100%;
    box-sizing: border-box;
  }

  /* --- tab flash animation (swaps bg/text colours) --- */
  @keyframes sbx-tab-flash {
    0%,100% { background: #ee5a24; color: #fff; }
    50%      { background: #fff;    color: #ee5a24; }
  }
  .sbx-signup-tab.sbx-flashing {
    animation: sbx-tab-flash 1.5s ease-in-out 1;   /* single 1.5 s flash */
  }

  /* ---------- panel ---------- */
  .sbx-signup-panel {
    position: fixed;
    left: -320px;          /* hidden off-screen */
    top: 160px;
    z-index: 9998;
    width: 300px;
    background: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 4px 4px 20px rgba(0,0,0,.18);
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #333;
    transition: left .35s cubic-bezier(.4,0,.2,1);
    overflow: visible;   /* must be visible so tooltip can escape panel bounds */
  }
  .sbx-signup-panel.sbx-open {
    left: 0;
  }

  /* ---------- panel header ---------- */
  .sbx-signup-header {
    background: #ee5a24;
    color: #fff;
    padding: 14px 16px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 10px 0 0;
  }
  .sbx-signup-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    white-space: nowrap;
  }
  .sbx-signup-header p {
    margin: 4px 0 0;
    font-size: 11.5px;
    opacity: .9;
    color: #fff;
  }
  .sbx-signup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 8px;
    opacity: .85;
    flex-shrink: 0;
    align-self: flex-start;
  }
  .sbx-signup-close:hover { opacity: 1; }

  /* ---------- body ---------- */
  .sbx-signup-body {
    padding: 14px 16px 16px;
    border-radius: 0 0 10px 0;
    overflow: visible;
  }
  .sbx-signup-body label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
    margin-top: 10px;
  }
  .sbx-signup-body label:first-of-type { margin-top: 0; }

  .sbx-signup-body input[type="text"],
  .sbx-signup-body input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    background: #ecf7fe;
    color: #333;
    outline: none;
    transition: border-color .2s;
  }
  .sbx-signup-body input:focus {
    border-color: #ee5a24;
  }

  /* honeypot – visually hidden but accessible to bots */
  .sbx-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
  }

  /* ---------- GDPR opt-in ---------- */
  .sbx-gdpr-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    background: #f9f4f2;
    border: 1px solid #f5d9ce;
    border-radius: 5px;
    padding: 8px 10px;
  }
  .sbx-gdpr-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #ee5a24;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
  }
  .sbx-gdpr-label {
    font-size: 11.5px;
    line-height: 1.45;
    color: #555;
  }

  /* tooltip trigger within the GDPR label */
  .sbx-tooltip-trigger {
    color: #ee5a24;
    border-bottom: 1px dotted #ee5a24;
    cursor: help;
    font-weight: 600;
    position: relative;
    display: inline-block;
  }
  .sbx-tooltip-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 3px solid #ee5a24;
    border-radius: 5px;
    padding: 12px 12px 10px;
    font-size: 11px;
    line-height: 1.5;
    color: #444;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    z-index: 10001;
    text-align: left;
    font-weight: normal;
    font-style: normal;
  }
  .sbx-tooltip-box ul {
    margin: 6px 0 0 14px;
    padding: 0;
    font-size: 10.5px;
  }
  /* show tooltip on hover or keyboard focus */
  .sbx-tooltip-trigger:hover .sbx-tooltip-box,
  .sbx-tooltip-trigger:focus .sbx-tooltip-box {
    display: block;
  }
  /* on small / narrow screens flip tooltip below trigger */
  @media (max-width: 420px) {
    .sbx-tooltip-box {
      bottom: auto;
      top: calc(100% + 8px);
      left: 0;
      transform: none;
      width: 220px;
    }
  }
  .sbx-privacy-note {
    font-size: 10.5px;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
  }
  .sbx-privacy-note a {
    color: #ee5a24;
    text-decoration: underline;
  }

  /* ---------- submit button ---------- */
  .sbx-signup-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #ee5a24;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s;
  }
  .sbx-signup-btn:hover { background: #c94a18; }
  .sbx-signup-btn:disabled { background: #ccc; cursor: not-allowed; }

  /* ---------- messages ---------- */
  .sbx-msg {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 12.5px;
    display: none;
    line-height: 1.4;
  }
  .sbx-msg.sbx-success { background: #d4edda; color: #155724; display: block; }
  .sbx-msg.sbx-error   { background: #f8d7da; color: #721c24; display: block; }
  .sbx-field-err {
    color: #c0392b;
    font-size: 11px;
    margin-top: 2px;
    display: none;
  }
  .sbx-field-err.visible { display: block; }

  /* ---------- thank-you popup — sits in the same position as the panel ---------- */
  .sbx-thankyou-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 160px;
    z-index: 10100;
    width: 300px;
  }
  .sbx-thankyou-overlay.sbx-show {
    display: block;
  }
  .sbx-thankyou-box {
    background: #fff;
    border-radius: 0 12px 12px 0;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 4px 4px 20px rgba(0,0,0,.22);
    font-family: 'Raleway', sans-serif;
    width: 100%;
    box-sizing: border-box;
    animation: sbx-popup-in .3s cubic-bezier(.4,0,.2,1);
  }
  @keyframes sbx-popup-in {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
  }
  .sbx-thankyou-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d4edda;
    margin: 0 auto 16px;
  }
  .sbx-thankyou-tick svg {
    width: 36px;
    height: 36px;
  }
  .sbx-thankyou-box h4 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
  }
  .sbx-thankyou-box p {
    margin: 0 0 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
  }
  .sbx-thankyou-dismiss {
    background: #ee5a24;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
  }
  .sbx-thankyou-dismiss:hover { background: #c94a18; }

  /* ---------- responsive: hide tab & move panel on small screens ---------- */
  @media (max-width: 767px) {
    .sbx-signup-tab {
      top: auto !important;
      bottom: 100px !important;
      width: 30px !important;
    }
    .sbx-signup-tab-inner {
      font-size: 15.5px !important;
      padding: 12px 0 !important;
    }
    .sbx-signup-tab-inner svg {
      width: 15px !important;
      height: 15px !important;
    }
    .sbx-signup-panel {
      top: auto;
      bottom: 60px;
      width: 280px;
    }
    .sbx-thankyou-overlay {
      top: auto;
      bottom: 60px;
      width: 280px;
    }
  }
