:root {
  --white: rgba(255, 255, 255, 0.15);
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rpc-modal-overlay {
  position: fixed;
  bottom: 3.5rem;
  right: 0.6rem;
  background: var(--white);
  padding: 0.5rem 1rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  z-index: 99;
  max-width: 90%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.rpc-modal-overlay.show {
  opacity: 1;
  transform: translateY(0);
}

.rpc-modal-overlay.hide {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

.rpc-modal {
  /* モーダル自体のスタイルは不要（overlayに統合） */
}

.rpc-modal-content {
  color: #333;
}

.rpc-modal-header {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rpc-modal-header span {
  color: #aaa;
  font-weight: 500;
}

.rpc-modal-body {
  margin-top: 0.5rem;
}

.rpc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e0e0e0;
  border-top-color: #666;
  border-radius: 50%;
  animation: rpc-spin 1s linear infinite;
}

@keyframes rpc-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rpc-details {
  text-align: left;
  font-size: 0.6rem;
}

.rpc-detail-item {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: flex-start;
}

.rpc-label {
  color: #999;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.rpc-value {
  color: #888;
  font-family: monospace;
  font-size: 0.6rem;
  word-break: break-all;
  white-space: normal;
}

.rpc-params {
  margin-top: 0.25rem;
  flex: 1;
}

.rpc-param {
  color: #555;
  font-family: monospace;
  font-size: 0.6rem;
  margin-bottom: 0.15rem;
  word-break: break-word;
  line-height: 1.4;
  white-space: pre-wrap;
}
