:root {
  --demo-yellow: #ffd429;
  --demo-yellow-ink: #151515;
}

.demo-page {
  padding-top: 0;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 10, 20, 0.96);
  border-bottom: 1px solid rgba(255, 212, 41, 0.28);
  backdrop-filter: blur(10px);
}

.demo-banner-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.demo-banner-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

.demo-banner-copy strong {
  color: var(--demo-yellow);
}

.demo-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-anchor-card,
.tenant-hero-actions-row-top {
  position: relative;
}

.demo-bubble {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 2px solid rgba(30, 25, 0, 0.22);
  background: var(--demo-yellow);
  color: var(--demo-yellow-ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 4px rgba(255, 212, 41, 0.18), 0 14px 34px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-bubble:hover,
.demo-bubble:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 4px rgba(255, 212, 41, 0.24), 0 18px 36px rgba(0, 0, 0, 0.42);
}

.demo-bubble:focus-visible {
  outline: 2px solid #fff4b1;
  outline-offset: 3px;
}

.demo-bubble[data-attach='billing-portal'] {
  top: -14px;
  right: -12px;
}

.demo-bubble[data-attach='usage-billing'] {
  top: 18px;
  right: 18px;
}

.demo-bubble[data-attach^='box-'] {
  top: 24px;
  right: 18px;
}

#demo-box-5 .demo-bubble[data-attach='box-5'] {
  top: 22px;
}

.demo-end-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 212, 41, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.demo-end-card h3 {
  margin: 6px 0 0;
}

.demo-end-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-row-button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.demo-row-button:hover td {
  background: rgba(18, 29, 51, 0.55);
}

@media (max-width: 900px) {
  .demo-banner-shell,
  .demo-banner-copy,
  .demo-end-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-banner-actions,
  .demo-end-actions {
    width: 100%;
  }

  .demo-bubble,
  .demo-bubble[data-attach='billing-portal'],
  .demo-bubble[data-attach='usage-billing'],
  .demo-bubble[data-attach^='box-'] {
    position: static;
    margin-top: 14px;
  }
}


/* demo patch: support placeholder, full presets, and real-style hours rows */
.support-email-btn-compact span:first-child {
  text-transform: none;
}

#demo-box-4,
#demo-box-4 .tenant-fields,
#demo-box-4 .hours-wrap,
#demo-box-4 .hours-grid,
#demo-box-4 .hours-row,
#demo-box-4 .hours-row input[type="text"] {
  min-width: 0;
  box-sizing: border-box;
}

#demo-box-4 {
  overflow: hidden;
}

#demo-box-4 .hours-grid {
  display: grid;
  gap: 0.7rem;
}

#demo-box-4 .hours-row {
  display: grid;
  grid-template-columns: 120px 108px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#demo-box-4 .hours-day {
  font-weight: 800;
  color: var(--text-primary);
}

#demo-box-4 .hours-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#demo-box-4 .hours-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

#demo-box-4 .hours-row input[type="text"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
}

@media (max-width: 1080px) {
  #demo-box-4 .hours-row {
    grid-template-columns: 1fr;
  }
}
