#sheen-qr-panel-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#sheen-qr-panel-root * {
  box-sizing: border-box;
}

.sheen-qr-panel,
.sheen-qr-pill {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.sheen-qr-panel.is-positioned {
  width: min(420px, calc(100vw - 32px));
  animation: none;
}

.sheen-qr-pill.is-positioned {
  animation: none;
}

.sheen-qr-panel.is-dragging,
.sheen-qr-pill.is-dragging {
  cursor: grabbing;
  animation: none;
  user-select: none;
}

.sheen-qr-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  animation: sheen-qr-slide-in 180ms ease-out;
}

.sheen-qr-panel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.28);
}

.sheen-qr-panel__close:hover {
  background: #e11d48;
}

.sheen-qr-panel__body {
  padding: 22px 18px 18px;
}

.sheen-qr-panel__qr {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.sheen-qr-panel__message {
  margin: 0;
  padding: 16px 18px;
  text-align: center;
  line-height: 1.6;
  border-radius: 8px;
  background: #070b18;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.sheen-qr-panel__hint {
  margin: 10px 2px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.sheen-qr-pill {
  position: fixed;
  right: 18px;
  bottom: 16px;
  display: flex;
  width: min(310px, calc(100vw - 32px));
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  background: #05070d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
  animation: sheen-qr-pill-in 180ms ease-out;
}

.sheen-qr-pill__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 999px;
  background: #fbbf24;
  color: #111827;
}

.sheen-qr-pill__copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.sheen-qr-pill__eyebrow {
  display: block;
  color: #fcd34d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.sheen-qr-pill__title {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.sheen-qr-pill__chevron {
  flex: 0 0 auto;
  color: #fde68a;
}

html.dark .sheen-qr-panel {
  border-color: rgba(245, 158, 11, 0.34);
  background: #111827;
}

html.dark .sheen-qr-panel__hint {
  color: #94a3b8;
}

@keyframes sheen-qr-slide-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sheen-qr-pill-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .sheen-qr-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
  }

  .sheen-qr-panel.is-positioned {
    width: calc(100vw - 16px);
  }

  .sheen-qr-panel__qr {
    width: min(100%, 300px);
  }

  .sheen-qr-panel__message {
    font-size: 16px;
  }

  .sheen-qr-pill {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
}
