.wtw-qr-share-modal[hidden] {
  display: none !important;
}

.wtw-header-x {
  display: inline-grid;
  align-self: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  padding: 6px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0 !important;
  opacity: 0.88;
  box-sizing: border-box;
  text-decoration: none !important;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.wtw-header-x svg {
  display: block;
  width: 15px;
  height: 15px;
}

.wtw-header-x:hover {
  color: inherit;
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: 1;
}

.wtw-header-x:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .wtw-header-x {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    padding: 6px;
  }
}

body.wtw-qr-share-open {
  overflow: hidden;
}

.wtw-qr-share-modal {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
}

.wtw-qr-share-dialog {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  color: #f8f8f8;
  background:
    linear-gradient(125deg, rgba(159, 18, 57, 0.12), transparent 38%),
    repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 18px),
    #111114;
  border: 1px solid #4a2631;
  border-top: 4px solid #a3133c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.wtw-qr-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid #33333a;
}

.wtw-qr-share-head small,
.wtw-qr-kicker {
  display: block;
  margin-bottom: 5px;
  color: #ef8ba6;
  font: 800 11px/1.2 Arial, sans-serif;
  letter-spacing: 0.18em;
}

.wtw-qr-share-head h2,
.wtw-qr-copy h3 {
  margin: 0;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.wtw-qr-share-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.95;
}

.wtw-qr-close {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  color: #fff;
  background: #070708;
  border: 1px solid #55555d;
  border-radius: 0 !important;
  font: 400 34px/1 Arial, sans-serif;
  cursor: pointer;
}

.wtw-qr-share-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1.18fr);
  gap: 34px;
  padding: 30px;
}

.wtw-qr-preview {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #050506;
  border: 1px solid #3b3b42;
}

.wtw-qr-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.wtw-qr-rendering {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(5, 5, 6, 0.88);
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
}

.wtw-qr-rendering[hidden] {
  display: none !important;
}

.wtw-qr-copy {
  align-self: center;
}

.wtw-qr-copy h3 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.wtw-qr-copy p {
  max-width: 620px;
  margin: 0;
  color: #c8c6ca;
  font: 500 16px/1.7 Arial, sans-serif;
}

.wtw-qr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.wtw-qr-actions button {
  min-height: 50px;
  padding: 13px 16px;
  color: #fff;
  background: #25252a;
  border: 1px solid #595961;
  border-radius: 0 !important;
  font: 900 12px/1.15 Arial, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.wtw-qr-actions button:first-child,
.wtw-qr-actions [data-qr-facebook] {
  background: #a3133c;
  border-color: #d83260;
}

.wtw-qr-actions button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.wtw-qr-actions button:hover:not(:disabled),
.wtw-qr-close:hover,
.share-qr:hover {
  color: #050506;
  background: #fff;
  border-color: #fff;
}

.wtw-qr-actions button:focus-visible,
.wtw-qr-close:focus-visible,
.share-qr:focus-visible {
  outline: 3px solid #70c7ff;
  outline-offset: 3px;
}

.wtw-qr-status {
  display: block;
  min-height: 18px;
  margin-top: 15px;
  color: #ef8ba6;
  font: 700 12px/1.45 Arial, sans-serif;
}

#wtw-video-share-modal .video-share-networks .share-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  color: #fff;
  background: #74102d;
  border: 1px solid #d83260;
  border-radius: 0 !important;
  font: 800 12px/1 Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

#wtw-video-share-modal .video-share-networks .share-qr svg {
  width: 21px;
  height: 21px;
}

#wtw-video-share-modal .video-share-networks .share-facebook {
  position: relative;
  border-color: #4278d0;
}

#wtw-video-share-modal .video-share-networks .share-facebook::after {
  content: "NO BACKLINK";
  position: absolute;
  top: 4px;
  right: 5px;
  color: #9ec5ff;
  font: 700 7px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .wtw-qr-share-modal {
    align-items: start;
    padding: 10px;
  }

  .wtw-qr-share-dialog {
    max-height: calc(100vh - 20px);
  }

  .wtw-qr-share-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px;
  }

  .wtw-qr-preview {
    width: min(330px, 100%);
    min-height: 0;
    margin: 0 auto;
  }

  .wtw-qr-share-head {
    padding: 17px 18px;
  }

  .wtw-qr-copy h3 {
    font-size: 34px;
  }

  .wtw-qr-copy p {
    font-size: 14px;
  }

  .wtw-qr-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wtw-qr-share-modal,
  .wtw-qr-share-dialog {
    scroll-behavior: auto;
  }
}
