.rgst-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 17px 18px;
  margin: 0 0 22px;
  border: 1px solid #dce8e5;
  border-radius: 6px;
  background: #f7faf9;
  text-align: left;
  min-width: 0;
}
.rgst-share--product { margin: 20px 0 0; }
.rgst-heading { display: grid; gap: 3px; min-width: 0; }
.rgst-heading strong { font-size: 14px; color: #173a35; line-height: 1.4; }
.rgst-heading > span { color: #5d6966; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.rgst-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:is(.rgst-share,.rgst-footer,.rgst-dialog) .rgst-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  margin: 0;
  border: 1px solid #b8ceca;
  border-radius: 4px;
  background: #fff;
  color: #17514b;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
:is(.rgst-share,.rgst-footer,.rgst-dialog) .rgst-button:hover { background: #eaf3f0; border-color: #027f7c; color: #17514b; }
:is(.rgst-share,.rgst-dialog) .rgst-button--primary { color: #fff; background: #027f7c; border-color: #027f7c; }
:is(.rgst-share,.rgst-dialog) .rgst-button--primary:hover { background: #066865; border-color: #066865; color: #fff; }
:is(.rgst-share,.rgst-footer,.rgst-dialog) :is(button,a,summary,textarea):focus-visible { outline: 3px solid #b17b31; outline-offset: 3px; }
.rgst-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.rgst-marketplace { flex-basis: 100%; margin: 0; }
.rgst-marketplace summary { width: fit-content; color: #43635d; font-size: 12px; line-height: 1.5; cursor: pointer; }
.rgst-marketplace-content { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.rgst-marketplace-content > a { color: #17514b; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; padding: 10px 0; }
.rgst-marketplace-content p { flex-basis: 100%; font-size: 12px; color: #5d6966; margin: 0; }
:is(.rgst-share,.rgst-dialog) .rgst-text-button { background: transparent; border: 0; box-shadow: none; color: #17514b; padding: 10px 0; min-height: 44px; font: inherit; font-size: 13px; text-transform: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rgst-footer { background: #f7faf9; border-top: 1px solid #e1ebe8; color: #173a35; padding: 20px 15px; }
.rgst-footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; width: 100%; max-width: 1200px; margin: 0 auto; }
.rgst-footer-inner > img { flex: 0 0 44px; border-radius: 9px; }
.rgst-footer-inner > div { flex: 1; min-width: 180px; display: grid; gap: 4px; }
.rgst-footer-inner strong { font-size: 14px; }
.rgst-footer-inner span { font-size: 12px; line-height: 1.5; color: #5d6966; }
.rgst-dialog { box-sizing: border-box; position: fixed; inset: 0; width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 30px 26px 24px; border: 0; border-radius: 12px; background: #fff; color: #173a35; text-align: left; box-shadow: 0 16px 70px #0003; overflow-y: auto; overscroll-behavior: contain; }
.rgst-dialog::backdrop { background: #0b252399; }
.rgst-dialog h2 { color: #173a35; font-size: 23px; margin: 0 28px 14px 0; line-height: 1.3; }
.rgst-dialog h3 { color: #17514b; font-size: 15px; margin: 20px 0 10px; }
.rgst-dialog p, .rgst-dialog li { font-size: 14px; line-height: 1.65; }
.rgst-dialog ol { padding-left: 22px; margin: 0 0 12px; }
.rgst-dialog li + li { margin-top: 9px; }
.rgst-dialog p { margin: 0 0 14px; }
.rgst-dialog .rgst-note { font-size: 12px; color: #596963; line-height: 1.6; }
.rgst-dialog .rgst-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; min-height: 44px; padding: 0; background: transparent; color: #23483f; border: 0; box-shadow: none; font-size: 28px; font-weight: 400; line-height: 1; cursor: pointer; }
.rgst-app-icon { display: block; border-radius: 13px; margin-bottom: 16px; }
.rgst-link-label { display: block; font-size: 13px; margin-bottom: 6px; }
.rgst-dialog .rgst-link-field { display: block; box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #b8ceca; border-radius: 4px; background: #f7faf9; color: #173a35; font-size: 16px; line-height: 1.5; margin: 0 0 14px; resize: vertical; }
.rgst-dialog .rgst-actions { margin-bottom: 14px; }
.rgst-toast { position: fixed; z-index: 20000; bottom: max(76px, calc(env(safe-area-inset-bottom) + 24px)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 11px 18px; border-radius: 6px; background: #173a35; color: #fff; box-shadow: 0 4px 20px #0002; font-size: 14px; line-height: 1.5; pointer-events: none; }
.rgst-toast:empty { display: none; }
:is(.rgst-share,.rgst-footer,.rgst-dialog) [hidden] { display: none !important; }
@media (max-width: 600px) {
  .rgst-share { padding: 14px; gap: 12px; }
  .rgst-share .rgst-heading { flex-basis: 100%; }
  .rgst-share .rgst-actions { width: 100%; }
  .rgst-share .rgst-button { flex: 1; padding-inline: 8px; gap: 5px; font-size: 12px; white-space: nowrap; }
  .rgst-footer-inner > .rgst-button { width: 100%; }
  .rgst-dialog { padding: 28px 20px 20px; }
}
@media (display-mode: standalone) { .rgst-footer { display: none; } }
