/*
 * Unified send action treatment.
 *
 * These are the four composer send buttons:
 * - Home image: the form submit button in /static/index.html
 * - Home video: #videoSendBtn in /static/index.html
 * - Create image: #sendBtn in /static/create/index.html
 * - Create video: #videoSendBtn in /static/create/index.html
 *
 * Keep the existing icon-only markup and submission hooks, but give every
 * send action the same white purchase-chip material used by nav-purchase-btn.
 */
body.create-page .btn-send,
body.create-page .video-send-btn {
  --send-surface: #fff;
  --send-ink: #17191c;
  --send-hover: #f2f4f6;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border: 1px solid transparent !important;
  background: var(--send-surface) !important;
  color: var(--send-ink) !important;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.18) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: transform 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease, color 160ms ease;
}

body.create-page .btn-send::before,
body.create-page .video-send-btn::before {
  display: none !important;
}

body.create-page .btn-send:hover:not(:disabled),
body.create-page .btn-send:focus-visible:not(:disabled),
body.create-page .video-send-btn:hover:not(:disabled),
body.create-page .video-send-btn:focus-visible:not(:disabled) {
  background: var(--send-hover) !important;
  color: #000 !important;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24) !important;
  transform: translateY(-1px);
}

body.create-page .btn-send:focus-visible,
body.create-page .video-send-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

body.create-page .btn-send:active:not(:disabled),
body.create-page .video-send-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
}

body.create-page .btn-send:disabled,
body.create-page .video-send-btn:disabled {
  background: var(--send-surface) !important;
  color: rgba(23, 25, 28, 0.42) !important;
  box-shadow: none !important;
  opacity: 0.62;
  cursor: not-allowed;
  transform: none !important;
}

body.create-page .btn-send .ui-icon,
body.create-page .video-send-btn .ui-icon {
  /* Preserve the original 1.12em icon at the composer's 18px font size. */
  width: 20.16px;
  height: 20.16px;
  margin: 0;
  flex: 0 0 auto;
  color: currentColor !important;
}

/* The create-page loading indicator remains visible on the light surface. */
.create-page .btn-send.is-submitting::after {
  border-color: rgba(23, 25, 28, 0.22) !important;
  border-top-color: #17191c !important;
}
