/* Article QR Code modal + share icon */
.share-ico.share-qr {
  border: none !important;
  cursor: pointer !important;
  background: #111827 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.share-ico.share-qr svg {
  pointer-events: none;
}
.share-ico.share-qr:hover {
  opacity: 0.9;
}

.ers-qr-modal {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ers-qr-modal.is-open,
.ers-qr-modal:not([hidden]) {
  display: flex !important;
}
.ers-qr-modal[hidden] {
  display: none !important;
}
.ers-qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.ers-qr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-height: 92vh;
  overflow: auto;
}
.ers-qr-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.ers-qr-modal__site {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c41e3a;
}
.ers-qr-modal__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ers-qr-modal__canvas-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
}
.ers-qr-box {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ers-qr-canvas {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.ers-qr-modal__url {
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
  margin: 0 0 14px;
  line-height: 1.4;
}
.ers-qr-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ers-qr-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #111827;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ers-qr-btn--primary {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}
.ers-qr-btn:hover {
  filter: brightness(0.97);
}
body.ers-qr-open-body {
  overflow: hidden;
}
@media (max-width: 480px) {
  .ers-qr-modal__dialog {
    padding: 18px 14px 14px;
  }
  .ers-qr-modal__actions {
    flex-direction: column;
  }
  .ers-qr-btn {
    width: 100%;
  }
}
