.item-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e1e8e3;
  border-radius: 999px;
  background: #f6f9f7;
  box-shadow: 0 5px 16px rgba(24, 50, 42, 0.06);
}

.item-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #53665e;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.item-controls button:hover:not(:disabled) {
  background: #e8efeb;
  color: var(--ink);
  transform: translateY(-1px);
}

.item-controls button:focus-visible {
  outline: 3px solid rgba(239, 106, 71, 0.22);
  outline-offset: 2px;
}

.item-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

.item-controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-controls .item-edit-button {
  background: var(--ink);
  color: #fff;
}

.item-controls .item-edit-button:hover:not(:disabled) {
  background: #28483f;
  color: #fff;
}

.close-button {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.close-button::before,
.close-button::after {
  content: "";
  grid-area: 1 / 1;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

@media (max-width: 580px) {
  .item-controls {
    gap: 2px;
    padding: 3px;
  }

  .item-controls button {
    width: 32px;
    height: 32px;
  }

  .item-controls svg {
    width: 16px;
    height: 16px;
  }
}
