 #bt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    /* very high so it beats flt-glass-pane and any transforms */
    z-index: 2147483647;
  }
  #bt-modal {
    position: relative;
    width: min(520px, 92vw);
    background: #fff;
    border-radius: 14px;
    padding: 16px 16px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
  }
  #bt-header, #bt-actions {
    position: relative;
    z-index: 3; /* above any Drop-in internals */
  }
  #bt-dropin-container {
    position: relative;
    z-index: 1;
    min-height: 280px;
    /* make sure Drop-in doesn't overflow over the actions */
    overflow: visible;
  }
  #bt-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
  }
  #bt-footer {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    justify-content: flex-start; /* left align */
  }
  .bt-btn { padding: 10px 14px; border-radius: 10px; border: 1px solid #ddd; cursor: pointer; background: #fff; }
  .bt-btn.primary { border-color: #333; }
  