/* Send-to-Phone modal styling. Ported from SeekStories; renamed to sq- and
   riding SeekQuote's editor.css custom properties. */

.sq-send-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: sq-send-fade-in 0.15s ease;
}

@keyframes sq-send-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sq-send-modal {
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 32px;
  min-width: 360px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.sq-send-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #ffffff);
  text-align: center;
}

.sq-send-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.sq-send-modal-qr {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  width: auto;
  max-width: 100%;
  height: auto;
}

.sq-send-modal-message {
  font-size: 14px;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  text-align: center;
  line-height: 1.5;
  max-width: 320px;
}
.sq-send-modal-message-dim {
  color: var(--text-muted, rgba(255, 255, 255, 0.4));
  font-size: 12px;
}

.sq-send-modal-cancel {
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text, #ffffff);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font, sans-serif);
  cursor: pointer;
  transition: background 0.15s ease;
}
.sq-send-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
}


/* v0.1.16: direct receiver link for users already on their phone */
.sq-send-modal-direct {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 16px 0 10px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #ff007a;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font: 800 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .02em;
}
.sq-send-modal-direct:active {
  transform: translateY(1px);
}
.sq-send-modal-raw-link {
  display: block;
  margin: 2px 0 14px;
  color: #bdbdbd;
  text-align: center;
  font-size: 13px;
  text-decoration: underline;
  overflow-wrap: anywhere;
}


/* v0.1.19: visible progress while preparing and uploading Send to Phone */
.sq-send-modal-progress-wrap {
  width: 100%;
  max-width: 320px;
}
.sq-send-modal-progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.sq-send-modal-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ff007a;
  transition: width .18s ease;
}
.sq-send-modal-progress-bar.is-indeterminate {
  width: 38% !important;
  animation: sq-send-progress-indeterminate 1.1s ease-in-out infinite;
}
.sq-send-modal-progress-text {
  margin-top: 8px;
  color: var(--text-muted, rgba(255,255,255,.6));
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
@keyframes sq-send-progress-indeterminate {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}
