#share-conversion-panel {
  display: none;
}

body.share-note-route #share-conversion-panel {
  display: block;
}

.share-writer-banner {
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.share-writer-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 9px;
  padding-inline: 16px 44px;
  background: var(--text-color);
  color: var(--bg-color);
}

.share-writer-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  flex-direction: row;
  white-space: nowrap;
}

.share-writer-copy strong {
  font-size: 13px;
  line-height: 1.4;
}

.share-writer-copy > span {
  font-size: 10px;
  line-height: 1.4;
  opacity: 0.72;
}

.share-writer-cta,
.share-primary-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.share-writer-cta {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d9961f;
  background: #f2ad3d;
  color: #241b07;
}

.share-home-cta {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 60;
  display: inline-flex;
  box-sizing: border-box;
  max-width: calc(100vw - 40px);
  align-items: stretch;
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.share-primary-cta {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--text-color);
  background: var(--text-color);
  color: var(--bg-color);
}

.share-writer-cta:hover,
.share-primary-cta:hover {
  opacity: 0.78;
}

.share-writer-cta:focus-visible,
.share-primary-cta:focus-visible,
.share-conversion-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.share-conversion-close {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 24px;
  opacity: 0.5;
}

.share-conversion-close:hover {
  opacity: 0.9;
}

.share-home-cta .share-conversion-close {
  position: static;
  width: 28px;
  height: auto;
  min-height: 32px;
  border: 1px solid var(--text-color);
  border-inline-start: 1px solid var(--bg-color);
  background: var(--text-color);
  color: var(--bg-color);
  line-height: 1;
  opacity: 0.72;
}

#share-conversion-panel [hidden] {
  display: none !important;
}

body.share-note-route #donation-banner,
body.share-note-route #writer-mode-cta {
  display: none !important;
}

body.share-note-route .share-toolbar-hidden {
  display: none !important;
}

body.share-note-route #editor-container {
  box-sizing: border-box;
  padding-top: calc(16px + var(--share-banner-offset, 0px));
  transition: padding-top 160ms ease;
}

@media (max-width: 900px) {
  .share-writer-copy > span {
    display: none;
  }
}

@media (max-width: 600px) {
  .share-writer-banner {
    min-height: 48px;
    flex-wrap: nowrap;
    gap: 7px;
    padding-block: 8px;
    padding-inline: 10px 38px;
  }

  .share-writer-copy strong {
    font-size: 12px;
  }

  .share-writer-cta {
    min-height: 28px;
    padding: 0 8px;
    font-size: 10px;
  }

  .share-home-cta {
    right: 12px;
    bottom: 82px;
    max-width: calc(100vw - 24px);
  }

  .share-primary-cta {
    min-height: 30px;
    font-size: 10px;
  }

  .share-home-cta .share-conversion-close {
    min-height: 30px;
  }
}

@media print {
  #share-conversion-panel {
    display: none !important;
  }

  body.share-note-route #editor-container {
    padding-top: 16px;
  }
}
