/* Glint web — sponsored post CTA destinations (x-ad-cta) and the instant form dialog ($store.adForm, js/ads.js). */

/* CTA bar: label (bold 16, white, never truncated before the hint) · destination hint (14 medium, 90% white,
   ellipsised) flush against the 16px trailing padding · ›. One shared baseline. (Item 16.) */
.ad-cta { padding-inline: 16px; gap: 16px; font-size: 16px; line-height: 20px; }
button.ad-cta { width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 16px; line-height: 20px; text-align: start; }
.ad-cta-label { flex: 0 1 auto; max-width: 60%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #fff; }
.ad-cta-hint {
  display: inline-flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; justify-content: flex-end; margin-inline-start: auto;
  font-weight: 500; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.9);
}
.ad-cta-hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ad-cta-hint svg { flex: none; }
.ad-cta > svg:last-child { flex: none; margin-inline-start: -12px; }
.ad-cta[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Fullscreen feed video: "Sponsored" top-left, the CTA bar along the bottom (only while :fullscreen). */
.media-ad-fs { display: none; }
.media-video:fullscreen .media-ad-fs, .media-video:-webkit-full-screen .media-ad-fs {
  display: flex; flex-direction: column; justify-content: space-between; position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.media-ad-fs-label {
  align-self: flex-start; margin: 20px 24px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: var(--type-meta-size); font-weight: 600;
}
.media-ad-fs .ad-cta { pointer-events: auto; margin: 0 24px 76px; border-radius: 10px; max-width: 560px; align-self: center; width: calc(100% - 48px); }
.media-video:fullscreen .vbar { z-index: 4; }

/* Instant form dialog: fits a 1350×620 window without scrolling the page; the body scrolls when needed. */
.adf-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; text-align: start; border-radius: 16px; }
.adf-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--border-subtle); flex: none; }
.adf-head img, .adf-head .adf-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-raised); }
.adf-head-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.adf-head-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adf-head-text span { color: var(--text-secondary); font-size: var(--type-meta-size); }
.adf-head .icon-btn { margin: -6px -6px -6px 0; }
.adf-body { overflow-y: auto; padding: 14px 16px 4px; display: grid; gap: 12px; }
.adf-title { font-size: var(--type-title-md-size); font-weight: 600; }
.adf-sub { color: var(--text-secondary); font-size: var(--type-meta-size); margin-top: -8px; }
.adf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: start; }
.adf-grid .field.is-wide { grid-column: 1 / -1; }
.adf-grid .field { gap: 4px; }
.adf-grid .input, .adf-grid .select { min-height: 38px; padding-top: 8px; padding-bottom: 8px; }
.adf-req { color: var(--text-secondary); font-weight: 400; }
.adf-privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--text-secondary); font-size: var(--type-meta-size); line-height: 1.4; }
.adf-privacy svg { flex: none; margin-top: 2px; }
.adf-privacy a { color: var(--text-link, var(--brand-500)); font-weight: 600; }
.adf-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px 14px; flex: none; border-top: 1px solid var(--border-subtle); }
.adf-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.adf-done { display: grid; justify-items: center; gap: 10px; padding: 28px 24px 8px; text-align: center; }
.adf-done-icon { color: var(--status-success, #1f9d55); }
.adf-done p { color: var(--text-secondary); max-width: 380px; }
.adf-wa { background: #25d366; color: #0b2e17; }
.adf-wa:hover { background: #1fbe5b; }
@media (max-width: 599px) {
  .adf-grid { grid-template-columns: 1fr; }
  .adf-dialog { width: 100%; max-height: calc(100dvh - 24px); }
  .adf-foot .btn-secondary { display: none; }   /* ✕ in the header closes */
  .adf-foot .btn { flex: 1; justify-content: center; }
}
