.client-comment-item.is-pinned-from-deal {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #3b82f6;
}

.comment-client-pin-button svg,
.comment-client-pin-source-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.client-comment-icon-button.comment-client-pin-button.is-active,
.client-comment-icon-button.comment-client-pin-button:hover,
.client-comment-icon-button.comment-client-pin-button:focus-visible {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}

.client-comment-icon-button.comment-client-pin-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.client-comment-item.has-persistent-client-pin .client-comment-content {
  padding-right: 38px;
}

.client-comment-item .comment-client-pin-persistent {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.client-comment-item.has-persistent-client-pin .client-comment-hover-actions {
  right: 46px;
}

.comment-client-pin-source {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 9px 11px;
  color: #334155;
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.comment-client-pin-source.is-link {
  cursor: pointer;
}

.comment-client-pin-source.is-link:hover {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.comment-client-pin-source.is-link:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
  text-decoration: none;
}

.comment-client-pin-source-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
}

.comment-client-pin-source-content {
  flex: 1 1 auto;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.comment-client-pin-source-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.comment-client-pin-source-deal {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.comment-client-pin-source-deal span:first-child {
  color: #2563eb;
}

.comment-client-pin-source small {
  color: #64748b;
}

.comment-client-pin-source-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  transition: transform 0.14s ease, background 0.14s ease;
}

.comment-client-pin-source-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-client-pin-source.is-link:hover .comment-client-pin-source-arrow {
  background: #dbeafe;
  transform: translateX(2px);
}

.comment-client-pin-target {
  display: grid;
  gap: 4px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  padding: 12px 14px;
}

.comment-client-pin-target strong {
  color: #1d4ed8;
  font-size: 13px;
}

.comment-client-pin-target span {
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.comment-client-pin-modal .modal-card {
  display: grid;
  gap: 14px;
}

@media (max-width: 720px) {
  .client-comment-icon-button.comment-client-pin-button {
    width: 34px;
    height: 34px;
  }

  .client-comment-item.has-persistent-client-pin .client-comment-content {
    padding-right: 42px;
  }

  .client-comment-item .comment-client-pin-persistent {
    top: 10px;
    right: 10px;
  }

  .comment-client-pin-source {
    align-items: flex-start;
  }
}
