/* ============================================================
   Skybriz Subscribe Modal (Branded + Mobile Friendly)
   - Fixes "No thanks" plain-text issue (matches your markup: .sbz-link.sbz-no)
   - Prevents SKYBRIZ badge overlap with close button
   - Keeps brand badge consistent with your email-confirm style
   ============================================================ */

   #sbz-sub-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0,0,0,.55);
  }
  
  #sbz-sub-modal[aria-hidden="true"] { display: none; }
  
  .sbz-modal-card {
    width: 100%;
    max-width: 440px;
    background: #060b16;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 18px;
    color: #e5e7eb;
    box-shadow: 0 20px 80px rgba(0,0,0,.45);
    position: relative;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  }
  
  /* Close button */
  .sbz-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
  }
  
  .sbz-close:hover { background: rgba(255,255,255,.10); }
  .sbz-close:focus-visible {
    outline: 2px solid rgba(165,243,252,.55);
    outline-offset: 2px;
  }
  
  /* Brand badge (match email-confirm header badge style) */
  .sbz-badge,
  .sbz-modal-card .sbz-brand,
  .sbz-modal-card .sbz-brand-badge {
    background: transparent !important;
  
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, .55); /* #22d3ee */
    color: #a5f3fc;
    margin-bottom: 10px;
  
    /* keep clear of the close button */
    margin-right: 54px;
    max-width: calc(100% - 54px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }
  
  .sbz-badge.ok {
    border-color: rgba(34,197,94,.45);
    color: #22c55e;
  }
  
  /* Headings + copy */
  .sbz-step h3,
  .sbz-hl {
    margin: 4px 0 6px;
    font-size: 18px;
    color: #f9fafb;
  }
  
  .sbz-step p,
  .sbz-body {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
  }
  
  /* Email field */
  #sbz-subscribe-form input[type="email"] {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #f9fafb;
    outline: none;
  }
  
  #sbz-subscribe-form input[type="email"]::placeholder {
    color: rgba(229,231,235,.65);
  }
  
  #sbz-subscribe-form input[type="email"]:focus-visible {
    border-color: rgba(165,243,252,.45);
    box-shadow: 0 0 0 3px rgba(165,243,252,.18);
  }
  
  /* Opt-in row */
  .sbz-optin {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 12px;
    font-size: 13px;
    color: #cbd5e1;
  }
  
  .sbz-optin input { margin-top: 2px; }
  
  /* Primary CTA */
  .sbz-primary {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #22c55e;
    color: #061016;
    font-weight: 800;
    cursor: pointer;
  }
  
  .sbz-primary:hover { filter: brightness(1.03); }
  .sbz-primary:active { transform: translateY(1px); }
  .sbz-primary:focus-visible {
    outline: 2px solid rgba(34,197,94,.55);
    outline-offset: 2px;
  }
  
  /* ============================================================
     FIX: "No thanks" (your markup uses .sbz-actions .sbz-link.sbz-no)
     - Reset button appearance so theme styles don’t force plain text
     ============================================================ */
  
  .sbz-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
  }
  
  #sbz-subscribe-form .sbz-link {
    /* reset default button look across themes */
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: rgba(203,213,225,.92);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
  }
  
  #sbz-subscribe-form .sbz-link:hover {
    background: rgba(255,255,255,.08);
  }
  
  #sbz-subscribe-form .sbz-link:focus-visible {
    outline: 2px solid rgba(165,243,252,.45);
    outline-offset: 2px;
  }
  
  /* specifically the No button */
  #sbz-subscribe-form .sbz-link.sbz-no {
    margin-left: 0;
  }
  
  /* Error / status message */
  .sbz-message {
    margin-top: 10px;
    font-size: 13px;
    color: #fca5a5;
    min-height: 18px;
  }
  
  /* Optional “Open inbox” link */
  .sbz-open-inbox {
    display: inline-flex;
    margin-top: 12px;
    color: #a5f3fc;
    text-decoration: none;
    font-weight: 800;
  }
  
  .sbz-open-inbox:hover { text-decoration: underline; }
  
  /* Honeypot always hidden */
  .sbz-honeypot { display: none !important; }
  
  /* Small screens */
  @media (max-width: 360px) {
    .sbz-modal-card { padding: 14px; }
    .sbz-step h3,
    .sbz-hl { font-size: 17px; }
    .sbz-close { width: 36px; height: 36px; font-size: 20px; }
    .sbz-badge { margin-right: 50px; max-width: calc(100% - 50px); }
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .sbz-primary:active { transform: none; }
  }
  