.tool-utility-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.copy-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.tool-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #777;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
}

.tool-copy-button:hover:not(:disabled) {
  border-color: #009966;
  color: #006d49;
}

.tool-copy-button:focus-visible {
  outline: 3px solid rgba(0, 153, 102, 0.3);
  outline-offset: 2px;
}

.tool-copy-button:disabled {
  border-color: #ccc;
  background: #f3f3f3;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.tool-copy-button img {
  width: 16px;
  height: 16px;
}

.tool-copy-button.is-copy-success {
  border-color: #00875a;
  background: #e8f7f1;
  color: #006d49;
}

.tool-copy-status {
  font-size: 14px;
  color: #006d49;
}

.tool-copy-status.is-copy-error {
  color: #b00020;
}

.tool-utility-row .counter {
  flex: 0 0 auto;
  padding-top: 7px;
  white-space: nowrap;
}

@media screen and (max-width: 479px) {
  .tool-utility-row {
    gap: 8px;
  }

  .copy-control {
    flex: 1 1 auto;
  }

  .tool-copy-status:not(:empty) {
    flex-basis: 100%;
  }
}
