/**
 * Floating Demo presenter panel
 */

.demo-fab-root {
  position: relative;
  z-index: 80;
}

.demo-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 85;
  min-width: 3.25rem;
  height: 2.75rem;
  padding: 0 0.95rem;
  border: 1px solid color-mix(in srgb, var(--color-primary, #0b5fff) 45%, #1f2937);
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.demo-fab:hover,
.demo-fab:focus-visible {
  background: #0f172a;
  outline: none;
}

.customer-app-body .demo-fab {
  bottom: 5.25rem;
}

.demo-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 86;
  background: rgba(15, 23, 42, 0.35);
}

.demo-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 87;
  width: min(24rem, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--color-border, #e5e7eb);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
}

.demo-panel[hidden],
.demo-panel-backdrop[hidden] {
  display: none !important;
}

.demo-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.demo-panel-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #6b7280);
}

.demo-panel-title {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
}

.demo-panel-body {
  overflow: auto;
  padding: 0.85rem 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-panel-section {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.demo-panel-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demo-panel-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary, #4b5563);
}

.demo-panel-meta {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary, #4b5563);
}

.demo-panel-actions,
.demo-panel-links,
.demo-force-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-integration-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 14rem;
  overflow: auto;
}

.demo-integration-row {
  display: grid;
  grid-template-columns: 1fr minmax(7rem, 8.5rem);
  gap: 0.45rem;
  align-items: center;
  font-size: 0.8rem;
}

.demo-integration-row .field-input {
  font-size: 0.78rem;
  padding: 0.3rem 0.45rem;
}

.demo-force-actions .reg-outcome-row,
.demo-force-actions .payment-outcome-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-force-actions fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .demo-fab {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .customer-app-body .demo-fab {
    bottom: 5rem;
  }

  .demo-panel {
    width: 100vw;
  }
}
