/* Shared checklist quick-add geometry for the app and design system. */
#item-form.checklist-item-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
}

#item-form.checklist-item-form > #item-quantity-control {
  display: none;
}

#item-form.checklist-item-form .item-name-field,
#item-form.checklist-item-form .item-name-field input {
  min-width: 0;
  width: 100%;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

#item-form.checklist-item-form .item-name-field input {
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
}

#item-form.checklist-item-form #add-item-button {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
}

#item-form.checklist-item-form #add-item-button > span {
  display: none;
}

#item-form.checklist-item-form #add-item-button:not([aria-busy="true"])::before,
#item-form.checklist-item-form #add-item-button:not([aria-busy="true"])::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

#item-form.checklist-item-form #add-item-button:not([aria-busy="true"])::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
