.bv-reader-share-open {
  overflow: hidden !important;
}

.bv-reader-share-modal[hidden] {
  display: none !important;
}

.bv-reader-share-modal {
  position: fixed;
  z-index: 25000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 22, 42, .72);
  backdrop-filter: blur(7px);
}

.bv-reader-share-dialog {
  width: min(820px, calc(100vw - 30px));
  max-height: min(880px, calc(100vh - 30px));
  overflow: auto;
  border: 3px solid #111a31;
  border-radius: 10px;
  color: #111a31;
  background: #f7f9fc;
  box-shadow: 10px 11px 0 #111a31;
  font-family: "Spectral", Georgia, serif;
}

.bv-reader-share-head,
.bv-reader-share-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
}

.bv-reader-share-head {
  border-bottom: 3px solid #111a31;
}

.bv-reader-share-head h2 {
  margin: 3px 0 0;
  font: 700 28px/1.05 "Courier Prime", monospace;
}

.bv-reader-share-kicker,
.bv-reader-share-fieldset legend,
.bv-reader-share-field > span,
.bv-reader-share-result label > span {
  color: #647896;
  font: 700 12px/1.2 "Courier Prime", monospace;
  letter-spacing: .07em;
}

.bv-reader-share-close {
  width: 50px;
  height: 50px;
  border: 3px solid #111a31;
  border-radius: 7px;
  color: #111a31;
  background: #fff;
  box-shadow: 5px 6px 0 #9ca3a8;
  cursor: pointer;
  font: 700 26px/1 "Courier Prime", monospace;
}

.bv-reader-share-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.bv-reader-share-summary,
.bv-reader-share-privacy,
.bv-reader-share-result {
  padding: 16px 18px;
  border: 2px solid #111a31;
  border-radius: 7px;
  background: #fff;
}

.bv-reader-share-summary {
  display: flex;
  flex-direction: column;
}

.bv-reader-share-summary strong {
  margin-top: 4px;
  font: 700 22px/1.2 "Courier Prime", monospace;
}

.bv-reader-share-summary p {
  margin: 9px 0 0;
  color: #5f718d;
}

.bv-reader-share-fieldset {
  margin: 0;
  padding: 14px;
  border: 2px solid #111a31;
  border-radius: 7px;
  background: #fff;
}

.bv-reader-share-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.bv-reader-share-options button,
.bv-reader-share-foot button,
.bv-reader-share-result-actions button {
  min-height: 46px;
  border: 2px solid #111a31;
  border-radius: 6px;
  color: #111a31;
  background: #fff;
  box-shadow: 3px 4px 0 #9ca3a8;
  cursor: pointer;
  font: 700 13px/1 "Courier Prime", monospace;
}

.bv-reader-share-dialog .bv-reader-share-options button {
  color: #111a31 !important;
  background: #fff !important;
  border-color: #111a31 !important;
  opacity: 1 !important;
}

.bv-reader-share-dialog .bv-reader-share-options button[aria-pressed="true"] {
  color: #fff !important;
  background: #111a31 !important;
  border-color: #111a31 !important;
  box-shadow: 3px 4px 0 #13bd8a !important;
}

.bv-reader-share-field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #111a31;
  border-radius: 7px;
  background: #fff;
}

.bv-reader-share-field select,
.bv-reader-share-result input {
  min-height: 46px;
  width: 100%;
  border: 2px solid #111a31;
  border-radius: 5px;
  padding: 0 12px;
  color: #111a31;
  background: #fff;
  font: 600 16px/1 "Spectral", Georgia, serif;
}

.bv-reader-share-privacy {
  display: flex;
  flex-direction: column;
  border-left: 8px solid #13bd8a;
  background: #effaf6;
}

.bv-reader-share-privacy span {
  margin-top: 4px;
  color: #5e708a;
}

.bv-reader-share-result {
  display: grid;
  gap: 12px;
  border-color: #08845f;
  background: #effaf6;
}

.bv-reader-share-result[hidden] {
  display: none !important;
}

.bv-reader-share-result label {
  display: grid;
  gap: 7px;
}

.bv-reader-share-result-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.bv-reader-share-result-actions .is-danger {
  color: #fff !important;
  border-color: #751923 !important;
  background: #9f2631 !important;
}

.bv-reader-share-dialog #bvReaderShareCopy,
.bv-reader-share-dialog #bvReaderShareOpen {
  color: #fff !important;
  border-color: #111a31 !important;
  background: #111a31 !important;
}

.bv-reader-share-dialog #bvReaderShareNative {
  color: #fff !important;
  border-color: #2f36a6 !important;
  background: #4a43d2 !important;
}

.bv-reader-share-status {
  min-height: 23px;
  color: #637693;
  font: 700 13px/1.4 "Courier Prime", monospace;
}

.bv-reader-share-status[data-kind="error"] {
  color: #a12630;
}

.bv-reader-share-status[data-kind="success"] {
  color: #087b59;
}

.bv-reader-share-foot {
  justify-content: flex-end;
  border-top: 3px solid #111a31;
}

.bv-reader-share-foot button {
  min-width: 150px;
}

.bv-reader-share-dialog #bvReaderShareCancel {
  color: #111a31 !important;
  border-color: #111a31 !important;
  background: #fff !important;
  opacity: 1 !important;
}

.bv-reader-share-dialog #bvReaderShareCreate {
  color: #071d17 !important;
  border-color: #075e46 !important;
  background: linear-gradient(135deg, #83e7c9, #13bd8a) !important;
  box-shadow: 4px 5px 0 #075e46 !important;
  opacity: 1 !important;
}

.bv-reader-share-dialog #bvReaderShareCreate:disabled {
  color: #28364c !important;
  border-color: #59677c !important;
  background: #bfc7d1 !important;
  box-shadow: 4px 5px 0 #59677c !important;
  opacity: 1 !important;
  cursor: wait;
}

.bv-reader-share-broadcast[hidden] {
  display: none !important;
}

.bv-reader-share-broadcast {
  overflow: hidden;
  border: 3px solid #111a31;
  border-radius: 7px;
  background: #fff;
  box-shadow: 5px 6px 0 #111a31;
  animation: bv-reader-share-enter .2s ease-out both;
}

.bv-reader-share-broadcast > header,
.bv-reader-share-broadcast > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  color: #fff;
  background: #111a31;
  font: 700 10px/1 "Courier Prime", monospace;
  letter-spacing: .035em;
}

.bv-reader-share-broadcast > header i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: #d94750;
  box-shadow: 0 0 0 4px rgba(217, 71, 80, .14);
}

.bv-reader-share-broadcast-body {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.6fr);
  min-height: 176px;
}

.bv-reader-share-video-shell {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-right: 3px solid #111a31;
  background: #111a31;
}

.bv-reader-share-video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  object-position: center 28%;
}

.bv-reader-share-video-shell > span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 7px 9px;
  border: 2px solid #111a31;
  border-radius: 4px;
  color: #111a31;
  background: rgba(255,255,255,.95);
  font: 700 10px/1.1 "Courier Prime", monospace;
}

.bv-reader-share-broadcast-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.bv-reader-share-broadcast-copy b {
  align-self: flex-start;
  padding: 7px 9px;
  border: 2px solid #111a31;
  border-radius: 4px;
  background: #ffe386;
  font: 700 11px/1 "Courier Prime", monospace;
}

.bv-reader-share-broadcast-copy strong {
  margin-top: 11px;
  font: 700 20px/1.15 "Courier Prime", monospace;
}

.bv-reader-share-broadcast-copy p {
  margin: 7px 0 0;
  color: #5e708a;
  line-height: 1.45;
}

.bv-reader-share-broadcast > footer > span {
  margin: -9px 0 -9px -12px;
  padding: 10px 12px;
  color: #fff;
  background: #ef4249;
}

@keyframes bv-reader-share-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#btnShareReaderPreview {
  border-color: #111a31 !important;
  color: #111a31 !important;
  background: #fff !important;
}

#btnShareReaderPreview::before {
  content: "↗";
  margin-right: 6px;
  color: #08845f;
  font-weight: 700;
}

@media (max-width: 650px) {
  .bv-reader-share-modal {
    padding: 8px;
  }

  .bv-reader-share-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .bv-reader-share-head,
  .bv-reader-share-body,
  .bv-reader-share-foot {
    padding: 14px;
  }

  .bv-reader-share-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bv-reader-share-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bv-reader-share-result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bv-reader-share-broadcast-body {
    grid-template-columns: 1fr;
  }

  .bv-reader-share-video-shell {
    border-right: 0;
    border-bottom: 3px solid #111a31;
  }

  .bv-reader-share-broadcast > header strong,
  .bv-reader-share-broadcast > footer strong {
    display: none;
  }
}
