/* Portfolio demo layer: demo bar + explanation drawer, styled to match the site. */
.demo-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 9000; /* above the site's own layers */
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 10px 12px 10px 16px;
  translate: -50% 0;
  background: var(--plum);
  color: var(--cream);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.demo-bar__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.demo-bar__link {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--plum);
  text-decoration: none;
  font-weight: 500;
}

.demo-bar__link:hover {
  background: #fff;
}

.demo-bar__short {
  display: none;
}

@media (max-width: 560px) {
  .demo-bar__text {
    display: none;
  }

  .demo-bar__short {
    display: inline;
    white-space: nowrap;
  }
}

/* Drawer */
.demo-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000; /* above the site's booking dialog */
  pointer-events: none;
}

.demo-drawer.open {
  pointer-events: auto;
}

.demo-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(69, 49, 58, 0.35);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.demo-drawer.open .demo-drawer__backdrop {
  opacity: 1;
}

.demo-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  overflow-y: auto;
  padding: 48px 36px 96px;
  background: var(--cream);
  color: var(--plum);
  box-shadow: var(--shadow-lg);
  font-family: var(--body);
  line-height: 1.65;
  translate: 100% 0;
  transition: translate 0.45s var(--ease);
}

.demo-drawer.open .demo-drawer__panel {
  translate: 0 0;
}

.demo-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--plum);
  font-size: 22px;
  cursor: pointer;
}

.demo-drawer__eyebrow {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.demo-drawer__title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.demo-drawer__body h4 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
}

.demo-drawer__body p {
  margin: 0 0 12px;
  color: var(--plum-soft);
  font-size: 15px;
}

.demo-drawer__body code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--blush-soft);
  font-size: 13px;
}

.demo-steps {
  list-style: decimal;
  margin: 0;
  padding-left: 20px;
  color: var(--plum-soft);
  font-size: 15px;
}

.demo-steps li {
  margin-bottom: 8px;
}

.demo-steps li::marker {
  color: var(--rose);
}

.demo-steps strong {
  color: var(--plum);
  font-weight: 500;
}

.demo-note {
  margin-top: 20px !important;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(196, 160, 106, 0.1);
  font-size: 13px !important;
}

/* WhatsApp preview */
.demo-chat {
  overflow: hidden;
  border-radius: 16px;
  background: #ece5dd;
  box-shadow: var(--shadow-sm);
}

.demo-chat__head {
  padding: 12px 16px;
  background: #075e54;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.demo-chat__bubble {
  max-width: 85%;
  margin: 16px 16px 16px auto;
  padding: 10px 12px;
  border-radius: 10px 10px 2px 10px;
  background: #dcf8c6;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}

.demo-chat__empty {
  padding: 20px 16px;
  color: #555;
  font-size: 14px;
}

/* Backend options */
.demo-options {
  display: grid;
  gap: 12px;
}

.demo-option {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.demo-option strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}

.demo-option p {
  margin: 0 !important;
  font-size: 14px !important;
}

.demo-option__tag {
  color: var(--rose-deep);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Entry point inside the booking confirmation dialog */
.demo-explain {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  background: rgba(196, 160, 106, 0.08);
  color: var(--plum);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.demo-explain:hover {
  background: rgba(196, 160, 106, 0.18);
}
