/* Shared stall-details popup — used by floor-plan.php and attendee/floor-plan.php */

.sbp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 28, 50, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sbp-overlay[hidden] { display: none; }
.sbp-overlay.sbp-open { opacity: 1; }
body.sbp-lock { overflow: hidden; }

.sbp-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,0.3));
  padding: 28px 26px 26px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}
.sbp-overlay.sbp-open .sbp-modal { transform: translateY(0) scale(1); }

.sbp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--outline, #8a8f99);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  line-height: 0;
}
.sbp-close:hover { color: var(--primary, #211f60); background: var(--surface-container, #f1f2f6); }

.sbp-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 0 0 20px;
}
.sbp-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--outline, #8a8f99); margin: 0 0 2px; }
.sbp-facts dd { font-size: 14.5px; font-weight: 600; margin: 0; color: var(--on-surface, #1a1c1e); }
.sbp-price { color: var(--primary, #211f60); font-size: 17px !important; }

.sbp-tenant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius, 10px);
  background: var(--surface-container, #f1f2f6);
  margin-top: 4px;
}
.sbp-tenant-logo {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary, #211f60);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

.sbp-book-btn { display: block; text-align: center; margin-top: 4px; }

/* Stall deliverables list — used in the floor-plan popup and book-stall.php
   ("What's Included" card), sourced from includes/stall-deliverables.php. */
.sbp-deliverables-list { list-style: none; margin: 0; padding: 0; }
.sbp-deliverables-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--outline-variant, #e2e2e2);
}
.sbp-deliverables-list li:last-child { border-bottom: none; }
.sbp-deliverables-list li span { color: var(--on-surface-variant, #5c5f6a); display: inline-flex; align-items: center; gap: 5px; }
.sbp-deliverables-list li strong { color: var(--on-surface, #1a1c1e); font-weight: 700; }

.sbp-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--outline, #8a8f99);
  cursor: pointer;
  line-height: 0;
}
.sbp-info-icon:hover,
.sbp-info-icon:focus,
.sbp-info-icon.sbp-open { color: var(--primary, #211f60); outline: none; }
.sbp-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  max-width: 60vw;
  background: var(--on-surface, #1a1c1e);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
  pointer-events: none;
}
.sbp-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--on-surface, #1a1c1e);
}
.sbp-info-icon:hover .sbp-tooltip-bubble,
.sbp-info-icon:focus .sbp-tooltip-bubble,
.sbp-info-icon.sbp-open .sbp-tooltip-bubble { visibility: visible; opacity: 1; }

@media (max-width: 480px) {
  .sbp-facts { grid-template-columns: 1fr 1fr; }
  .sbp-modal { padding: 24px 20px 20px; }
}

/* Sponsorship deliverables popup rows (assets/js/sponsorship-deliverables.js) */
.spn-rows { list-style: none; margin: 0; padding: 0; }
.spn-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--surface-container-high, #eceef2);
  font-size: 14px;
}
.spn-row:last-child { border-bottom: none; }
.spn-label { color: var(--on-surface-variant, #5a6072); }
.spn-value { font-weight: 600; color: var(--primary, #211f60); text-align: right; }
.spn-check { color: #1c8a3f; font-weight: 700; margin-right: 4px; }

.spn-card { cursor: pointer; }
.spn-card:focus-visible { outline: 3px solid var(--on-tertiary-container, #e31e24); outline-offset: 2px; }
.spn-view-btn { margin-top: 4px; }
