.starlet-buy-link {
  position: fixed;
  z-index: 999;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 16px;
  border: 1px solid #32657d;
  border-radius: 999px;
  background: #0f1c2b;
  color: #f5f8fc;
  box-shadow: 0 4px 14px rgb(15 28 43 / 24%);
  font: 700 13px/1.2 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(var(--starlet-buy-offset, 0px));
}

.starlet-buy-link:hover,
.starlet-buy-link:focus-visible {
  background: #32657d;
}

.starlet-story-toolbar {
  z-index: 1;
}

.starlet-story-message {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.starlet-story-toolbar button[aria-pressed="true"] svg {
  fill: #ff879e;
}

.starlet-preview-dialog {
  width: min(400px, calc(100% - 32px));
  max-width: none;
  box-sizing: border-box;
  border: 1px solid rgba(245, 248, 252, .35);
  border-radius: 18px;
  padding: 24px;
  background: #0f1c2b;
  color: #f5f8fc;
  font: 400 16px/1.5 "DM Sans", system-ui, sans-serif;
}

.starlet-preview-dialog::backdrop {
  background: rgba(15, 28, 43, .7);
  backdrop-filter: blur(6px);
}

.starlet-preview-dialog h2 {
  margin: 0 30px 6px 0;
  font-size: 20px;
}

.starlet-preview-dialog p {
  margin: 0;
}

.starlet-preview-dialog button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #32657d;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
}
