html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

#qr-widget {
  position: fixed;
  right: 8px;
  bottom: 8px;
  display: none;
}

.qr-bubble {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-bubble:hover {
  background: #f6f6f6;
}

.qr-bubble svg {
  width: 27px;
  height: 27px;
}

.qr-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 320px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  display: none;
}

.qr-panel.open {
  display: block;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
  color: #555555;
}

.qr-panel h2 {
  margin: 0 28px 8px 0;
  font-size: 20px;
  line-height: 1.3;
  color: #111111;
}

.qr-panel p {
  min-height: 42px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
}

.qr-frame {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
}

#qr-canvas {
  display: block;
  width: 230px;
  height: 230px;
  background: #ffffff;
  transition: filter 160ms ease, opacity 160ms ease;
}

.qr-frame.is-hidden #qr-canvas {
  filter: blur(10px);
  opacity: 0.42;
}

.qr-cover {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
}

.qr-frame.is-hidden .qr-cover {
  display: flex;
}

.qr-reveal {
  min-width: 118px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.qr-reveal:hover {
  background: #333333;
}

.qr-error {
  display: none;
  margin-top: 10px;
  color: #8b0000;
  font-size: 12px;
  line-height: 1.4;
}
