/**
 * Say Hi Apply — the pasted pill.
 * apply.js links this file. It does not inject a <style>.
 * Buttons cannot host Shadow DOM, so these rules must win on the host page.
 * Clients do not restyle this to “Upload video”.
 */

button[data-say-hi] {
  all: unset;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 1.15rem !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  vertical-align: middle !important;
}

button[data-say-hi]:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
}

button[data-say-hi] .say-hi-apply__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #111;
}

button[data-say-hi] .say-hi-apply__hi {
  color: #111;
}

button[data-say-hi] .say-hi-apply__wave {
  display: inline-block;
  transform-origin: 70% 70%;
  font-size: 1.26em;
  line-height: 1;
}

button[data-say-hi][data-wave="on"]:hover {
  background: #fafafa !important;
}

button[data-say-hi][data-wave="on"]:hover .say-hi-apply__hi {
  color: #2f6fed;
}

button[data-say-hi][data-wave="on"]:hover .say-hi-apply__wave {
  animation: say-hi-wave 0.7s ease-in-out;
}

button[data-say-hi][data-wave="on"]:active {
  background: #f4f4f2 !important;
  transform: scale(0.985);
}

button[data-say-hi][data-sent="1"] {
  cursor: default !important;
}

button[data-say-hi][data-sent="1"][data-replace="on"] {
  cursor: pointer !important;
}

@keyframes say-hi-wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(8deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  60% {
    transform: rotate(6deg);
  }
  80% {
    transform: rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  button[data-say-hi] .say-hi-apply__wave {
    animation: none !important;
  }
  button[data-say-hi]:active {
    transform: none;
  }
}

.say-hi-replace {
  box-sizing: border-box;
  margin: 0.4rem 0 0;
  padding: 0.65rem 0.75rem;
  max-width: 16rem;
  background: #fff;
  border: 1px solid #111;
  border-radius: 8px;
  color: #111;
  font: 600 0.85rem/1.35 ui-sans-serif, system-ui, sans-serif;
}

.say-hi-replace p {
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.say-hi-replace button {
  min-height: 36px;
  margin: 0 0.3rem 0 0;
  padding: 0 0.75rem;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.say-hi-replace [data-yes] {
  background: #111;
  color: #fff;
}

.say-hi-apply {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  vertical-align: middle;
}

.say-hi-lockup {
  margin: 0;
  color: #2f6fed;
  font: 500 0.7rem/1.3 ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
  user-select: none;
}

.say-hi-replace .say-hi-lockup {
  margin-top: 0.5rem;
}
