/* Same circular trigger and compact three-option panel as the canvas configurator. */
button[data-rk-share-trigger] {
  position: relative;
  display: inline-grid;
  box-sizing: border-box;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid color-mix(in srgb, #08008b 18%, #fff);
  border-radius: 999px;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.95), transparent 32%), linear-gradient(145deg, #fff 0%, color-mix(in srgb, #08008b 7%, #fff) 100%);
  color: #08008b;
  appearance: none;
  box-shadow: 0 8px 18px rgba(8,0,139,.12);
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  vertical-align: middle;
}
[data-rk-share-trigger]::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; }
[data-rk-share-trigger]:hover, [data-rk-share-trigger][aria-expanded="true"] { border-color: #08008b; background: #08008b; color: #fff; box-shadow: 0 12px 26px rgba(8,0,139,.2); transform: translateY(-1px); }
[data-rk-share-trigger] svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-rk-share-trigger]::after { content: attr(data-share-tooltip); position: absolute; z-index: 4; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 180px; padding: 6px 9px; border: 1px solid #d8d8e5; border-radius: 6px; background: #fff; color: #08008b; font-size: 12px; font-weight: 800; line-height: 1.15; box-shadow: 0 10px 24px rgba(21,18,31,.13); opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease; visibility: hidden; white-space: nowrap; }
[data-rk-share-trigger]:hover::after, [data-rk-share-trigger]:focus-visible::after { opacity: 1; transform: translateY(0); visibility: visible; }
[data-rk-share-trigger][aria-expanded="true"]::after { visibility: hidden; opacity: 0; }
[data-rk-share-trigger]:focus-visible, .rk-share-popover button:focus-visible, .rk-share-popover a:focus-visible, .rk-share-popover input:focus-visible { outline: 3px solid #08008b; outline-offset: 3px; }
.rk-share-popover { position: fixed; inset: auto; z-index: 2147483000; margin: 0; width: 280px; box-sizing: border-box; display: grid; gap: 8px; padding: 12px; border: 1px solid #d8d8e5; border-radius: 8px; background: #fff; color: #15121f; box-shadow: 0 18px 40px rgba(21,18,31,.16); font-family: inherit; font-size: 14px; line-height: 1.4; overflow: auto; overscroll-behavior: contain; text-align: left; }
.rk-share-popover[hidden] { display: none; }
.rk-share-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.rk-share-heading strong { color: #08008b; font-size: 15px; font-weight: 750; }
.rk-share-popover .rk-share-close { display: grid; place-items: center; position: relative; flex: 0 0 28px; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f7; color: #08008b; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.rk-share-close::before { content: ''; position: absolute; inset: -8px; }
.rk-share-popover [data-rk-share-option] { display: flex; align-items: center; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; justify-content: flex-start; border: 1px solid #d8d8e5; border-radius: 6px; background: #fff; color: #08008b; font: inherit; font-weight: 650; cursor: pointer; line-height: 1.3; }
.rk-share-popover [data-rk-share-option]:hover { border-color: #08008b; background: color-mix(in srgb, #08008b 6%, #fff); }
.rk-share-popover [data-rk-share-option]:disabled { opacity: .58; cursor: progress; }
.rk-share-popover .rk-share-private { margin: 2px 0 0; color: #555361; font-size: 12px; line-height: 1.4; }
.rk-share-status { color: #555361; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.rk-share-status[hidden], .rk-share-private[hidden] { display: none; }
.rk-share-status[data-state="success"] { color: #23643f; font-weight: 700; }
.rk-share-status[data-state="error"] { color: #ae2517; font-weight: 700; }
.rk-share-status input { box-sizing: border-box; display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 10px; border: 1px solid #d8d8e5; border-radius: 6px; background: #fff; color: #15121f; font: inherit; font-size: 16px; }
.rk-share-status a { display: block; margin-top: 6px; color: #08008b; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { [data-rk-share-trigger], [data-rk-share-trigger]::after { transition: none; } }

.rk-classic-share {display:flex;justify-content:flex-end;margin-top:14px;}
