/* ============================================================
   styles.cloud-import.css
   Styles for the "or import from / Google Drive / OneDrive"
   row that sits inside every .drop-zone below the upload area.
   Uses only CSS variables already defined in
   styles.gopdf-rebrand.css — no new tokens introduced.
   ============================================================ */

/* Container row — flex, centred, separated from the drop zone content above
   by a thin border. position:relative + z-index:3 lifts the entire row above
   the invisible file input overlay (position:absolute; inset:0; z-index:2)
   so clicks reach the cloud buttons instead of opening the OS file picker. */
.cloud-import-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

/* "or import from" label — muted, uppercase, small */
.cloud-import-or {
  font-size: 10.5px;
  color: var(--text4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Cloud provider buttons — ghost style matching the app's secondary button
   pattern. The invisible <input type="file"> inside .drop-zone is
   position:absolute; inset:0; z-index:2, so these buttons must be z-index:3
   to sit above it and receive clicks instead of the file picker. */
.cloud-import-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 11.5px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

.cloud-import-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Disabled state shown while the OAuth popup is opening */
.cloud-import-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Keep SVG icons from absorbing pointer events that should
   propagate to the button's onclick handler.               */
.cloud-import-btn svg {
  flex-shrink: 0;
  pointer-events: none;
}
