body {
  --rv-share-color: #174cae;
  --rv-share-tint: #edf3ff;
  --rv-share-border: #7999df;
}
body[data-rv-share-theme="green"] {
  --rv-share-color: #155447;
  --rv-share-tint: #e7f4ee;
  --rv-share-border: #72a894;
}
body[data-rv-share-theme="olive"] {
  --rv-share-color: #385b47;
  --rv-share-tint: #edf4e8;
  --rv-share-border: #8da98a;
}
body[data-rv-share-theme="teal"] {
  --rv-share-color: #14585c;
  --rv-share-tint: #e8f5f5;
  --rv-share-border: #6aa5a5;
}
.rv-share-button,
.rv-share-dialog .rv-share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--rv-share-border);
  border-radius: 8px;
  background: var(--rv-share-tint);
  color: var(--rv-share-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}
.rv-share-button::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4m-6.8 7 6.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rv-share-button:hover,
.rv-share-dialog .rv-share-primary {
  background: var(--rv-share-color);
  border-color: var(--rv-share-color);
  color: #fff;
}
.rv-share-button:focus-visible,
.rv-share-dialog :focus-visible {
  outline: 2px solid var(--rv-share-color);
  outline-offset: 3px;
}
.rv-share-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 6px;
}
.rv-share-title-row > :first-child { flex: 1 1 16rem; min-width: 0; }
.rv-share-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(17px, 4vw, 27px);
  border: 1px solid #d6e0df;
  border-radius: 14px;
  background: #fff;
  color: #172a32;
  box-shadow: 0 20px 80px #13262142;
  font: 15px/1.6 system-ui, "Microsoft YaHei", sans-serif;
}
.rv-share-dialog:not([open]) { display: none; }
.rv-share-dialog::backdrop { background: #15272166; }
.rv-share-dialog .rv-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.rv-share-dialog .rv-share-heading h2 {
  margin: 0;
  color: inherit;
  font: 700 21px/1.4 system-ui, "Microsoft YaHei", sans-serif;
}
.rv-share-dialog .rv-share-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #384d55;
  font: 23px/1 system-ui, sans-serif;
  cursor: pointer;
}
.rv-share-dialog .rv-share-close:hover { background: var(--rv-share-tint); }
.rv-share-dialog .rv-share-preview {
  padding: 15px;
  border: 1px solid #d6e0df;
  border-radius: 9px;
  background: var(--rv-share-tint);
  overflow-wrap: anywhere;
}
.rv-share-dialog .rv-share-preview p { margin: 0 0 10px; color: inherit; white-space: pre-wrap; }
.rv-share-dialog .rv-share-preview a { color: var(--rv-share-color); text-decoration: underline; font-size: 13px; }
.rv-share-dialog #rv-share-hint { margin: 13px 0; color: #405660; font-size: 13px; }
.rv-share-dialog .rv-share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rv-share-dialog .rv-share-action:disabled { opacity: .65; cursor: wait; }
.rv-share-dialog .rv-share-status { margin: 8px 0 0; color: var(--rv-share-color); font-size: 13px; }
.rv-share-dialog .rv-share-status:empty { margin: 0; }
.rv-share-dialog .rv-share-manual {
  box-sizing: border-box;
  width: 100%;
  min-height: 85px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--rv-share-border);
  border-radius: 6px;
  background: #fff;
  color: #172a32;
  font: 16px/1.4 system-ui, sans-serif;
  resize: vertical;
}
.rv-share-dialog .rv-share-manual[hidden] { display: none; }
@media print {
  .rv-share-button, .rv-share-dialog { display: none !important; }
}
