/* SBE_MODAL_MARKER_2025_12_19_v1 */

/* Popup styling – small, modern, not intrusive */
.sbe-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: grid;
  place-items: center;
  z-index: 999999;
  padding: 18px;
}

.sbe-modal{
  width: min(360px, 92vw);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  padding: 14px 14px 12px;
  direction: rtl;
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.sbe-title{
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #111;
}

.sbe-desc{
  font-size: 13px;
  color: rgba(0,0,0,0.66);
  line-height: 1.35;
  margin-bottom: 10px;
}

.sbe-input{
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.sbe-input:focus{
  border-color: rgba(120,178,254,0.9);
  box-shadow: 0 0 0 3px rgba(120,178,254,0.20);
}

.sbe-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 10px;
}

.sbe-btn{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}

.sbe-btn-primary{
  background: #78b2fe;
  color: #fff;
  font-weight: 800;
}

.sbe-btn-ghost{
  background: transparent;
  border-color: rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.75);
  font-weight: 800;
}
/* =========================
   SBE Anchored Popover (Option A)
   ========================= */

/* ---------- SBE Popover Modal (posh, button-accessory vibe) ---------- */

.sbe-popover{
  position: fixed;
  z-index: 999999;
  /* let clicks pass outside the card; card itself stays clickable */
  pointer-events: none;
}

.sbe-modal{
  pointer-events: auto;
  width: min(360px, calc(100vw - 24px));
  direction: rtl;

  /* refined “lux” surface */
  background:
    radial-gradient(120% 140% at 18% 20%, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.70) 35%, rgba(255,255,255,0.55) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.40) 100%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;

  /* crisp depth without being “gimmicky” */
  box-shadow:
    0 18px 55px rgba(0,0,0,0.18),
    0 2px 0 rgba(255,255,255,0.30) inset;

  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* smooth entrance */
  transform: translateY(6px);
  opacity: 0;
  animation: sbeIn 160ms ease-out forwards;

  /* typography */
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: rgba(20,20,20,0.92);
}

@keyframes sbeIn{
  to{ transform: translateY(0); opacity: 1; }
}

/* small “badge” that visually nods to your endorsements bubble */
.sbe-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;

  color: rgba(18,18,18,0.85);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;

  padding: 6px 10px;
  margin-bottom: 10px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.65) inset;
}

/* Title + description */
.sbe-title{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sbe-desc{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(40,40,40,0.72);
  margin: 0 0 12px 0;
}

/* Input (lux, crisp, RTL) */
.sbe-input{
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.72);

  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;

  box-shadow:
    0 10px 28px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.70) inset;

  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.sbe-input::placeholder{
  color: rgba(0,0,0,0.40);
  font-weight: 700;
}

.sbe-input:focus{
  border-color: rgba(120,178,254,0.75); /* harmonizes with your bubble color */
  box-shadow:
    0 14px 34px rgba(0,0,0,0.10),
    0 0 0 3px rgba(120,178,254,0.22),
    0 1px 0 rgba(255,255,255,0.70) inset;
  transform: translateY(-1px);
}

/* Buttons row */
.sbe-actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-start;
}

.sbe-btn{
  appearance: none;
  border: 0;
  cursor: pointer;

  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;

  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

/* Primary = subtle “premium” blue sheen */
.sbe-btn-primary{
  color: rgba(10,18,28,0.92);
  background:
    radial-gradient(140% 180% at 30% 25%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.18) 38%, rgba(255,255,255,0) 65%),
    linear-gradient(180deg, rgba(120,178,254,0.95) 0%, rgba(120,178,254,0.78) 100%);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.14),
    0 1px 0 rgba(255,255,255,0.55) inset;
  border: 1px solid rgba(0,0,0,0.08);
}

.sbe-btn-primary:hover{ filter: brightness(1.02); }
.sbe-btn-primary:active{ transform: translateY(1px); }

/* Ghost = quiet + posh */
.sbe-btn-ghost{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.62);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.70) inset;
}

.sbe-btn-ghost:hover{ filter: brightness(1.03); }
.sbe-btn-ghost:active{ transform: translateY(1px); }

/* Optional tiny “arrow” that points to the button */
.sbe-popover[data-placement="top"] .sbe-modal::after,
.sbe-popover[data-placement="bottom"] .sbe-modal::after{
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(0,0,0,0.06);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.sbe-popover[data-placement="top"] .sbe-modal::after{
  bottom: -8px;
  border-left: 0;
  border-top: 0;
}

.sbe-popover[data-placement="bottom"] .sbe-modal::after{
  top: -8px;
  border-right: 0;
  border-bottom: 0;
}

/* Mobile: slightly smaller */
@media (max-width: 480px){
  .sbe-modal{
    width: min(340px, calc(100vw - 20px));
    border-radius: 16px;
    padding: 12px 12px 11px;
  }
  .sbe-title{ font-size: 15px; }
  .sbe-desc{ font-size: 12.5px; }
}
