/* VG-REPOSTS — plugin-owned styles (ViewGems custom).
   Deliberately independent of the pre-compiled Nova Tailwind bundle:
   every class here is defined in this file. */

/* "X reposted" note bubble (speech-bubble style, above the original card) */
.vg-rp-note {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 2px 0 10px 34px;
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.16);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.vg-rp-note::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 16px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* reels attribution chip */
.vg-rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  backdrop-filter: blur(4px);
}
.vg-rp-chip a {
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* active (reposted) state for the toggle buttons */
.js_vg-repost.vg-rp-on {
  color: #16a34a !important;
}
.js_vg-repost.vg-rp-on .vg-rp-btn-label {
  color: #16a34a;
  font-weight: 600;
}

/* note sheet */
.vg-rp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1190;
}
.vg-rp-backdrop.vg-rp-open {
  opacity: 1;
  pointer-events: auto;
}
.vg-rp-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(480px, 100vw);
  transform: translate(-50%, 105%);
  transition: transform 0.25s ease;
  z-index: 1200;
  background: #1c1c1e;
  color: #f5f5f5;
  border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
html[data-theme="light"] .vg-rp-sheet {
  background: #ffffff;
  color: #111111;
}
.vg-rp-sheet.vg-rp-open {
  transform: translate(-50%, 0);
}
@media (min-width: 640px) {
  .vg-rp-sheet {
    bottom: 24px;
    border-radius: 18px;
  }
}
.vg-rp-sheet-title {
  font-size: 15px;
  font-weight: 600;
}
.vg-rp-note-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.4);
  background: transparent;
  color: inherit;
  padding: 9px 11px;
  font-size: 14px;
  resize: none;
}
.vg-rp-note-count {
  font-size: 11px;
  opacity: 0.6;
  text-align: right;
  margin-top: -6px;
}
.vg-rp-sheet-error {
  font-size: 13px;
  color: #f87171;
}
.vg-rp-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(128, 128, 128, 0.18);
  color: inherit;
}
.vg-rp-btn-primary {
  background: #16a34a;
  color: #fff;
}
.vg-rp-btn-danger {
  color: #f87171;
}
